Sierra Toolkit
Version of the Day
|
#include <CudaMemoryMgr.hpp>
Public Member Functions | |
CudaMemoryMgr () | |
virtual | ~CudaMemoryMgr () |
Helper class for managing CUDA device memory.
Tracks persistent mappings between host(cpu) buffers and CUDA device buffers, intended to be used for mapping bucket/field data pointers on the host to buffers on the device. This allows algorithm/bucket loops to repeatedly reference pointers to field data without performing the device allocation every time.
This class also allows for creating and using device buffers that are not mapped to host buffers.
Definition at line 31 of file CudaMemoryMgr.hpp.
|
inline |
Constructor
Definition at line 34 of file CudaMemoryMgr.hpp.
|
virtual |
Destructor Upon destruction this class de-allocates all device-buffers that it was tracking.
Definition at line 23 of file CudaMemoryMgr.cpp.