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

#include <CudaMemoryMgr.hpp>

List of all members.

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

stk::CudaMemoryMgr::CudaMemoryMgr ( ) [inline]

Constructor

Definition at line 34 of file CudaMemoryMgr.hpp.

stk::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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines