NAMD
|
#include <SynchronousCollectives.h>
Public Member Functions | |
SynchronousCollectives () | |
~SynchronousCollectives () | |
void | initAllScope () |
void | initMasterScope (const int isMasterPe, const int isMasterDevice, const int numDevices, const int deviceIndex, const std::vector< int > &masterPeList) |
template<typename T > | |
std::vector< T > | allReduce (std::vector< T > &data, CkReduction::reducerType type, const SynchronousCollectiveScope scope) |
template<typename T > | |
std::vector< T > | allGather (const T &data, const SynchronousCollectiveScope scope) |
template<typename T > | |
std::vector< T > | alltoallv (const std::vector< T > &data, const SynchronousCollectiveScope scope) |
template<typename T > | |
T | broadcast (const T &data, const bool isRoot, const SynchronousCollectiveScope scope) |
void | waitAndAwaken () |
void | barrier (const SynchronousCollectiveScope scope) |
void | forceBarrierAll () |
void | setupMulticastSection (SynchronousCollectivesMulticastMsg *msg) |
void | handleReductionAll (CkReductionMsg *msg) |
void | handleReductionMaster (CkReductionMsg *msg) |
void | broadcastReductionResult (int n, char *data) |
template<typename T > | |
void | recvIndexData (const int index, const T &data, const SynchronousCollectiveScope scope, const unsigned int key) |
template<typename T > | |
void | recvBroadcast (const T &data, const unsigned int key) |
void | wait () |
void | recvBarrierAll (const int PE) |
void | recvBarrierMasterPe (const int deviceIndex) |
Static Public Member Functions | |
static SynchronousCollectives * | Object () |
static SynchronousCollectives * | ObjectOnPe (const int pe) |
Definition at line 60 of file SynchronousCollectives.h.
SynchronousCollectives::SynchronousCollectives | ( | void | ) |
SynchronousCollectives::~SynchronousCollectives | ( | void | ) |
Definition at line 35 of file SynchronousCollectives.C.
std::vector< T > SynchronousCollectives::allGather | ( | const T & | data, |
const SynchronousCollectiveScope | scope | ||
) |
Definition at line 260 of file SynchronousCollectives.C.
References all, NAMD_bug(), NAMD_EVENT_START, NAMD_EVENT_STOP, and single.
Referenced by GlobalGPUMgr::initialize().
std::vector< T > SynchronousCollectives::allReduce | ( | std::vector< T > & | data, |
CkReduction::reducerType | type, | ||
const SynchronousCollectiveScope | scope | ||
) |
Definition at line 187 of file SynchronousCollectives.C.
References all, handleReductionAll(), handleReductionMaster(), NAMD_bug(), NAMD_EVENT_START, NAMD_EVENT_STOP, and single.
std::vector< T > SynchronousCollectives::alltoallv | ( | const std::vector< T > & | data, |
const SynchronousCollectiveScope | scope | ||
) |
Definition at line 296 of file SynchronousCollectives.C.
References all, NAMD_bug(), NAMD_EVENT_START, NAMD_EVENT_STOP, and single.
void SynchronousCollectives::barrier | ( | const SynchronousCollectiveScope | scope | ) |
Definition at line 145 of file SynchronousCollectives.C.
References all, forceBarrierAll(), master, NAMD_bug(), NAMD_EVENT_START, NAMD_EVENT_STOP, and single.
T SynchronousCollectives::broadcast | ( | const T & | data, |
const bool | isRoot, | ||
const SynchronousCollectiveScope | scope | ||
) |
Definition at line 332 of file SynchronousCollectives.C.
References all, NAMD_bug(), NAMD_EVENT_START, NAMD_EVENT_STOP, and single.
void SynchronousCollectives::broadcastReductionResult | ( | int | n, |
char * | data | ||
) |
void SynchronousCollectives::forceBarrierAll | ( | ) |
Definition at line 140 of file SynchronousCollectives.C.
References all.
Referenced by barrier(), GlobalGPUMgr::initialize(), initializeGPUResident(), and initMasterScope().
void SynchronousCollectives::handleReductionAll | ( | CkReductionMsg * | msg | ) |
Definition at line 171 of file SynchronousCollectives.C.
Referenced by allReduce().
void SynchronousCollectives::handleReductionMaster | ( | CkReductionMsg * | msg | ) |
Definition at line 176 of file SynchronousCollectives.C.
Referenced by allReduce().
void SynchronousCollectives::initAllScope | ( | ) |
Definition at line 37 of file SynchronousCollectives.C.
Referenced by Node::startup().
void SynchronousCollectives::initMasterScope | ( | const int | isMasterPe, |
const int | isMasterDevice, | ||
const int | numDevices, | ||
const int | deviceIndex, | ||
const std::vector< int > & | masterPeList | ||
) |
Definition at line 43 of file SynchronousCollectives.C.
References forceBarrierAll(), masterPeList, and single.
Referenced by initializeGPUResident().
|
inlinestatic |
Definition at line 63 of file SynchronousCollectives.h.
Referenced by GlobalGPUMgr::initialize(), initializeGPUResident(), Sequencer::Sequencer(), and Node::startup().
|
inlinestatic |
Definition at line 66 of file SynchronousCollectives.h.
void SynchronousCollectives::recvBarrierAll | ( | const int | PE | ) |
Definition at line 132 of file SynchronousCollectives.C.
References all.
void SynchronousCollectives::recvBarrierMasterPe | ( | const int | deviceIndex | ) |
void SynchronousCollectives::recvBroadcast | ( | const T & | data, |
const unsigned int | key | ||
) |
void SynchronousCollectives::recvIndexData | ( | const int | index, |
const T & | data, | ||
const SynchronousCollectiveScope | scope, | ||
const unsigned int | key | ||
) |
void SynchronousCollectives::setupMulticastSection | ( | SynchronousCollectivesMulticastMsg * | msg | ) |
void SynchronousCollectives::wait | ( | ) |
void SynchronousCollectives::waitAndAwaken | ( | ) |