diff --git a/python/rmm/rmm/librmm/memory_resource.pxd b/python/rmm/rmm/librmm/memory_resource.pxd index 350d4ec8a..80684a7c3 100644 --- a/python/rmm/rmm/librmm/memory_resource.pxd +++ b/python/rmm/rmm/librmm/memory_resource.pxd @@ -81,27 +81,6 @@ cdef extern from "" namespace "cuda::mr" nogil: any_resource() except + any_resource(device_async_resource_ref) except + - -# Inline C++ helper to convert device_async_resource_ref to -# any_resource for passing to constructor parameters. -# Needed because Cython wraps intermediate values in __Pyx_FakeReference, -# a proxy with operator T&(). CCCL's any_resource only has a constrained -# forwarding constructor that cannot see through this proxy. A free function -# performs the conversion in pure C++ where it works directly. -# TODO: Remove once CCCL merges NVIDIA/cccl#8320 and RMM upgrades. -cdef extern from *: - """ - #include - #include - inline cuda::mr::any_resource - make_any_device_resource(rmm::device_async_resource_ref ref) { - return cuda::mr::any_resource(ref); - } - """ - any_resource[device_accessible] make_any_device_resource( - device_async_resource_ref) nogil except + - - # Inline C++ helper to construct optional[device_async_resource_ref] from any # concrete resource type. Returns optional so that Cython assignment # (self.c_ref = make_device_async_resource_ref(...)) uses optional's