holoscan::utils::cuda::DeviceBuffer
holoscan::utils::cuda::DeviceBuffer
holoscan::utils::cuda::DeviceBuffer
CUDA Device Buffer Class.
Inherits from: holoscan::utils::cuda::Buffer (public)
Construction with size.
Parameters
Memory size to be allocated in bytes
GPU device ID, defaults to 0
Destructor.
The following overloads are deleted to prevent misuse:
Buffer class virtual members implemented by this class.
Get the size of the allocated buffer in elements.
Returns: size in elements
Get the bytes allocated.
Returns: allocated bytes
Resize the underlying buffer.
Parameters
Number of elements to be resized with
Copies data from device to host after allocating the host memory.
Get the datatype.
Returns: datatype
Get the device ID.
Returns: device ID