NAMD
|
#include <ComputeMgr.h>
Public Attributes | |
ComputeGlobal * | computeGlobalObject |
ResizeArray < ComputeGlobalResultsMsg * > | computeGlobalResultsMsgs |
int | computeGlobalResultsMsgSeq |
int | computeGlobalResultsMsgMasterSeq |
Definition at line 57 of file ComputeMgr.h.
ComputeMgr::ComputeMgr | ( | ) |
Definition at line 109 of file ComputeMgr.C.
References computeGlobalObject, computeGlobalResultsMsgMasterSeq, computeGlobalResultsMsgSeq, and NAMD_die().
ComputeMgr::~ComputeMgr | ( | void | ) |
Definition at line 136 of file ComputeMgr.C.
void ComputeMgr::createComputes | ( | ComputeMap * | map | ) |
Definition at line 1009 of file ComputeMgr.C.
References GlobalMasterServer::addClient(), ComputeNonbondedMIC::assignPatches(), ComputeNonbondedCUDA::assignPatches(), CudaComputeNonbonded::assignPatches(), SimParameters::bondedCUDA, SimParameters::colvarsOn, computeAnglesType, computeBondsType, computeCrosstermsType, computeDihedralsType, computeExclsType, computeImpropersType, computeNonbondedCUDA2Type, computeNonbondedCUDAType, computeNonbondedMICType, computeNonbondedPairType, computeNonbondedSelfType, computeSelfAnglesType, computeSelfBondsType, computeSelfCrosstermsType, computeSelfDihedralsType, computeSelfExclsType, computeSelfImpropersType, DebugM, DeviceCUDA::device_shared_with_pe(), deviceCUDA, SimParameters::firstTimestep, SimParameters::freeEnergyOn, getCudaComputeNonbonded(), DeviceCUDA::getMasterPe(), SimParameters::globalForcesOn, SimParameters::IMDignore, SimParameters::IMDignoreForces, SimParameters::IMDon, CudaComputeNonbonded::initialize(), mic_device_pe(), mic_device_shared_with_pe(), SimParameters::miscForcesOn, Node::molecule, Node::myid(), Molecule::numAtoms, PatchMap::Object(), Node::Object(), Node::simParameters, SimParameters::SMDDir, SimParameters::SMDFile, SimParameters::SMDk, SimParameters::SMDk2, SimParameters::SMDOn, SimParameters::SMDOutputFreq, SimParameters::SMDVel, SimParameters::symmetryLastStep, SimParameters::symmetryOn, SimParameters::tclForcesOn, SimParameters::TMDOn, ComputeMap::type(), and SimParameters::useCUDA2.
Referenced by Node::startup().
void ComputeMgr::doneUpdateLocalComputes | ( | ) |
void ComputeMgr::enableComputeGlobalResults | ( | ) |
Definition at line 1293 of file ComputeMgr.C.
References computeGlobalResultsMsgs, computeGlobalResultsMsgSeq, ResizeArray< T >::del(), recvComputeGlobalResults(), and ResizeArray< T >::size().
Referenced by ComputeGlobal::doWork().
int ComputeMgr::isMICProcessor | ( | int | pe | ) |
Definition at line 1885 of file ComputeMgr.C.
void ComputeMgr::recvAssignPatchesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1594 of file ComputeMgr.C.
References CudaComputeNonbonded::assignPatchesOnPe(), and CudaComputeNonbondedMsg::c.
void ComputeMgr::recvBuildCudaExclusions | ( | ) |
void ComputeMgr::recvBuildCudaForceTable | ( | ) |
void ComputeMgr::recvBuildMICForceTable | ( | ) |
Definition at line 1499 of file ComputeMgr.C.
void ComputeMgr::recvComputeConsForceMsg | ( | ComputeConsForceMsg * | msg | ) |
Definition at line 1408 of file ComputeMgr.C.
References ComputeConsForceMsg::aid, Molecule::consForce, Molecule::consForceIndexes, ComputeConsForceMsg::f, for(), Node::molecule, Molecule::numAtoms, Node::Object(), and ResizeArray< T >::size().
void ComputeMgr::recvComputeDPMEData | ( | ComputeDPMEDataMsg * | msg | ) |
void ComputeMgr::recvComputeDPMEResults | ( | ComputeDPMEResultsMsg * | msg | ) |
void ComputeMgr::recvComputeEwaldData | ( | ComputeEwaldMsg * | msg | ) |
void ComputeMgr::recvComputeEwaldResults | ( | ComputeEwaldMsg * | msg | ) |
Definition at line 1353 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 1278 of file ComputeMgr.C.
References NAMD_die(), and GlobalMasterServer::recvData().
void ComputeMgr::recvComputeGlobalResults | ( | ComputeGlobalResultsMsg * | msg | ) |
Definition at line 1306 of file ComputeMgr.C.
References ResizeArray< T >::add(), computeGlobalObject, computeGlobalResultsMsgs, computeGlobalResultsMsgSeq, NAMD_die(), PatchMap::Object(), ComputeGlobal::recvResults(), and ComputeGlobalResultsMsg::seq.
Referenced by enableComputeGlobalResults().
void ComputeMgr::recvCreateNonbondedCUDASlave | ( | NonbondedCUDASlaveMsg * | msg | ) |
Definition at line 1519 of file ComputeMgr.C.
References Compute::cid, NonbondedCUDASlaveMsg::index, and NonbondedCUDASlaveMsg::master.
void ComputeMgr::recvCreateNonbondedMICSlave | ( | NonbondedMICSlaveMsg * | msg | ) |
Definition at line 1819 of file ComputeMgr.C.
References Compute::cid, NonbondedMICSlaveMsg::index, and NonbondedMICSlaveMsg::master.
void ComputeMgr::recvFinishPatchesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1621 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::finishPatchesOnPe().
void ComputeMgr::recvFinishPatchOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1634 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, CudaComputeNonbonded::finishPatchOnPe(), and CudaComputeNonbondedMsg::i.
void ComputeMgr::recvFinishReductions | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1659 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::finishReductions().
void ComputeMgr::recvLaunchWork | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1681 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::launchWork().
void ComputeMgr::recvMessageEnqueueWork | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1670 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::messageEnqueueWork().
void ComputeMgr::recvMICPEData | ( | int | pe, |
int | data | ||
) |
Definition at line 1870 of file ComputeMgr.C.
void ComputeMgr::recvNonbondedCUDASlaveReady | ( | int | np, |
int | ac, | ||
int | seq | ||
) |
Definition at line 1530 of file ComputeMgr.C.
References Compute::patchReady().
void ComputeMgr::recvNonbondedCUDASlaveSkip | ( | NonbondedCUDASkipMsg * | msg | ) |
Definition at line 1547 of file ComputeMgr.C.
References NonbondedCUDASkipMsg::compute, and ComputeNonbondedCUDA::skip().
void ComputeMgr::recvNonbondedMICSlaveReady | ( | int | np, |
int | ac, | ||
int | seq | ||
) |
Definition at line 1830 of file ComputeMgr.C.
References Compute::patchReady().
void ComputeMgr::recvNonbondedMICSlaveSkip | ( | NonbondedMICSkipMsg * | msg | ) |
Definition at line 1847 of file ComputeMgr.C.
References NonbondedMICSkipMsg::compute, and ComputeNonbondedMIC::skip().
void ComputeMgr::recvOpenBoxesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1648 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::openBoxesOnPe().
void ComputeMgr::recvSkipPatchesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1607 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::skipPatchesOnPe().
void ComputeMgr::recvUnregisterBoxesOnPe | ( | CudaComputeNonbondedMsg * | msg | ) |
Definition at line 1694 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, and CudaComputeNonbonded::unregisterBoxesOnPe().
void ComputeMgr::recvYieldDevice | ( | int | pe | ) |
Definition at line 1439 of file ComputeMgr.C.
References ComputeNonbondedMIC::recvYieldDevice(), and ComputeNonbondedCUDA::recvYieldDevice().
void ComputeMgr::sendAssignPatchesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1586 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::assignPatches().
void ComputeMgr::sendBuildCudaExclusions | ( | ) |
void ComputeMgr::sendBuildCudaForceTable | ( | ) |
void ComputeMgr::sendBuildMICForceTable | ( | ) |
Definition at line 1486 of file ComputeMgr.C.
void ComputeMgr::sendComputeDPMEData | ( | ComputeDPMEDataMsg * | msg | ) |
void ComputeMgr::sendComputeDPMEResults | ( | ComputeDPMEResultsMsg * | msg, |
int | node | ||
) |
Definition at line 1390 of file ComputeMgr.C.
void ComputeMgr::sendComputeEwaldData | ( | ComputeEwaldMsg * | msg | ) |
Definition at line 1325 of file ComputeMgr.C.
References ComputeEwald::getMasterNode(), NAMD_die(), and PatchMap::Object().
Referenced by ComputeEwald::doWork().
void ComputeMgr::sendComputeEwaldResults | ( | ComputeEwaldMsg * | msg | ) |
Definition at line 1348 of file ComputeMgr.C.
References recvComputeEwaldResults().
Referenced by ComputeEwald::recvData().
void ComputeMgr::sendComputeGlobalConfig | ( | ComputeGlobalConfigMsg * | ) |
void ComputeMgr::sendComputeGlobalData | ( | ComputeGlobalDataMsg * | msg | ) |
void ComputeMgr::sendComputeGlobalResults | ( | ComputeGlobalResultsMsg * | msg | ) |
Definition at line 1287 of file ComputeMgr.C.
References computeGlobalResultsMsgMasterSeq, and ComputeGlobalResultsMsg::seq.
void ComputeMgr::sendCreateNonbondedCUDASlave | ( | int | pe, |
int | index | ||
) |
Definition at line 1511 of file ComputeMgr.C.
References NonbondedCUDASlaveMsg::index, and NonbondedCUDASlaveMsg::master.
Referenced by ComputeNonbondedCUDA::assignPatches().
void ComputeMgr::sendCreateNonbondedMICSlave | ( | int | pe, |
int | index | ||
) |
Definition at line 1811 of file ComputeMgr.C.
References NonbondedMICSlaveMsg::index, and NonbondedMICSlaveMsg::master.
void ComputeMgr::sendFinishPatchesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1612 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c, COMPUTE_PROXY_PRIORITY, PRIORITY_SIZE, Compute::sequence(), and SET_PRIORITY.
void ComputeMgr::sendFinishPatchOnPe | ( | int | pe, |
CudaComputeNonbonded * | c, | ||
int | i, | ||
PatchID | patchID | ||
) |
Definition at line 1626 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 1653 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::skipPatchesOnPe().
void ComputeMgr::sendLaunchWork | ( | int | pe, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1675 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::openBoxesOnPe().
void ComputeMgr::sendMessageEnqueueWork | ( | int | pe, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1664 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::noWork().
void ComputeMgr::sendMICPEData | ( | int | pe, |
int | data | ||
) |
Definition at line 1865 of file ComputeMgr.C.
void ComputeMgr::sendNonbondedCUDASlaveEnqueue | ( | ComputeNonbondedCUDA * | c, |
int | pe, | ||
int | seq, | ||
int | prio, | ||
int | ws | ||
) |
Definition at line 1554 of file ComputeMgr.C.
References Compute::cid, LocalWorkMsg::compute, ComputeNonbondedCUDA::localHostedPatches, Compute::localWorkMsg, ComputeNonbondedCUDA::localWorkMsg2, SET_PRIORITY, ResizeArray< T >::size(), and Compute::type().
Referenced by ComputeNonbondedCUDA::finishWork().
void ComputeMgr::sendNonbondedCUDASlaveEnqueuePatch | ( | ComputeNonbondedCUDA * | c, |
int | pe, | ||
int | seq, | ||
int | prio, | ||
int | data, | ||
FinishWorkMsg * | msg | ||
) |
Definition at line 1565 of file ComputeMgr.C.
References FinishWorkMsg::compute, FinishWorkMsg::data, and SET_PRIORITY.
Referenced by ComputeNonbondedCUDA::messageFinishPatch().
void ComputeMgr::sendNonbondedCUDASlaveReady | ( | int | pe, |
int | np, | ||
int | ac, | ||
int | seq | ||
) |
void ComputeMgr::sendNonbondedCUDASlaveSkip | ( | ComputeNonbondedCUDA * | c, |
int | pe | ||
) |
Definition at line 1541 of file ComputeMgr.C.
References NonbondedCUDASkipMsg::compute.
Referenced by ComputeNonbondedCUDA::noWork().
void ComputeMgr::sendNonbondedMICSlaveEnqueue | ( | ComputeNonbondedMIC * | c, |
int | pe, | ||
int | seq, | ||
int | prio, | ||
int | ws | ||
) |
Definition at line 1854 of file ComputeMgr.C.
References Compute::cid, LocalWorkMsg::compute, ComputeNonbondedMIC::localHostedPatches, Compute::localWorkMsg, ComputeNonbondedMIC::localWorkMsg2, SET_PRIORITY, ResizeArray< T >::size(), and Compute::type().
void ComputeMgr::sendNonbondedMICSlaveReady | ( | int | pe, |
int | np, | ||
int | ac, | ||
int | seq | ||
) |
Definition at line 1825 of file ComputeMgr.C.
void ComputeMgr::sendNonbondedMICSlaveSkip | ( | ComputeNonbondedMIC * | c, |
int | pe | ||
) |
Definition at line 1841 of file ComputeMgr.C.
References NonbondedMICSkipMsg::compute.
void ComputeMgr::sendOpenBoxesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1639 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 1599 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
void ComputeMgr::sendUnregisterBoxesOnPe | ( | std::vector< int > & | pes, |
CudaComputeNonbonded * | c | ||
) |
Definition at line 1686 of file ComputeMgr.C.
References CudaComputeNonbondedMsg::c.
Referenced by CudaComputeNonbonded::~CudaComputeNonbonded().
void ComputeMgr::sendYieldDevice | ( | int | pe | ) |
Definition at line 1434 of file ComputeMgr.C.
Referenced by cuda_check_local_calc(), and cuda_check_remote_calc().
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< T >::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< T >::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< T >::clear(), ComputeMap::newNode(), ProxyMgr::nodecount, ComputeMap::numComputes(), ComputeMap::Object(), ProxyMgr::removeUnusedProxies(), ComputeMap::setNewNode(), ComputeMap::setNewNumPartitions(), ComputeMap::setNode(), and ResizeArray< T >::size().
void ComputeMgr::updateLocalComputes4 | ( | CkQdMsg * | msg | ) |
Definition at line 298 of file ComputeMgr.C.
References SimParameters::computeMapFilename, Node::Object(), ComputeMap::Object(), ComputeMap::saveComputeMap(), Node::simParameters, simParams, and SimParameters::storeComputeMap.
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().
ComputeGlobal* ComputeMgr::computeGlobalObject |
Definition at line 97 of file ComputeMgr.h.
Referenced by ComputeMgr(), Sequencer::integrate(), Sequencer::minimize(), and recvComputeGlobalResults().
int ComputeMgr::computeGlobalResultsMsgMasterSeq |
Definition at line 100 of file ComputeMgr.h.
Referenced by ComputeMgr(), and sendComputeGlobalResults().
ResizeArray<ComputeGlobalResultsMsg*> ComputeMgr::computeGlobalResultsMsgs |
Definition at line 98 of file ComputeMgr.h.
Referenced by enableComputeGlobalResults(), and recvComputeGlobalResults().
int ComputeMgr::computeGlobalResultsMsgSeq |
Definition at line 99 of file ComputeMgr.h.
Referenced by ComputeMgr(), enableComputeGlobalResults(), and recvComputeGlobalResults().