|
mptensor v0.5.1
Parallel Library for Tensor Network Methods
|
Helper functions for MPI. More...
#include <mpi.h>Go to the source code of this file.
Namespaces | |
| namespace | mptensor |
| namespace | mptensor::mpi |
Typedefs | |
| using | mptensor::mpi::comm_type = MPI_Comm |
Functions | |
| void | mptensor::mpi::initialize (int argc, char **argv) |
| True if the calling process is the root (rank 0), false otherwise. | |
| void | mptensor::mpi::finalize () |
| Finalize MPI environment. | |
| void | mptensor::mpi::barrier (const comm_type &comm) |
| Barrier synchronization among processes in the communicator. | |
| void | mptensor::mpi::get_info (const comm_type &comm, int &rank, int &size, bool &is_root) |
| Get MPI information: rank, size, and whether the process is the root. | |
Variables | |
| int | mptensor::mpi::rank = -1 |
| Type for MPI communicator. | |
| int | mptensor::mpi::size = -1 |
| Rank of the calling process in the communicator. | |
| bool | mptensor::mpi::is_root = false |
| Number of processes in the communicator. | |
Helper functions for MPI.
This header file supports build without the MPI environment.