DeviceBuffer
struct DeviceBuffer[dtype: DType]
Represents a block of device-resident storage. For GPU devices, a device buffer is allocated in the device's global memory.
To allocate a DeviceBuffer, use one of the methods provided by
DeviceContext, such as
enqueue_create_buffer().
Parameters
- dtype (
DType): Data dtype to be stored in the buffer.