spdl.io.CUDABuffer

class CUDABuffer

CUDABuffer implements CUDA array interface.

To be passed to casting functions like to_torch() and to_numba().

Attributes

device_index

The device index.

synchronize

Block the calling thread until the buffer is ready.

property device_index

The device index.

synchronize

Block the calling thread until the buffer is ready.

For a buffer without a ready event, this synchronizes the stream it was written on, as seen from the calling thread.

Added in version 0.9.0.