Skip to main content

Module kind

Module kind 

Source
Expand description

Backing store kind, as reported in TensorDesc::kind.

Constants§

CUDA_DEVICE
CUDA device memory. ptr is a device pointer, not host-addressable.
D3D11_TEXTURE
Windows D3D11 texture. handle is the texture’s NT shared handle and ptr the device fence’s NT shared handle, both valid in the producing process (other modules of the same process included); sync is the fence value of the last recorded GPU write when SYNC_PRESENT is set. The ptr reuse follows PBO’s vtable precedent.
DMABUF
Linux dma-buf. handle is the fd.
HOST
Host memory: Mem or Shm. ptr is valid; handle is -1.
IOSURFACE
Apple IOSurface. handle is the surface id.
PBO
OpenGL pixel buffer object. handle is the buffer id.