An interface class for offloading data from GPU to CPU.
More...
#include <offloadable.hpp>
|
|
std::uint64_t | last_accessed_time () const |
| | Time of the last access to this object.
|
| |
| virtual size_t | memory_usage_gpu () const |
| | Memory usage in bytes on the GPU.
|
| |
| virtual bool | loaded_on_gpu () const =0 |
| | Check if the data is loaded on the GPU.
|
| |
| virtual bool | touch (CUstream_st *stream=0) |
| | Reload data from CPU to GPU (if necessary) and update the last access time.
|
| |
| virtual bool | offload_gpu (CUstream_st *stream=0)=0 |
| | Offload data from GPU to CPU.
|
| |
| virtual bool | reload_gpu (CUstream_st *stream=0)=0 |
| | Reload data from CPU to GPU.
|
| |
|
|
static std::uint64_t | current_access_time () |
| | Current global access time counter.
|
| |
|
|
std::uint64_t | last_access |
| | Last access time of this object.
|
| |
|
|
static std::atomic_uint64_t | access_counter |
| | Global counter for the last access time.
|
| |
An interface class for offloading data from GPU to CPU.
◆ loaded_on_gpu()
| virtual bool gtsam_points::OffloadableGPU::loaded_on_gpu |
( |
| ) |
const |
|
pure virtual |
◆ memory_usage_gpu()
| virtual size_t gtsam_points::OffloadableGPU::memory_usage_gpu |
( |
| ) |
const |
|
inlinevirtual |
◆ offload_gpu()
| virtual bool gtsam_points::OffloadableGPU::offload_gpu |
( |
CUstream_st * |
stream = 0 | ) |
|
|
pure virtual |
◆ reload_gpu()
| virtual bool gtsam_points::OffloadableGPU::reload_gpu |
( |
CUstream_st * |
stream = 0 | ) |
|
|
pure virtual |
◆ touch()
| virtual bool gtsam_points::OffloadableGPU::touch |
( |
CUstream_st * |
stream = 0 | ) |
|
|
virtual |
Reload data from CPU to GPU (if necessary) and update the last access time.
- Returns
- true if the data offload is conducted, false if the data is already on the CPU
The documentation for this class was generated from the following file:
- /home/runner/work/gtsam_points/gtsam_points/include/gtsam_points/types/offloadable.hpp