10namespace gtsam_points {
49 void upload(
const void* buffer,
size_t size, CUstream_st* stream);
83 void upload(
const T* buffer,
size_t size, CUstream_st* stream) {
84 upload(
reinterpret_cast<const void*
>(buffer),
size, stream);
87 void download(T* buffer,
size_t size, CUstream_st* stream) {
100 const bool use_pinned_buffer;
Device buffer for asynchronous data transfer.
Definition cuda_buffer.hpp:16
void * host_buffer()
Pinned host buffer.
void download(CUstream_st *stream)
Download data from the device buffer to the pinned host buffer.
void upload(const void *buffer, size_t size, CUstream_st *stream)
Upload data to the device buffer. If size > buffer_size, the buffers will be resized before uploading...
void download(void *buffer, size_t size, CUstream_st *stream)
Download data from the device buffer.
void * device_buffer()
Pinned device buffer.
size_t size() const
Buffer size.
void resize(size_t size, CUstream_st *stream)
Resize the buffer size. This method only expands the device/host buffers and doesn't shrink them when...
void upload(CUstream_st *stream)
Upload data from the host pinned buffer to the device buffer.
void upload(size_t size, CUstream_st *stream)
Upload data from the host pinned buffer to the device buffer.