NAMD
|
#include <ComputeMgr.h>
Public Attributes | |
ComputeGlobal * | computeGlobalObject |
ResizeArray< ComputeGlobalResultsMsg * > | computeGlobalResultsMsgs |
int | computeGlobalResultsMsgSeq |
int | computeGlobalResultsMsgMasterSeq |
CkCallback | callMeBackCB |
Definition at line 66 of file ComputeMgr.h.
ComputeMgr::ComputeMgr | ( | ) |
Definition at line 117 of file ComputeMgr.C.
References computeGlobalObject, computeGlobalResultsMsgMasterSeq, and computeGlobalResultsMsgSeq.
ComputeMgr::~ComputeMgr | ( | void | ) |
void ComputeMgr::createComputes | ( | ComputeMap * | map | ) |
Definition at line 1037 of file ComputeMgr.C.
References GlobalMasterServer::addClient(), CudaComputeNonbonded::assignPatches(), computeAnglesType, computeAnisoType, computeBondsType, computeCrosstermsType, computeDihedralsType, computeExclsType, computeImpropersType, computeNonbondedCUDA2Type, computeNonbondedPairType, computeNonbondedSelfType, computeOneFourNbTholeType, computeSelfAnglesType, computeSelfAnisoType, computeSelfBondsType, computeSelfCrosstermsType, computeSelfDihedralsType, computeSelfExclsType, computeSelfImpropersType, computeSelfOneFourNbTholeType, computeSelfTholeType, computeTholeType, DebugM, DeviceCUDA::device_shared_with_pe(), deviceCUDA, getCudaComputeNonbonded(), DeviceCUDA::getMasterPe(), CudaComputeNonbonded::initialize(), Node::molecule, Node::myid(), NAMD_BONDEDGPU_ANGLES, NAMD_BONDEDGPU_ANISOS, NAMD_BONDEDGPU_BONDS, NAMD_BONDEDGPU_CROSSTERMS, NAMD_BONDEDGPU_DIHEDRALS, NAMD_BONDEDGPU_EXCLS, NAMD_BONDEDGPU_IMPROPERS, NAMD_BONDEDGPU_ONEFOURENBTHOLES, NAMD_BONDEDGPU_THOLES, Molecule::numAtoms, PatchMap::Object(), Node::Object(), Node::simParameters, simParams, and ComputeMap::type().
Referenced by Node::startup().
void ComputeMgr::doneUpdateLocalComputes | ( | ) |
void ComputeMgr::enableComputeGlobalResults | ( | ) |
Definition at line 1407 of file ComputeMgr.C.
References computeGlobalResultsMsgs, computeGlobalResultsMsgSeq, DebugM, ResizeArray< Elem >::del(), NAMD_EVENT_START, NAMD_EVENT_STOP, recvComputeGlobalResults(), and ResizeArray< Elem >::size().
Referenced by ComputeGlobal::doWork().
int ComputeMgr::getCudaGlobalMasterUpdateResult | ( | const std::string & | client_name | ) | const |
Definition at line 1760 of file ComputeMgr.C.
std::string ComputeMgr::getCudaGlobalMasterUpdateResultString | ( | const std::string & | client_name | ) | const |
Definition at line 1764 of file ComputeMgr.C.
void ComputeMgr::recvAssignPatchesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1793 of file ComputeMgr.C.
References CudaComputeNonbonded::assignPatchesOnPe(), and CudaComputeNonbondedMsg::c.
void ComputeMgr::recvComputeConsForceMsg | ( | ComputeConsForceMsg * | msg | ) |
Definition at line 1544 of file ComputeMgr.C.
References ComputeConsForceMsg::aid, Molecule::consForce, Molecule::consForceIndexes, ComputeConsForceMsg::f, for(), Node::molecule, Molecule::numAtoms, Node::Object(), and ResizeArray< Elem >::size().
void ComputeMgr::recvComputeDPMEData | ( | ComputeDPMEDataMsg * | msg | ) |
void ComputeMgr::recvComputeDPMEResults | ( | ComputeDPMEResultsMsg * | msg | ) |
void ComputeMgr::recvComputeEwaldData | ( | ComputeEwaldMsg * | msg | ) |
void ComputeMgr::recvComputeEwaldResults | ( | ComputeEwaldMsg * | msg | ) |
Definition at line 1482 of file ComputeMgr.C.
References NAMD_die(), PatchMap::Object(), and ComputeEwald::recvResults().
Referenced by sendComputeEwaldResults().
void ComputeMgr::recvComputeGlobalConfig | ( | ComputeGlobalConfigMsg * | ) |
void ComputeMgr::recvComputeGlobalData | ( | ComputeGlobalDataMsg * | msg | ) |
Definition at line 1357 of file ComputeMgr.C.
References DebugM, NAMD_die(), NAMD_EVENT_START, NAMD_EVENT_STOP, and GlobalMasterServer::recvData().
void ComputeMgr::recvComputeGlobalResults | ( | ComputeGlobalResultsMsg * | msg | ) |
Definition at line 1424 of file ComputeMgr.C.
References ResizeArray< Elem >::add(), computeGlobalObject, computeGlobalResultsMsgs, computeGlobalResultsMsgSeq, DebugM, NAMD_die(), NAMD_EVENT_START, NAMD_EVENT_STOP, PatchMap::Object(), ComputeGlobal::recvResults(), and ComputeGlobalResultsMsg::seq.
Referenced by ComputeGlobal::doWork(), enableComputeGlobalResults(), and sendComputeGlobalData().
void ComputeMgr::recvCudaGlobalMasterCreateMsg | ( | std::vector< std::string > | args | ) |
Definition at line 1579 of file ComputeMgr.C.
References ComputeCUDAMgr::createCudaGlobalMaster(), DebugM, deviceCUDA, endi(), ComputeCUDAMgr::getComputeCUDAMgr(), ComputeCUDAMgr::getCudaGlobalMaster(), DeviceCUDA::getGlobalDevice(), DeviceCUDA::getIsGlobalDevice(), DeviceCUDA::getMasterPe(), iERROR(), iINFO(), iout, NAMD_die(), Node::Object(), Node::simParameters, and simParams.
void ComputeMgr::recvCudaGlobalMasterRemoveMsg | ( | std::vector< std::string > | args | ) |
Definition at line 1648 of file ComputeMgr.C.
References deviceCUDA, endi(), ComputeCUDAMgr::getComputeCUDAMgr(), ComputeCUDAMgr::getCudaGlobalMaster(), DeviceCUDA::getIsGlobalDevice(), DeviceCUDA::getMasterPe(), iINFO(), iout, NAMD_die(), Node::Object(), Node::simParameters, and simParams.
void ComputeMgr::recvCudaGlobalMasterUpdateMsg | ( | std::vector< std::string > | args | ) |
Definition at line 1692 of file ComputeMgr.C.
References deviceCUDA, endi(), ComputeCUDAMgr::getComputeCUDAMgr(), ComputeCUDAMgr::getCudaGlobalMaster(), DeviceCUDA::getIsGlobalDevice(), DeviceCUDA::getMasterPe(), iINFO(), iout, NAMD_die(), Node::Object(), Node::simParameters, and simParams.
void ComputeMgr::recvCudaGlobalMasterUpdateResultMsg | ( | int | tcl_error_code, |
std::vector< std::string > | args | ||
) |
void ComputeMgr::recvFinishPatchesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1820 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::finishPatchesOnPe().
void ComputeMgr::recvFinishPatchOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1833 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, CudaComputeNonbonded::finishPatchOnPe(), and CudaComputeNonbondedMsg::i.
void ComputeMgr::recvFinishReductions | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1858 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::finishReductions().
void ComputeMgr::recvLaunchWork | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1880 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::launchWork().
void ComputeMgr::recvMessageEnqueueWork | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1869 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::messageEnqueueWork().
void ComputeMgr::recvOpenBoxesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1847 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::openBoxesOnPe().
void ComputeMgr::recvSkipPatchesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1806 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::skipPatchesOnPe().
void ComputeMgr::recvUnregisterBoxesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1893 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::unregisterBoxesOnPe().
void ComputeMgr::recvYieldDevice | ( | int | pe | ) |
Definition at line 1773 of file ComputeMgr.C.
void ComputeMgr::sendAssignPatchesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1785 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::assignPatches().
void ComputeMgr::sendComputeDPMEData | ( | ComputeDPMEDataMsg * | msg | ) |
void ComputeMgr::sendComputeDPMEResults | ( | ComputeDPMEResultsMsg * | msg, |
int | node | ||
) |
Definition at line 1519 of file ComputeMgr.C.
void ComputeMgr::sendComputeEwaldData | ( | ComputeEwaldMsg * | msg | ) |
Definition at line 1454 of file ComputeMgr.C.
References ComputeEwald::getMasterNode(), NAMD_die(), and PatchMap::Object().
Referenced by ComputeEwald::doWork().
void ComputeMgr::sendComputeEwaldResults | ( | ComputeEwaldMsg * | msg | ) |
Definition at line 1477 of file ComputeMgr.C.
References recvComputeEwaldResults().
Referenced by ComputeEwald::recvData().
void ComputeMgr::sendComputeGlobalConfig | ( | ComputeGlobalConfigMsg * | ) |
void ComputeMgr::sendComputeGlobalData | ( | ComputeGlobalDataMsg * | msg | ) |
Definition at line 1294 of file ComputeMgr.C.
References SimParameters::CUDASOAintegrate, DebugM, NAMD_EVENT_START, NAMD_EVENT_STOP, Node::Object(), recvComputeGlobalResults(), and Node::simParameters.
Referenced by ComputeGlobal::doWork().
void ComputeMgr::sendComputeGlobalResults | ( | ComputeGlobalResultsMsg * | msg | ) |
Definition at line 1369 of file ComputeMgr.C.
References computeGlobalResultsMsgMasterSeq, SimParameters::CUDASOAintegrate, DebugM, NAMD_EVENT_START, NAMD_EVENT_STOP, Node::Object(), ComputeGlobalResultsMsg::seq, and Node::simParameters.
void ComputeMgr::sendFinishPatchesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1811 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, COMPUTE_PROXY_PRIORITY, PRIORITY_SIZE, Compute::sequence(), and SET_PRIORITY.
Referenced by CudaComputeNonbonded::finishPatches().
void ComputeMgr::sendFinishPatchOnPe | ( | int | pe, |
CudaComputeNonbonded * | c, | ||
int | i, | ||
PatchID | patchID | ||
) |
Definition at line 1825 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, COMPUTE_PROXY_PRIORITY, CudaComputeNonbondedMsg::i, PATCH_PRIORITY, PRIORITY_SIZE, Compute::sequence(), and SET_PRIORITY.
void ComputeMgr::sendFinishReductions | ( | int | pe, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1852 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::skipPatchesOnPe().
void ComputeMgr::sendLaunchWork | ( | int | pe, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1874 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::openBoxesOnPe().
void ComputeMgr::sendMessageEnqueueWork | ( | int | pe, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1863 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::noWork().
void ComputeMgr::sendOpenBoxesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1838 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, PRIORITY_SIZE, PROXY_DATA_PRIORITY, Compute::sequence(), and SET_PRIORITY.
Referenced by CudaComputeNonbonded::doWork().
void ComputeMgr::sendSkipPatchesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1798 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
void ComputeMgr::sendUnregisterBoxesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1885 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::~CudaComputeNonbonded().
void ComputeMgr::sendYieldDevice | ( | int | pe | ) |
Definition at line 1768 of file ComputeMgr.C.
void ComputeMgr::splitComputes | ( | ) |
Definition at line 175 of file ComputeMgr.C.
References ComputeMap::cloneCompute(), ComputeMap::extendPtrs(), ComputeMap::newNode(), ComputeMap::newNumPartitions(), ComputeMap::node(), ComputeMap::numComputes(), ComputeMap::numPartitions(), ComputeMap::Object(), ComputeMap::setNewNode(), ComputeMap::setNewNumPartitions(), and ComputeMap::setNumPartitions().
void ComputeMgr::splitComputes2 | ( | CkQdMsg * | msg | ) |
Definition at line 209 of file ComputeMgr.C.
void ComputeMgr::updateComputes | ( | int | ep, |
CkGroupID | chareID | ||
) |
Definition at line 142 of file ComputeMgr.C.
References NAMD_bug().
Referenced by LdbCoordinator::ExecuteMigrations().
void ComputeMgr::updateComputes2 | ( | CkQdMsg * | msg | ) |
Definition at line 156 of file ComputeMgr.C.
References WorkDistrib::saveComputeMapChanges().
void ComputeMgr::updateComputes3 | ( | ) |
Definition at line 165 of file ComputeMgr.C.
void ComputeMgr::updateLocalComputes | ( | ) |
Definition at line 215 of file ComputeMgr.C.
References ResizeArray< Elem >::add(), ComputeMap::compute(), ProxyMgr::createProxy(), Compute::ldObjHandle, LdbCoordinator::Migrate(), ComputeMap::newNode(), ComputeMap::newNumPartitions(), ComputeMap::node(), ComputeMap::numComputes(), ComputeMap::numPids(), ComputeMap::Object(), LdbCoordinator::Object(), ComputeMap::pid(), ComputeMap::registerCompute(), and ResizeArray< Elem >::resize().
void ComputeMgr::updateLocalComputes2 | ( | CkQdMsg * | msg | ) |
Definition at line 259 of file ComputeMgr.C.
void ComputeMgr::updateLocalComputes3 | ( | ) |
Definition at line 266 of file ComputeMgr.C.
References ResizeArray< Elem >::clear(), ComputeMap::newNode(), ProxyMgr::nodecount, ComputeMap::numComputes(), ComputeMap::Object(), ProxyMgr::removeUnusedProxies(), ComputeMap::setNewNode(), ComputeMap::setNewNumPartitions(), ComputeMap::setNode(), and ResizeArray< Elem >::size().
void ComputeMgr::updateLocalComputes4 | ( | CkQdMsg * | msg | ) |
Definition at line 298 of file ComputeMgr.C.
References Node::Object(), ComputeMap::Object(), ComputeMap::saveComputeMap(), Node::simParameters, and simParams.
void ComputeMgr::updateLocalComputes5 | ( | ) |
Definition at line 316 of file ComputeMgr.C.
References ProxyMgr::buildProxySpanningTree2(), PatchMap::checkMap(), ComputeMap::checkMap(), PatchMap::Object(), ComputeMap::Object(), ProxyMgr::Object(), proxyRecvSpanning, proxySendSpanning, and ProxyMgr::sendSpanningTrees().
CkCallback ComputeMgr::callMeBackCB |
Definition at line 164 of file ComputeMgr.h.
ComputeGlobal* ComputeMgr::computeGlobalObject |
Definition at line 160 of file ComputeMgr.h.
Referenced by ComputeMgr(), Sequencer::integrate(), Sequencer::integrate_SOA(), Sequencer::minimize(), and recvComputeGlobalResults().
int ComputeMgr::computeGlobalResultsMsgMasterSeq |
Definition at line 163 of file ComputeMgr.h.
Referenced by ComputeMgr(), and sendComputeGlobalResults().
ResizeArray<ComputeGlobalResultsMsg*> ComputeMgr::computeGlobalResultsMsgs |
Definition at line 161 of file ComputeMgr.h.
Referenced by enableComputeGlobalResults(), and recvComputeGlobalResults().
int ComputeMgr::computeGlobalResultsMsgSeq |
Definition at line 162 of file ComputeMgr.h.
Referenced by ComputeMgr(), enableComputeGlobalResults(), and recvComputeGlobalResults().