-
Notifications
You must be signed in to change notification settings - Fork 236
Closed as not planned
Labels
awaiting-responseFurther information is requestedFurther information is requestedcuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core modulewontfixThis will not be worked onThis will not be worked on
Description
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...
- Python
__dlpack__can contain a stream - Numba's
__cuda_array_interface__can contain a stream - Plus a number of libraries provide their own stream objects
- Not to mention cases where a
cudaStream_tis passed around as an integer address
With 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 the StridedMemoryView, 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...
- Identify the object
- Keep a copy of the
cudaStream_tin an attribute - Keep a reference to the exporting object
- Query/store any other relevant info
Metadata
Metadata
Assignees
Labels
awaiting-responseFurther information is requestedFurther information is requestedcuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core modulewontfixThis will not be worked onThis will not be worked on