Class CUDABuffer

A class that encapsulates the CUDA memory allocation/deallocation process.

class CUDABuffer ;

Methods

NameDescription
createConstructs a CUDABuffer object and allocates memory on the CUDA device.
destroyReleases the CUDA resources used by buf internally.
getCopies data from the device to the host.
numBytesProvides the size of the buffer allocated on the CUDA device.
ptrProvides the device pointer.
setCopies data from the host to the device.