Functions to wrap MPI_Bcast, MPI_Allreduce, MPI_Iallreduce etc. More...


Go to the source code of this file.
Namespaces | |
| namespace | Foam |
| Namespace for OpenFOAM. | |
| namespace | Foam::PstreamDetail |
| Implementation details for UPstream/Pstream/MPI etc. | |
Functions | |
| template<class Type> | |
| bool | broadcast (Type *values, int count, MPI_Datatype datatype, const int communicator, const int root=0) |
| template<class Type> | |
| void | reduce (const Type *sendData, Type *values, int count, MPI_Datatype datatype, MPI_Op optype, const int communicator, UPstream::Request *req=nullptr) |
| template<class Type> | |
| void | allReduce (Type *values, int count, MPI_Datatype datatype, MPI_Op optype, const int communicator, UPstream::Request *req=nullptr) |
| template<class Type> | |
| void | scanReduce (const Type *sendData, Type *recvData, int count, MPI_Datatype datatype, MPI_Op optype, const int communicator, const int exclusive) |
| template<class Type> | |
| void | allToAll (const UList< Type > &sendData, UList< Type > &recvData, MPI_Datatype datatype, const int communicator, UPstream::Request *req=nullptr) |
| template<class Type> | |
| void | allToAllv (const Type *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, Type *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, MPI_Datatype datatype, const int communicator, UPstream::Request *req=nullptr) |
| template<class Type> | |
| void | allToAllConsensus (const UList< Type > &sendData, UList< Type > &recvData, MPI_Datatype datatype, const int tag, const int communicator) |
| template<class Type> | |
| void | allToAllConsensus (const Map< Type > &sendData, Map< Type > &recvData, MPI_Datatype datatype, const int tag, const int communicator) |
| template<class Type> | |
| void | gather (const Type *sendData, Type *recvData, int count, MPI_Datatype datatype, const int communicator, UPstream::Request *req=nullptr) |
| template<class Type> | |
| void | scatter (const Type *sendData, Type *recvData, int count, MPI_Datatype datatype, const int communicator, UPstream::Request *req=nullptr) |
| template<class Type> | |
| void | gatherv (const Type *sendData, int sendCount, Type *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, MPI_Datatype datatype, const int communicator, UPstream::Request *req=nullptr) |
| template<class Type> | |
| void | scatterv (const Type *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, Type *recvData, int recvCount, MPI_Datatype datatype, const int communicator, UPstream::Request *req=nullptr) |
| template<class Type> | |
| void | allGather (Type *allData, int count, MPI_Datatype datatype, const int communicator, UPstream::Request *req=nullptr) |
Functions to wrap MPI_Bcast, MPI_Allreduce, MPI_Iallreduce etc.
Original source file UPstreamWrapping.H
InNamespace Foam::PstreamDetail
Definition in file UPstreamWrapping.H.