NAMD
|
#include <ComputePmeCUDAMgr.h>
Public Member Functions | |
ComputePmeCUDAMgr () | |
ComputePmeCUDAMgr (CkMigrateMessage *) | |
~ComputePmeCUDAMgr () | |
void | setupPencils () |
void | initialize (CkQdMsg *msg) |
void | initialize_pencils (CkQdMsg *msg) |
void | activate_pencils (CkQdMsg *msg) |
PmeGrid | getPmeGrid () |
int | getNode (int i, int j) |
int | getDevice (int i, int j) |
int | getDevicePencilY (int i, int j) |
int | getDevicePencilZ (int i, int j) |
int | getDeviceIDPencilX (int i, int j) |
int | getDeviceIDPencilY (int i, int j) |
int | getDeviceIDPencilZ (int i, int j) |
void | recvPencils (CProxy_CudaPmePencilXYZ xyz) |
void | recvPencils (CProxy_CudaPmePencilXY xy, CProxy_CudaPmePencilZ z) |
void | recvPencils (CProxy_CudaPmePencilX x, CProxy_CudaPmePencilY y, CProxy_CudaPmePencilZ z) |
void | createDevicesAndAtomFiler () |
void | recvDevices (RecvDeviceMsg *msg) |
void | recvAtomFiler (CProxy_PmeAtomFiler filer) |
void | skip () |
void | recvAtoms (PmeAtomMsg *msg) |
void | getHomePencil (PatchID patchID, int &homey, int &homez) |
int | getHomeNode (PatchID patchID) |
bool | isPmePe (int pe) |
bool | isPmeNode (int node) |
bool | isPmeDevice (int deviceID) |
Static Public Member Functions | |
static ComputePmeCUDAMgr * | Object () |
Public Attributes | |
ComputePmeCUDAMgr_SDAG_CODE | |
Definition at line 579 of file ComputePmeCUDAMgr.h.
ComputePmeCUDAMgr::ComputePmeCUDAMgr | ( | ) |
Definition at line 221 of file ComputePmeCUDAMgr.C.
ComputePmeCUDAMgr::ComputePmeCUDAMgr | ( | CkMigrateMessage * | ) |
ComputePmeCUDAMgr::~ComputePmeCUDAMgr | ( | ) |
void ComputePmeCUDAMgr::activate_pencils | ( | CkQdMsg * | msg | ) |
Definition at line 837 of file ComputePmeCUDAMgr.C.
References PmeStartMsg::dataGrid, PmeStartMsg::dataSizes, PmeStartMsg::enabledGrid, and NUM_GRID_MAX.
void ComputePmeCUDAMgr::createDevicesAndAtomFiler | ( | ) |
Definition at line 705 of file ComputePmeCUDAMgr.C.
References RecvDeviceMsg::dev, NAMD_bug(), RecvDeviceMsg::numDevicesMax, and PRIORITY_SIZE.
int ComputePmeCUDAMgr::getDevice | ( | int | i, |
int | j | ||
) |
Definition at line 888 of file ComputePmeCUDAMgr.C.
References NAMD_bug(), PmeGrid::yBlocks, and PmeGrid::zBlocks.
Referenced by getDeviceIDPencilX(), and recvAtoms().
int ComputePmeCUDAMgr::getDeviceIDPencilX | ( | int | i, |
int | j | ||
) |
int ComputePmeCUDAMgr::getDeviceIDPencilY | ( | int | i, |
int | j | ||
) |
Definition at line 937 of file ComputePmeCUDAMgr.C.
References getDevicePencilY().
int ComputePmeCUDAMgr::getDeviceIDPencilZ | ( | int | i, |
int | j | ||
) |
Definition at line 945 of file ComputePmeCUDAMgr.C.
References getDevicePencilZ().
int ComputePmeCUDAMgr::getDevicePencilY | ( | int | i, |
int | j | ||
) |
Definition at line 901 of file ComputePmeCUDAMgr.C.
References NAMD_bug(), PmeGrid::xBlocks, and PmeGrid::zBlocks.
Referenced by getDeviceIDPencilY().
int ComputePmeCUDAMgr::getDevicePencilZ | ( | int | i, |
int | j | ||
) |
Definition at line 916 of file ComputePmeCUDAMgr.C.
References NAMD_bug(), PmeGrid::xBlocks, and PmeGrid::yBlocks.
Referenced by getDeviceIDPencilZ().
int ComputePmeCUDAMgr::getHomeNode | ( | PatchID | patchID | ) |
Definition at line 879 of file ComputePmeCUDAMgr.C.
References getHomePencil(), and getNode().
void ComputePmeCUDAMgr::getHomePencil | ( | PatchID | patchID, |
int & | homey, | ||
int & | homez | ||
) |
Definition at line 255 of file ComputePmeCUDAMgr.C.
References getPencilDim(), PmeGrid::K2, PmeGrid::K3, PatchMap::max_b(), PatchMap::max_c(), PatchMap::min_b(), PatchMap::min_c(), NAMD_bug(), PatchMap::Object(), PmeGrid::order, Perm_X_Y_Z, PmeGrid::yBlocks, and PmeGrid::zBlocks.
Referenced by getHomeNode().
int ComputePmeCUDAMgr::getNode | ( | int | i, |
int | j | ||
) |
Definition at line 869 of file ComputePmeCUDAMgr.C.
References NAMD_bug(), PmeGrid::yBlocks, and PmeGrid::zBlocks.
Referenced by getHomeNode().
|
inline |
Definition at line 589 of file ComputePmeCUDAMgr.h.
Referenced by ComputePmeCUDA::initialize().
void ComputePmeCUDAMgr::initialize | ( | CkQdMsg * | msg | ) |
Definition at line 624 of file ComputePmeCUDAMgr.C.
References DebugM, endi(), iINFO(), iout, setupPencils(), PmeGrid::xBlocks, PmeGrid::yBlocks, and PmeGrid::zBlocks.
void ComputePmeCUDAMgr::initialize_pencils | ( | CkQdMsg * | msg | ) |
Definition at line 760 of file ComputePmeCUDAMgr.C.
References createStream(), cudaCheck, DebugM, deviceCUDA, endi(), DeviceCUDA::getDeviceIDbyRank(), and DeviceCUDA::getNumDevice().
bool ComputePmeCUDAMgr::isPmeDevice | ( | int | deviceID | ) |
Definition at line 611 of file ComputePmeCUDAMgr.C.
References deviceCUDA, DeviceCUDA::getDeviceIDbyRank(), and DeviceCUDA::getNumDevice().
bool ComputePmeCUDAMgr::isPmeNode | ( | int | node | ) |
Definition at line 599 of file ComputePmeCUDAMgr.C.
bool ComputePmeCUDAMgr::isPmePe | ( | int | pe | ) |
Definition at line 589 of file ComputePmeCUDAMgr.C.
Referenced by CudaComputeNonbonded::assignPatches().
|
inlinestatic |
Definition at line 613 of file ComputePmeCUDAMgr.h.
Referenced by CudaComputeNonbonded::assignPatches().
void ComputePmeCUDAMgr::recvAtomFiler | ( | CProxy_PmeAtomFiler | filer | ) |
Definition at line 724 of file ComputePmeCUDAMgr.C.
void ComputePmeCUDAMgr::recvAtoms | ( | PmeAtomMsg * | msg | ) |
Definition at line 968 of file ComputePmeCUDAMgr.C.
References DebugM, endi(), getDevice(), PmeAtomMsg::i, and PmeAtomMsg::j.
void ComputePmeCUDAMgr::recvDevices | ( | RecvDeviceMsg * | msg | ) |
Definition at line 728 of file ComputePmeCUDAMgr.C.
References DebugM, RecvDeviceMsg::dev, endi(), NAMD_bug(), and RecvDeviceMsg::numDevicesMax.
void ComputePmeCUDAMgr::recvPencils | ( | CProxy_CudaPmePencilXYZ | xyz | ) |
Definition at line 741 of file ComputePmeCUDAMgr.C.
void ComputePmeCUDAMgr::recvPencils | ( | CProxy_CudaPmePencilXY | xy, |
CProxy_CudaPmePencilZ | z | ||
) |
void ComputePmeCUDAMgr::recvPencils | ( | CProxy_CudaPmePencilX | x, |
CProxy_CudaPmePencilY | y, | ||
CProxy_CudaPmePencilZ | z | ||
) |
Definition at line 750 of file ComputePmeCUDAMgr.C.
void ComputePmeCUDAMgr::setupPencils | ( | ) |
Definition at line 418 of file ComputePmeCUDAMgr.C.
References PmeGrid::block1, PmeGrid::block2, PmeGrid::block3, DebugM, deviceCUDA, PmeGrid::dim2, PmeGrid::dim3, endi(), DeviceCUDA::getNumDevice(), iINFO(), iout, PmeGrid::K1, PmeGrid::K2, PmeGrid::K3, NAMD_bug(), Node::Object(), PmeGrid::order, Node::simParameters, simParams, PmeGrid::xBlocks, PmeGrid::yBlocks, and PmeGrid::zBlocks.
Referenced by initialize().
void ComputePmeCUDAMgr::skip | ( | void | ) |
ComputePmeCUDAMgr::ComputePmeCUDAMgr_SDAG_CODE |
Definition at line 581 of file ComputePmeCUDAMgr.h.