Skip to content

CUDAStreamView (or similar name) object #314

@jakirkham

Description

@jakirkham

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...

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...

  1. Identify the object
  2. Keep a copy of the cudaStream_t in an attribute
  3. Keep a reference to the exporting object
  4. Query/store any other relevant info

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-responseFurther information is requestedcuda.coreEverything related to the cuda.core modulewontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions