@@ -1591,8 +1591,8 @@ cdef cyruntime.cudaError_t _cudaGetChannelDesc(cyruntime.cudaChannelFormatDesc*
15911591{{endif}}
15921592
15931593{{if 'cudaCreateChannelDesc' in found_functions}}
1594-
1595- cdef cyruntime.cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cyruntime.cudaChannelFormatKind f) nogil:
1594+ @cython.show_performance_hints(False)
1595+ cdef cyruntime.cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cyruntime.cudaChannelFormatKind f) except* nogil:
15961596 cdef bint usePTDS = cudaPythonInit()
15971597 if usePTDS:
15981598 return ptds._cudaCreateChannelDesc(x, y, z, w, f)
@@ -2608,26 +2608,26 @@ cdef cyruntime.cudaError_t _cudaGetKernel(cyruntime.cudaKernel_t* kernelPtr, con
26082608{{endif}}
26092609
26102610{{if 'make_cudaPitchedPtr' in found_functions}}
2611-
2612- cdef cyruntime.cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) nogil:
2611+ @cython.show_performance_hints(False)
2612+ cdef cyruntime.cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil:
26132613 cdef bint usePTDS = cudaPythonInit()
26142614 if usePTDS:
26152615 return ptds._make_cudaPitchedPtr(d, p, xsz, ysz)
26162616 return make_cudaPitchedPtr(d, p, xsz, ysz)
26172617{{endif}}
26182618
26192619{{if 'make_cudaPos' in found_functions}}
2620-
2621- cdef cyruntime.cudaPos _make_cudaPos(size_t x, size_t y, size_t z) nogil:
2620+ @cython.show_performance_hints(False)
2621+ cdef cyruntime.cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil:
26222622 cdef bint usePTDS = cudaPythonInit()
26232623 if usePTDS:
26242624 return ptds._make_cudaPos(x, y, z)
26252625 return make_cudaPos(x, y, z)
26262626{{endif}}
26272627
26282628{{if 'make_cudaExtent' in found_functions}}
2629-
2630- cdef cyruntime.cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) nogil:
2629+ @cython.show_performance_hints(False)
2630+ cdef cyruntime.cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil:
26312631 cdef bint usePTDS = cudaPythonInit()
26322632 if usePTDS:
26332633 return ptds._make_cudaExtent(w, h, d)
0 commit comments