NAMD
Public Member Functions | Public Attributes | List of all members
DeviceBuffer Struct Reference

#include <CudaPmeSolver.h>

Public Member Functions

 DeviceBuffer (int deviceID, bool isPeerDevice, std::array< float2 *, NUM_GRID_MAX > dataGrid)
 
 DeviceBuffer (int deviceID, bool isPeerDevice)
 

Public Attributes

bool isPeerDevice
 
int deviceID
 
cudaEvent_t event
 
std::array< float2 *, NUM_GRID_MAXdataGrid
 

Detailed Description

Definition at line 70 of file CudaPmeSolver.h.

Constructor & Destructor Documentation

◆ DeviceBuffer() [1/2]

DeviceBuffer::DeviceBuffer ( int  deviceID,
bool  isPeerDevice,
std::array< float2 *, NUM_GRID_MAX dataGrid 
)
inline

Definition at line 71 of file CudaPmeSolver.h.

std::array< float2 *, NUM_GRID_MAX > dataGrid
Definition: CudaPmeSolver.h:81

◆ DeviceBuffer() [2/2]

DeviceBuffer::DeviceBuffer ( int  deviceID,
bool  isPeerDevice 
)
inline

Definition at line 72 of file CudaPmeSolver.h.

References dataGrid, and NUM_GRID_MAX.

73  for (unsigned int iGrid = 0; iGrid < NUM_GRID_MAX; ++iGrid) {
74  dataGrid[iGrid] = NULL;
75  }
76  }
const unsigned int NUM_GRID_MAX
Definition: PmeSolverUtil.h:9
std::array< float2 *, NUM_GRID_MAX > dataGrid
Definition: CudaPmeSolver.h:81

Member Data Documentation

◆ dataGrid

std::array<float2*, NUM_GRID_MAX> DeviceBuffer::dataGrid

Definition at line 81 of file CudaPmeSolver.h.

Referenced by DeviceBuffer().

◆ deviceID

int DeviceBuffer::deviceID

Definition at line 78 of file CudaPmeSolver.h.

◆ event

cudaEvent_t DeviceBuffer::event

Definition at line 79 of file CudaPmeSolver.h.

◆ isPeerDevice

bool DeviceBuffer::isPeerDevice

Definition at line 77 of file CudaPmeSolver.h.


The documentation for this struct was generated from the following file: