Nektar++
|
#include <FieldConvertComm.hpp>
Public Member Functions | |
FieldConvertComm (int argc, char *argv[], int size, int rank) | |
FieldConvertComm (int size, int rank) | |
virtual | ~FieldConvertComm () |
void | v_SplitComm (int pRows, int pColumns) |
![]() | |
CommSerial (int argc, char *argv[]) | |
virtual | ~CommSerial () override |
![]() | |
Comm (int narg, char *arg[]) | |
virtual | ~Comm () |
void | Finalise () |
int | GetSize () const |
Returns number of processes. More... | |
int | GetRank () |
const std::string & | GetType () const |
void | Block () |
Block execution until all processes reach this point. More... | |
NekDouble | Wtime () |
Return the time in seconds. More... | |
template<class T > | |
void | Send (int pProc, T &pData) |
template<class T > | |
void | Recv (int pProc, T &pData) |
template<class T > | |
void | SendRecv (int pSendProc, T &pSendData, int pRecvProc, T &pRecvData) |
template<class T > | |
void | SendRecvReplace (int pSendProc, int pRecvProc, T &pData) |
template<class T > | |
void | AllReduce (T &pData, enum ReduceOperator pOp) |
template<class T > | |
void | AlltoAll (T &pSendData, T &pRecvData) |
template<class T1 , class T2 > | |
void | AlltoAllv (T1 &pSendData, T2 &pSendDataSizeMap, T2 &pSendDataOffsetMap, T1 &pRecvData, T2 &pRecvDataSizeMap, T2 &pRecvDataOffsetMap) |
template<class T > | |
void | AllGather (T &pSendData, T &pRecvData) |
template<class T > | |
void | AllGatherv (T &pSendData, T &pRecvData, Array< OneD, int > &pRecvDataSizeMap, Array< OneD, int > &pRecvDataOffsetMap) |
template<class T > | |
void | AllGatherv (T &pRecvData, Array< OneD, int > &pRecvDataSizeMap, Array< OneD, int > &pRecvDataOffsetMap) |
template<class T > | |
void | Bcast (T &pData, int pRoot) |
template<class T > | |
void | Exscan (T &pData, enum ReduceOperator pOp, T &ans) |
template<class T > | |
T | Gather (int rootProc, T &val) |
template<class T > | |
T | Scatter (int rootProc, T &pData) |
template<class T > | |
void | DistGraphCreateAdjacent (T &sources, T &sourceweights, int reorder) |
template<class T1 , class T2 > | |
void | NeighborAlltoAllv (T1 &pSendData, T2 &pSendDataSizeMap, T2 &pSendDataOffsetMap, T1 &pRecvData, T2 &pRecvDataSizeMap, T2 &pRecvDataOffsetMap) |
template<class T > | |
void | Irsend (int pProc, T &pData, int count, const CommRequestSharedPtr &request, int loc) |
template<class T > | |
void | SendInit (int pProc, T &pData, int count, const CommRequestSharedPtr &request, int loc) |
template<class T > | |
void | Irecv (int pProc, T &pData, int count, const CommRequestSharedPtr &request, int loc) |
template<class T > | |
void | RecvInit (int pProc, T &pData, int count, const CommRequestSharedPtr &request, int loc) |
void | StartAll (const CommRequestSharedPtr &request) |
void | WaitAll (const CommRequestSharedPtr &request) |
CommRequestSharedPtr | CreateRequest (int num) |
CommSharedPtr | CommCreateIf (int flag) |
If the flag is non-zero create a new communicator. More... | |
void | SplitComm (int pRows, int pColumns) |
Splits this communicator into a grid of size pRows*pColumns and creates row and column communicators. By default the communicator is a single row. More... | |
CommSharedPtr | GetRowComm () |
Retrieve the row communicator to which this process belongs. More... | |
CommSharedPtr | GetColumnComm () |
Retrieve the column communicator to which this process belongs. More... | |
bool | TreatAsRankZero () |
bool | IsSerial () |
std::tuple< int, int, int > | GetVersion () |
bool | RemoveExistingFiles () |
std::pair< CommSharedPtr, CommSharedPtr > | SplitCommNode () |
Protected Member Functions | |
int | v_GetRank (void) |
bool | v_TreatAsRankZero (void) |
bool | v_IsSerial (void) |
bool | v_RemoveExistingFiles (void) |
![]() | |
virtual void | v_Finalise () final |
virtual std::tuple< int, int, int > | v_GetVersion () final |
virtual void | v_Block () final |
virtual NekDouble | v_Wtime () final |
virtual void | v_Send (void *buf, int count, CommDataType dt, int dest) final |
virtual void | v_Recv (void *buf, int count, CommDataType dt, int source) final |
virtual void | v_SendRecv (void *sendbuf, int sendcount, CommDataType sendtype, int dest, void *recvbuf, int recvcount, CommDataType recvtype, int source) final |
virtual void | v_SendRecvReplace (void *buf, int count, CommDataType dt, int pSendProc, int pRecvProc) final |
virtual void | v_AllReduce (void *buf, int count, CommDataType dt, enum ReduceOperator pOp) final |
virtual void | v_AlltoAll (void *sendbuf, int sendcount, CommDataType sendtype, void *recvbuf, int recvcount, CommDataType recvtype) final |
virtual void | v_AlltoAllv (void *sendbuf, int sendcounts[], int sensdispls[], CommDataType sendtype, void *recvbuf, int recvcounts[], int rdispls[], CommDataType recvtype) final |
virtual void | v_AllGather (void *sendbuf, int sendcount, CommDataType sendtype, void *recvbuf, int recvcount, CommDataType recvtype) final |
virtual void | v_AllGatherv (void *sendbuf, int sendcount, CommDataType sendtype, void *recvbuf, int recvcounts[], int rdispls[], CommDataType recvtype) final |
virtual void | v_AllGatherv (void *recvbuf, int recvcounts[], int rdispls[], CommDataType recvtype) final |
virtual void | v_Bcast (void *buffer, int count, CommDataType dt, int root) final |
virtual void | v_Exscan (Array< OneD, unsigned long long > &pData, const enum ReduceOperator pOp, Array< OneD, unsigned long long > &ans) final |
virtual void | v_Gather (void *sendbuf, int sendcount, CommDataType sendtype, void *recvbuf, int recvcount, CommDataType recvtype, int root) final |
virtual void | v_Scatter (void *sendbuf, int sendcount, CommDataType sendtype, void *recvbuf, int recvcount, CommDataType recvtype, int root) final |
virtual void | v_DistGraphCreateAdjacent (int indegree, const int sources[], const int sourceweights[], int reorder) final |
virtual void | v_NeighborAlltoAllv (void *sendbuf, int sendcounts[], int sdispls[], CommDataType sendtype, void *recvbuf, int recvcounts[], int rdispls[], CommDataType recvtype) final |
virtual void | v_Irsend (void *buf, int count, CommDataType dt, int dest, CommRequestSharedPtr request, int loc) final |
virtual void | v_SendInit (void *buf, int count, CommDataType dt, int dest, CommRequestSharedPtr request, int loc) final |
virtual void | v_Irecv (void *buf, int count, CommDataType dt, int source, CommRequestSharedPtr request, int loc) final |
virtual void | v_RecvInit (void *buf, int count, CommDataType dt, int source, CommRequestSharedPtr request, int loc) final |
virtual void | v_StartAll (CommRequestSharedPtr request) final |
virtual void | v_WaitAll (CommRequestSharedPtr request) final |
virtual CommRequestSharedPtr | v_CreateRequest (int num) final |
virtual CommSharedPtr | v_CommCreateIf (int flag) final |
![]() | |
Comm () | |
virtual std::pair< CommSharedPtr, CommSharedPtr > | v_SplitCommNode () |
Private Attributes | |
int | m_rank |
Additional Inherited Members | |
![]() | |
static CommSharedPtr | create (int narg, char *arg[]) |
Creates an instance of this class. More... | |
![]() | |
static std::string | className |
Name of class. More... | |
![]() | |
int | m_size |
Number of processes. More... | |
std::string | m_type |
Type of communication. More... | |
CommSharedPtr | m_commRow |
Row communicator. More... | |
CommSharedPtr | m_commColumn |
Column communicator. More... | |
Definition at line 45 of file FieldConvertComm.hpp.
|
inline |
Definition at line 48 of file FieldConvertComm.hpp.
References m_rank, Nektar::LibUtilities::Comm::m_size, and Nektar::LibUtilities::Comm::m_type.
Referenced by v_SplitComm().
|
inline |
Definition at line 55 of file FieldConvertComm.hpp.
References m_rank, Nektar::LibUtilities::Comm::m_size, and Nektar::LibUtilities::Comm::m_type.
|
inlinevirtual |
Definition at line 61 of file FieldConvertComm.hpp.
|
inlineprotectedvirtual |
Reimplemented from Nektar::LibUtilities::CommSerial.
Definition at line 74 of file FieldConvertComm.hpp.
References m_rank.
|
inlineprotectedvirtual |
Reimplemented from Nektar::LibUtilities::CommSerial.
Definition at line 84 of file FieldConvertComm.hpp.
|
inlineprotectedvirtual |
Reimplemented from Nektar::LibUtilities::Comm.
Definition at line 89 of file FieldConvertComm.hpp.
|
inlinevirtual |
Reimplemented from Nektar::LibUtilities::CommSerial.
Definition at line 64 of file FieldConvertComm.hpp.
References FieldConvertComm(), Nektar::LibUtilities::Comm::m_commColumn, Nektar::LibUtilities::Comm::m_commRow, and m_rank.
|
inlineprotectedvirtual |
Reimplemented from Nektar::LibUtilities::CommSerial.
Definition at line 79 of file FieldConvertComm.hpp.
|
private |
Definition at line 95 of file FieldConvertComm.hpp.
Referenced by FieldConvertComm(), v_GetRank(), and v_SplitComm().