Sierra Toolkit  Version of the Day
stk_classic::CudaMemoryMgr Class Reference

#include <CudaMemoryMgr.hpp>

Public Member Functions

 CudaMemoryMgr ()
 
virtual ~CudaMemoryMgr ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CudaMemoryMgr()

stk_classic::CudaMemoryMgr::CudaMemoryMgr ( )
inline

Constructor

Definition at line 34 of file CudaMemoryMgr.hpp.

◆ ~CudaMemoryMgr()

stk_classic::CudaMemoryMgr::~CudaMemoryMgr ( )
virtual

Destructor Upon destruction this class de-allocates all device-buffers that it was tracking.

Definition at line 23 of file CudaMemoryMgr.cpp.


The documentation for this class was generated from the following files: