@@ -21,7 +21,6 @@ cdef extern from "_cpp/resource_handles.hpp" namespace "cuda_core":
2121 # Handle types
2222 ctypedef shared_ptr[const cydriver.CUcontext] ContextHandle
2323 ctypedef shared_ptr[const cydriver.CUgreenCtx] GreenCtxHandle
24- ctypedef shared_ptr[const cydriver.CUdevResourceDesc] DevResourceDescHandle
2524 ctypedef shared_ptr[const cydriver.CUstream] StreamHandle
2625 ctypedef shared_ptr[const cydriver.CUevent] EventHandle
2726 ctypedef shared_ptr[const cydriver.CUmemoryPool] MemoryPoolHandle
@@ -48,7 +47,6 @@ cdef extern from "_cpp/resource_handles.hpp" namespace "cuda_core":
4847 # as_cu() - extract the raw CUDA handle (inline C++)
4948 cydriver.CUcontext as_cu(ContextHandle h) noexcept nogil
5049 cydriver.CUgreenCtx as_cu(GreenCtxHandle h) noexcept nogil
51- cydriver.CUdevResourceDesc as_cu(DevResourceDescHandle h) noexcept nogil
5250 cydriver.CUstream as_cu(StreamHandle h) noexcept nogil
5351 cydriver.CUevent as_cu(EventHandle h) noexcept nogil
5452 cydriver.CUmemoryPool as_cu(MemoryPoolHandle h) noexcept nogil
@@ -66,7 +64,6 @@ cdef extern from "_cpp/resource_handles.hpp" namespace "cuda_core":
6664 # as_intptr() - extract handle as intptr_t for Python interop (inline C++)
6765 intptr_t as_intptr(ContextHandle h) noexcept nogil
6866 intptr_t as_intptr(GreenCtxHandle h) noexcept nogil
69- intptr_t as_intptr(DevResourceDescHandle h) noexcept nogil
7067 intptr_t as_intptr(StreamHandle h) noexcept nogil
7168 intptr_t as_intptr(EventHandle h) noexcept nogil
7269 intptr_t as_intptr(MemoryPoolHandle h) noexcept nogil
@@ -85,7 +82,6 @@ cdef extern from "_cpp/resource_handles.hpp" namespace "cuda_core":
8582 # as_py() - convert handle to Python wrapper object (inline C++; requires GIL)
8683 object as_py(ContextHandle h)
8784 object as_py(GreenCtxHandle h)
88- object as_py(DevResourceDescHandle h)
8985 object as_py(StreamHandle h)
9086 object as_py(EventHandle h)
9187 object as_py(MemoryPoolHandle h)
@@ -118,10 +114,9 @@ cdef ContextHandle create_context_handle_ref(cydriver.CUcontext ctx) except+ nog
118114cdef ContextHandle create_context_handle_from_green_ctx(const GreenCtxHandle& h_green_ctx) except + nogil
119115cdef GreenCtxHandle get_context_green_ctx(const ContextHandle& h) noexcept nogil
120116cdef GreenCtxHandle create_green_ctx_handle(
121- cydriver.CUdevResourceDesc desc, cydriver.CUdevice dev, unsigned int flags) except + nogil
117+ cydriver.CUdevResource* resources, unsigned int nbResources,
118+ cydriver.CUdevice dev, unsigned int flags) except + nogil
122119cdef GreenCtxHandle create_green_ctx_handle_ref(cydriver.CUgreenCtx ctx) except + nogil
123- cdef DevResourceDescHandle create_dev_resource_desc_handle(
124- cydriver.CUdevResource* resources, unsigned int nbResources) except + nogil
125120cdef ContextHandle get_primary_context(int device_id) except + nogil
126121cdef ContextHandle get_current_context() except + nogil
127122
0 commit comments