NAMD
|
#include <ComputeMap.h>
Classes | |
struct | ComputeData |
struct | PatchRec |
Public Types | |
enum | { numPidsAllocated =8 } |
Public Member Functions | |
void | checkMap () |
~ComputeMap (void) | |
void | registerCompute (ComputeID cid, Compute *c) |
int | numComputes (void) |
int | node (ComputeID cid) |
void | setNode (ComputeID cid, NodeID node) |
NodeID | newNode (ComputeID cid) |
void | setNewNode (ComputeID cid, NodeID node) |
int | numPids (ComputeID cid) |
int | pid (ComputeID cid, int i) |
int | trans (ComputeID cid, int i) |
ComputeType | type (ComputeID cid) |
int | partition (ComputeID cid) |
int | numPartitions (ComputeID cid) |
void | setNumPartitions (ComputeID cid, char numPartitions) |
char | newNumPartitions (ComputeID cid) |
void | setNewNumPartitions (ComputeID cid, char numPartitions) |
int | allocateCids () |
ComputeID | storeCompute (int node, int maxPids, ComputeType type, int partition=-1, int numPartitions=0) |
void | newPid (ComputeID cid, int pid, int trans=13) |
ComputeID | cloneCompute (ComputeID src, int partition) |
void | printComputeMap (void) |
void | saveComputeMap (const char *fname) |
void | loadComputeMap (const char *fname) |
Compute * | compute (ComputeID cid) |
Static Public Member Functions | |
static ComputeMap * | Instance () |
static ComputeMap * | Object () |
Protected Member Functions | |
void | pack (MOStream *msg) |
void | unpack (MIStream *msg) |
void | initPtrs () |
void | extendPtrs () |
ComputeMap (void) | |
Friends | |
class | ComputeMgr |
class | WorkDistrib |
Definition at line 85 of file ComputeMap.h.
anonymous enum |
Enumerator | |
---|---|
numPidsAllocated |
Definition at line 183 of file ComputeMap.h.
ComputeMap::~ComputeMap | ( | void | ) |
Definition at line 42 of file ComputeMap.C.
|
protected |
Definition at line 35 of file ComputeMap.C.
Referenced by Instance().
int ComputeMap::allocateCids | ( | ) |
Definition at line 143 of file ComputeMap.C.
Referenced by WorkDistrib::mapComputes().
Definition at line 48 of file ComputeMap.C.
References DebugM.
Referenced by ComputeMgr::updateLocalComputes5().
Definition at line 185 of file ComputeMap.C.
References partition().
Referenced by ComputeMgr::splitComputes().
Definition at line 171 of file ComputeMap.h.
Referenced by LdbCoordinator::initialize(), and ComputeMgr::updateLocalComputes().
|
protected |
Definition at line 89 of file ComputeMap.C.
References NAMD_bug().
Referenced by ComputeMgr::splitComputes().
|
protected |
Definition at line 82 of file ComputeMap.C.
Referenced by WorkDistrib::sendComputeMap().
|
static |
void ComputeMap::loadComputeMap | ( | const char * | fname | ) |
Definition at line 278 of file ComputeMap.C.
References node().
Referenced by WorkDistrib::mapComputes().
Definition at line 116 of file ComputeMap.h.
Referenced by WorkDistrib::recvComputeMapChanges(), ComputeMgr::splitComputes(), ComputeMgr::updateLocalComputes(), and ComputeMgr::updateLocalComputes3().
|
inline |
Definition at line 141 of file ComputeMap.h.
Referenced by WorkDistrib::recvComputeMapChanges(), ComputeMgr::splitComputes(), and ComputeMgr::updateLocalComputes().
|
inline |
Definition at line 106 of file ComputeMap.h.
Referenced by ProxyMgr::createProxies(), LdbCoordinator::initialize(), loadComputeMap(), Node::outputPatchComputeMaps(), printComputeMap(), saveComputeMap(), setNewNode(), setNode(), ComputeMgr::splitComputes(), and ComputeMgr::updateLocalComputes().
|
inline |
Definition at line 101 of file ComputeMap.h.
Referenced by ProxyMgr::createProxies(), dumpbench(), LdbCoordinator::initialize(), Node::outputPatchComputeMaps(), WorkDistrib::recvComputeMapChanges(), registerUserEventsForAllComputeObjs(), ComputeMgr::splitComputes(), Node::startup(), NamdCentLB::Strategy(), ComputeMgr::updateLocalComputes(), and ComputeMgr::updateLocalComputes3().
int ComputeMap::numPartitions | ( | ComputeID | cid | ) |
Definition at line 135 of file ComputeMap.C.
References computeErrorType.
Referenced by setNewNumPartitions(), setNumPartitions(), ComputeMgr::splitComputes(), storeCompute(), and NamdCentLB::Strategy().
int ComputeMap::numPids | ( | ComputeID | cid | ) |
Definition at line 103 of file ComputeMap.C.
Referenced by ProxyMgr::createProxies(), LdbCoordinator::initialize(), printComputeMap(), and ComputeMgr::updateLocalComputes().
|
inlinestatic |
Definition at line 89 of file ComputeMap.h.
Referenced by Compute::Compute(), ProxyMgr::createProxies(), dumpbench(), WorkDistrib::mapComputes(), Node::outputPatchComputeMaps(), WorkDistrib::recvComputeMapChanges(), registerUserEventsForAllComputeObjs(), LdbCoordinator::resume(), WorkDistrib::sendComputeMap(), NamdHybridLB::splitComputes(), ComputeMgr::splitComputes(), Node::startup(), NamdCentLB::Strategy(), ComputeMgr::updateLocalComputes(), ComputeMgr::updateLocalComputes3(), ComputeMgr::updateLocalComputes4(), ComputeMgr::updateLocalComputes5(), and NamdHybridLB::UpdateLocalLBInfo().
Definition at line 63 of file ComputeMap.C.
References DebugM, and MOStream::put().
Referenced by WorkDistrib::sendComputeMap().
int ComputeMap::partition | ( | ComputeID | cid | ) |
Definition at line 128 of file ComputeMap.C.
References computeErrorType.
Referenced by cloneCompute(), dumpbench(), and storeCompute().
int ComputeMap::pid | ( | ComputeID | cid, |
int | i | ||
) |
Definition at line 109 of file ComputeMap.C.
Referenced by ProxyMgr::createProxies(), dumpbench(), LdbCoordinator::initialize(), newPid(), Node::outputPatchComputeMaps(), printComputeMap(), registerUserEventsForAllComputeObjs(), and ComputeMgr::updateLocalComputes().
Definition at line 95 of file ComputeMap.h.
Referenced by ComputeMgr::updateLocalComputes().
void ComputeMap::saveComputeMap | ( | const char * | fname | ) |
Definition at line 262 of file ComputeMap.C.
References node().
Referenced by WorkDistrib::mapComputes(), and ComputeMgr::updateLocalComputes4().
Definition at line 120 of file ComputeMap.h.
References node().
Referenced by WorkDistrib::recvComputeMapChanges(), ComputeMgr::splitComputes(), NamdCentLB::Strategy(), ComputeMgr::updateLocalComputes3(), and NamdHybridLB::UpdateLocalLBInfo().
Definition at line 144 of file ComputeMap.h.
References numPartitions().
Referenced by WorkDistrib::recvComputeMapChanges(), NamdHybridLB::splitComputes(), ComputeMgr::splitComputes(), NamdCentLB::Strategy(), and ComputeMgr::updateLocalComputes3().
Definition at line 110 of file ComputeMap.h.
References node().
Referenced by ComputeMgr::updateLocalComputes3().
Definition at line 138 of file ComputeMap.h.
References numPartitions().
Referenced by ComputeMgr::splitComputes().
ComputeID ComputeMap::storeCompute | ( | int | node, |
int | maxPids, | ||
ComputeType | type, | ||
int | partition = -1 , |
||
int | numPartitions = 0 |
||
) |
Definition at line 153 of file ComputeMap.C.
References NAMD_bug(), numPartitions(), numPidsAllocated, partition(), and type().
int ComputeMap::trans | ( | ComputeID | cid, |
int | i | ||
) |
Definition at line 114 of file ComputeMap.C.
Referenced by dumpbench(), newPid(), and registerUserEventsForAllComputeObjs().
ComputeType ComputeMap::type | ( | ComputeID | cid | ) |
Definition at line 120 of file ComputeMap.C.
References computeErrorType.
Referenced by Compute::Compute(), ComputeMgr::createComputes(), ProxyMgr::createProxies(), dumpbench(), LdbCoordinator::initialize(), Node::outputPatchComputeMaps(), printComputeMap(), registerUserEventsForAllComputeObjs(), and storeCompute().
Definition at line 70 of file ComputeMap.C.
References DebugM, MIStream::get(), and NAMD_bug().
Referenced by WorkDistrib::sendComputeMap().
|
friend |
Definition at line 171 of file ComputeMap.h.
|
friend |
Definition at line 208 of file ComputeMap.h.