CUDAStreamView (or similar name) object #314
Labels
awaiting-response
Further information is requested
cuda.core
Everything related to the cuda.core module
triage
Needs the team's attention
Just like in the array case, where there are many different ways to define an array (Python Buffer Protocol,
__array_interface__
,__cuda_array_interface__
, DLPack, etc.), there is a similar issue with streams up to this point. To provide a few examples...__dlpack__
can contain a stream__cuda_array_interface__
can contain a streamtorch.cuda.stream
cupy.cuda.Stream
cudaStream_t
is passed around as an integer addressWith all these objects floating around that provide different APIs, there remains a need to wrangle them them into some kind of common object and that has proper RAII semantics and can be used in a standard way
A
CUDAStreamView
, much like theStridedMemoryView
, would help provide this standard way to consume these different objects and provide a standard object and API to use (including__cuda_stream__
)It could...
cudaStream_t
in an attributeThe text was updated successfully, but these errors were encountered: