TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
mpi.hpp
#include "./gf.hpp"
#include "../../utility/macros.hpp"
#include <mpi/mpi.hpp>
#include <nda/nda.hpp>
#include <type_traits>

Detailed Description

Provides MPI routines for Green's function objects.

Definition in file mpi.hpp.

Go to the source code of this file.

Functions

template<MemoryGf G>
void triqs::gfs::mpi_broadcast (G &&g, mpi::communicator c, int root)
 Implementation of an MPI broadcast for triqs::gfs::gf, triqs::gfs::gf_view or triqs::gfs::gf_const_view types.
template<MemoryGf G>
auto triqs::gfs::mpi_reduce (G const &g, mpi::communicator c={}, int root=0, bool all=false, MPI_Op op=MPI_SUM)
 Implementation of an MPI reduce for triqs::gfs::gf, triqs::gfs::gf_view or triqs::gfs::gf_const_view types.
template<MemoryGf G1, MemoryGf G2>
void triqs::gfs::mpi_reduce_into (G1 const &g_in, G2 &&g_out, mpi::communicator c, int root, bool all, MPI_Op op)
 Implementation of an MPI reduce for triqs::gfs::gf, triqs::gfs::gf_view or triqs::gfs::gf_const_view types that reduces directly into an existing GF object.