TRIQS/mpi 1.3.0
C++ interface to MPI
|
#include "./communicator.hpp"
#include "./generic_communication.hpp"
#include "./ranges.hpp"
#include "./utils.hpp"
#include <mpi.h>
#include <vector>
Provides an MPI broadcast, reduce, scatter and gather for std::vector.
Definition in file vector.hpp.
Go to the source code of this file.
Functions | |
template<typename T > | |
void | mpi::mpi_broadcast (std::vector< T > &v, communicator c={}, int root=0) |
Implementation of an MPI broadcast for a std::vector. | |
template<typename T > | |
auto | mpi::mpi_gather (std::vector< T > const &v, communicator c={}, int root=0, bool all=false) |
Implementation of an MPI gather for a std::vector. | |
template<typename T > | |
auto | mpi::mpi_reduce (std::vector< T > const &v, communicator c={}, int root=0, bool all=false, MPI_Op op=MPI_SUM) |
Implementation of an MPI reduce for a std::vector. | |
template<typename T > | |
void | mpi::mpi_reduce_in_place (std::vector< T > &v, communicator c={}, int root=0, bool all=false, MPI_Op op=MPI_SUM) |
Implementation of an in-place MPI reduce for a std::vector. | |
template<typename T > | |
auto | mpi::mpi_scatter (std::vector< T > const &v, communicator c={}, int root=0) |
Implementation of an MPI scatter for a std::vector. | |