|
numerics
|
MPI distributed operations. More...
Go to the source code of this file.
Namespaces | |
| namespace | num |
| namespace | num::mpi |
Typedefs | |
| using | MPI_Comm = int |
Functions | |
| void | num::mpi::init (int *argc, char ***argv) |
| Initialize MPI (call once) | |
| void | num::mpi::finalize () |
| Finalize MPI. | |
| int | num::mpi::rank (MPI_Comm comm=MPI_COMM_WORLD) |
| Get communicator rank. | |
| int | num::mpi::size (MPI_Comm comm=MPI_COMM_WORLD) |
| Get communicator size. | |
| real | num::mpi::dot (const Vector &x, const Vector &y, MPI_Comm comm=MPI_COMM_WORLD) |
| Distributed dot product (each rank holds partial vector) | |
| real | num::mpi::norm (const Vector &x, MPI_Comm comm=MPI_COMM_WORLD) |
| Distributed norm. | |
| void | num::mpi::allreduce_sum (real *data, idx n, MPI_Comm comm=MPI_COMM_WORLD) |
| Allreduce sum. | |
| void | num::mpi::broadcast (real *data, idx n, int root=0, MPI_Comm comm=MPI_COMM_WORLD) |
| Broadcast from root. | |
Variables | |
| constexpr MPI_Comm | MPI_COMM_WORLD = 0 |
MPI distributed operations.
Definition in file mpi_ops.hpp.
| using MPI_Comm = int |
Definition at line 11 of file mpi_ops.hpp.
|
constexpr |
Definition at line 12 of file mpi_ops.hpp.