Skip to content

Commit 31bf2b8

Browse files
committed
cdef on _add_cuda_native_handlers
1 parent 755944d commit 31bf2b8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cuda_bindings/cuda/bindings/driver.pyx.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53949,7 +53949,7 @@ def sizeof(objType):
5394953949
return sizeof(cydriver.VdpOutputSurface){{endif}}
5395053950
raise TypeError("Unknown type: " + str(objType))
5395153951

53952-
def _add_native_handle_getters() -> None:
53952+
cdef int _add_native_handle_getters() except?-1:
5395353953
from cuda.bindings.utils import _add_cuda_native_handle_getter
5395453954
{{if 'CUcontext' in found_types}}
5395553955
def CUcontext_getter(CUcontext x): return <uintptr_t><void*><cydriver.CUcontext>(x._pvt_ptr[0])
@@ -54067,5 +54067,6 @@ def _add_native_handle_getters() -> None:
5406754067
def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cydriver.EGLSyncKHR>(x._pvt_ptr[0])
5406854068
_add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter)
5406954069
{{endif}}
54070+
return 0
5407054071
_add_native_handle_getters()
5407154072

cuda_bindings/cuda/bindings/runtime.pyx.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37913,7 +37913,7 @@ def sizeof(objType):
3791337913
return sizeof(cyruntime.cudaEglStreamConnection){{endif}}
3791437914
raise TypeError("Unknown type: " + str(objType))
3791537915

37916-
def _add_native_handle_getters() -> None:
37916+
cdef int _add_native_handle_getters() except?-1:
3791737917
from cuda.bindings.utils import _add_cuda_native_handle_getter
3791837918
{{if 'cudaArray_t' in found_types}}
3791937919
def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])
@@ -38011,5 +38011,6 @@ def _add_native_handle_getters() -> None:
3801138011
def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return <uintptr_t><void*><cyruntime.cudaEglStreamConnection>(x._pvt_ptr[0])
3801238012
_add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter)
3801338013
{{endif}}
38014+
return 0
3801438015
_add_native_handle_getters()
3801538016

0 commit comments

Comments
 (0)