Definition at line 36 of file memory.hpp.
Public Member Functions | |
T * | host () const |
T * | device () const |
size_t | size () const |
size_t | bytes () const |
virtual | ~Memory () |
void | copy_host_to_device (cudaStream_t stream=nullptr) |
void | copy_device_to_host (cudaStream_t stream=nullptr) |
void | alloc_or_resize_to (size_t size) |
void | free_memory () |
Definition at line 43 of file memory.hpp.
References Memory< T >::free_memory().
|
inline |
Definition at line 54 of file memory.hpp.
References checkRuntime, Memory< T >::free_memory(), and Memory< T >::size().
|
inline |
Definition at line 41 of file memory.hpp.
Referenced by Memory< T >::copy_device_to_host(), and Memory< T >::copy_host_to_device().
|
inline |
Definition at line 50 of file memory.hpp.
References Memory< T >::bytes(), and checkRuntime.
|
inline |
Definition at line 47 of file memory.hpp.
References Memory< T >::bytes(), and checkRuntime.
|
inline |
Definition at line 39 of file memory.hpp.
|
inline |
Definition at line 65 of file memory.hpp.
References checkRuntime.
Referenced by Memory< T >::alloc_or_resize_to(), and Memory< T >::~Memory().
|
inline |
Definition at line 38 of file memory.hpp.
|
inline |
Definition at line 40 of file memory.hpp.
Referenced by Memory< T >::alloc_or_resize_to().