TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
mpi.hpp
#include "./block_gf.hpp"
#include "../../utility/exceptions.hpp"
#include <mpi/mpi.hpp>
#include <cstddef>
#include <numeric>
#include <string>
#include <type_traits>

Detailed Description

Provides MPI routines for block Green's function objects.

Definition in file mpi.hpp.

Go to the source code of this file.

Functions

template<BlockGf BG>
void triqs::gfs::mpi_broadcast (BG &&bg, mpi::communicator c, int root)
 Implementation of an MPI broadcast for triqs::gfs::block_gf and triqs::gfs::block_gf_view types.
template<BlockGf BG>
auto triqs::gfs::mpi_reduce (BG const &bg, mpi::communicator c={}, int root=0, bool all=false, MPI_Op op=MPI_SUM)
 Implementation of an MPI reduce for triqs::gfs::block_gf and triqs::gfs::block_gf_view types.
template<BlockGf BG1, BlockGf BG2>
void triqs::gfs::mpi_reduce_into (BG1 const &bg_in, BG2 &&bg_out, mpi::communicator c, int root, bool all, MPI_Op op)
 Implementation of an MPI reduce for triqs::gfs::block_gf and triqs::gfs::block_gf_view types that reduces directly into an existing block GF object.