vpi.CudaBuffer
- class vpi.CudaBuffer
The CUDA buffer class for interoperabilities.
The data of an
imagecan be accessed in CUDA by other libraries via the methods:lock_cuda;rlock_cuda;wlock_cuda; andrwlock_cuda.The data of other libraries can be accessed in the VPI library via the function:
vpi.asimage().Hint
Remember this class and its
interfaceare used automatically behind the scenes to provide interoperability with other libraries, for only CUDA buffer data contents of theimageclass.- property __cuda_array_interface__
CUDA buffer array interface.
This property of the
vpi.CudaBufferclass enables any library that supports the cuda array interface to access the data of animagevia itscontainermethods:lock_cuda;rlock_cuda;wlock_cuda; andrwlock_cuda. Examples of such libraries are:
Attributes
dtypeData type of the CUDA buffer.
shapeShape of the CUDA buffer.