|
numerics
|
Functions | |
| void | init (int *argc, char ***argv) |
| Initialize MPI (call once) | |
| void | finalize () |
| Finalize MPI. | |
| int | rank (MPI_Comm comm=MPI_COMM_WORLD) |
| Get communicator rank. | |
| int | size (MPI_Comm comm=MPI_COMM_WORLD) |
| Get communicator size. | |
| real | dot (const Vector &x, const Vector &y, MPI_Comm comm=MPI_COMM_WORLD) |
| Distributed dot product (each rank holds partial vector) | |
| real | norm (const Vector &x, MPI_Comm comm=MPI_COMM_WORLD) |
| Distributed norm. | |
| void | allreduce_sum (real *data, idx n, MPI_Comm comm=MPI_COMM_WORLD) |
| Allreduce sum. | |
| void | broadcast (real *data, idx n, int root=0, MPI_Comm comm=MPI_COMM_WORLD) |
| Broadcast from root. | |
| void num::mpi::allreduce_sum | ( | real * | data, |
| idx | n, | ||
| MPI_Comm | comm = MPI_COMM_WORLD |
||
| ) |
Distributed dot product (each rank holds partial vector)
Definition at line 17 of file mpi_ops.cpp.
References num::dot(), and num::ipow().
| void num::mpi::finalize | ( | ) |
| real num::mpi::norm | ( | const Vector & | x, |
| MPI_Comm | comm = MPI_COMM_WORLD |
||
| ) |
Distributed norm.
Definition at line 23 of file mpi_ops.cpp.
References num::dot(), and num::ipow().
| int num::mpi::rank | ( | MPI_Comm | comm = MPI_COMM_WORLD | ) |
| int num::mpi::size | ( | MPI_Comm | comm = MPI_COMM_WORLD | ) |