Closed
Description
Today we always return a Python int
and erase the type information, e.g.
cuda-python/cuda_core/cuda/core/experimental/_stream.py
Lines 140 to 143 in 61ef224
However, it could be possible that users want to retain the underlying
cuda.binding
type so that it can be consumed in, say, Cython:
from cuda.core.experimental import Device
from cuda.bindings.runtime cimport cudaStream_t
s = Device().create_stream()
cdef cudaStream_t s_cy = s.handle
We should keep .handle
's type, and add ..ptr
that returns the type-erased pointer address as Python int