|
TRIQS/mpi 2.0.0
C++ interface to MPI
|
Simplify the initialization/finalization of an MPI environment and the usage of MPI_Comm and MPI_Group objects by wrapping them in C++ classes.
This group provides the building blocks needed by virtually every MPI program:
A typical Hello world! program using mpi::environment and mpi::communicator can be found in Example 1: Hello world!.
Classes | |
| class | mpi::communicator |
| C++ wrapper around MPI_Comm providing various convenience functions. More... | |
| struct | mpi::environment |
| RAII class to initialize and finalize MPI. More... | |
| class | mpi::group |
| C++ wrapper around MPI_Group providing various convenience functions. More... | |
Functions | |
| bool | mpi::is_finalized () noexcept |
| Check if MPI has been finalized by calling MPI_Finalized. | |
| bool | mpi::is_initialized () noexcept |
| Check if MPI has been initialized by calling MPI_Initialized. | |
Variables | |
| static const bool | mpi::has_env |
| Boolean variable that checks if there is an active MPI runtime environment. | |
|
inlinenodiscardnoexcept |
#include <mpi/environment.hpp>
Check if MPI has been finalized by calling MPI_Finalized.
Definition at line 51 of file environment.hpp.
|
inlinenodiscardnoexcept |
#include <mpi/environment.hpp>
Check if MPI has been initialized by calling MPI_Initialized.
Definition at line 41 of file environment.hpp.
|
static |
#include <mpi/environment.hpp>
Boolean variable that checks if there is an active MPI runtime environment.
It is true if one of the environment variables OMPI_COMM_WORLD_RANK, PMI_RANK, CRAY_MPICH_VERSION, PMIX_RANK or FORCE_MPI_INIT is set, false otherwise.
Definition at line 65 of file environment.hpp.