|
| comm (MPI_Comm comm=MPI_COMM_WORLD) |
| Create a new comm object and uses 'MPI_COMM_WORLD' as the communicator. More...
|
|
void | set (MPI_Comm comm) |
| Change communicator to an existing one. More...
|
|
comm | create (MPI_Group group) |
| Create new communicator based on color/key. More...
|
|
comm | split (int color, int key) |
| Create new communicator based on color/key. More...
|
|
void | free () |
| Destroy communicator.
|
|
void | finalize () |
| Shut down MPI.
|
|
void | printf (int rank, const char *fmt,...) const |
| Helper wrapper around the C standard I/O 'printf()' function. Conceptually similar to guarding a normal 'printf()' function with a check for 'rank==rank()'. More...
|
|
void | info () const |
| Print some brief information about the MPI communicator. The printing is done by rank 0.
|
|
bool | rank0 () const |
| Check if the executing process is rank 0.
|
|
std::vector< int > | jid (const int n) const |
|
void | barrier () const |
| Execute a barrier.
|
|
|
template<typename T > |
void | send (int n, const T *data, int dest, int tag=0) const |
| Point-to-point send. Should be matched by a corresponding 'recv' call. More...
|
|
template<typename T > |
void | isend (int n, const T *data, int dest, int tag=0) const |
|
|
template<typename T > |
void | recv (int n, T *data, int source, int tag=0) const |
| Point-to-point receive. Should be matched by a corresponding 'send' call. More...
|
|
template<typename T > |
void | irecv (int n, T *data, int source, int tag=0) const |
|
|
template<typename T > |
void | allreduce (int n, T *data, MPI_Op op=MPI_SUM) const |
| Sum reduce operation across all processes in the MPI communicator. More...
|
|
|
template<typename T > |
void | reduce (int n, T *data, MPI_Op op=MPI_SUM, int root=0) const |
| Sum reduce operation across all processes in the MPI communicator. More...
|
|
|
template<typename T > |
void | bcast (int n, T *data, int root) const |
| Broadcast. More...
|
|
|
MPI_Comm | get_comm () const |
|
int | rank () const |
| Calling process rank (0-based index) in the MPI communicator.
|
|
int | size () const |
| Total number of ranks in the MPI communicator. The same across all ranks.
|
|
int | localrank () const |
| Calling process rank (0-based index) in within the node.
|
|
int | localsize () const |
| Total number of ranks within the node. Can vary across nodes.
|
|
MPI communicator data and helpers.