Class CUDABuffer
A class that encapsulates the CUDA memory allocation/deallocation process.
class CUDABuffer
;
Methods
Name | Description |
---|---|
create | Constructs a CUDABuffer object and allocates memory on the CUDA device. |
destroy | Releases the CUDA resources used by buf internally. |
get | Copies data from the device to the host. |
numBytes | Provides the size of the buffer allocated on the CUDA device. |
ptr | Provides the device pointer. |
set | Copies data from the host to the device. |