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