Class TempLat::MPICommReference
ClassList > TempLat > MPICommReference
A class which holds an MPIComm. The Comm WILL DESTRUCT when the last owner of a reference to this class destructs its instance. Unless it is MPI_COMM_WORLD, of course. More...
#include <mpicommreference.h>
Inherits the following classes: TempLat::MPIAllReduce
Public Functions
| Type | Name |
|---|---|
| MPICommReference (MPI_Comm comm=MPI_COMM_WORLD) |
|
| MPICommReference (const MPICommReference & other) Copy constructor: must implement this for the bookkeeping. |
|
| int | getRank () const |
| operator MPI_Comm () const |
|
| MPICommReference & | operator= (const MPICommReference & other) Copy assignment: must implement this for the bookkeeping. |
| int | rank () const |
| int | size () const |
| ~MPICommReference () |
Public Functions inherited from TempLat::MPIAllReduce
| Type | Name |
|---|---|
| const T & | Allreduce (const T & whatever, MPI_Op operation, ptrdiff_t size=1, int * error=nullptr) Dummy's for the MPI-less compilation. |
| T & | Allreduce (T * whatever, MPI_Op operation, int * error=nullptr) Dummy's for the MPI-less compilation. |
| MPIAllReduce (MPI_Comm comm) |
|
| int | combineAllError (int error) |
| T | computeAllAnd (const T & value, size_t size=1, int * error=nullptr) |
| T | computeAllMax (const T & value, size_t size=1, int * error=nullptr) |
| T | computeAllMin (const T & value, size_t size=1, int * error=nullptr) |
| T | computeAllOr (const T & value, size_t size=1, int * error=nullptr) |
| T | computeAllSum (const T & value, size_t size=1, int * error=nullptr) |
Public Static Functions
| Type | Name |
|---|---|
| int | worldRank () |
Detailed Description
Unit test: ctest -R test-mpicommreference
Public Functions Documentation
function MPICommReference [1/2]
function MPICommReference [2/2]
Copy constructor: must implement this for the bookkeeping.
function getRank
function operator MPI_Comm
function operator=
Copy assignment: must implement this for the bookkeeping.
function rank
function size
function ~MPICommReference
Public Static Functions Documentation
function worldRank
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/parallel/mpi/comm/mpicommreference.h