triqs::gfs::mpi_reduce

#include <triqs/gfs.hpp>

Synopsis

  1. template<typename V, typename T, int Arity>
    lazy<tag::reduce, block_gf_const_view<V, T, Arity>> mpi_reduce (block_gf<V, T, Arity> const & a,
    communicator c = {},
    int root = 0,
    bool all = false,
    MPI_Op op = MPI_SUM)
  2. template<typename V, typename T, int Arity, bool IsConst>
    lazy<tag::reduce, block_gf_const_view<V, T, Arity>> mpi_reduce (block_gf_view<V, T, Arity, IsConst> const & a,
    communicator c = {},
    int root = 0,
    bool all = false,
    MPI_Op op = MPI_SUM)

Documentation

1) Initiate (lazy) MPI Reduce

When the returned object is used at the RHS of operator = or in a constructor of a gf, the MPI Reduce operation is performed.

2) Initiate (lazy) MPI Reduce

When the returned object is used at the RHS of operator = or in a constructor of a gf, the MPI Reduce operation is performed.

Parameters

  • g The Green function

  • c The MPI communicator (default is world)

  • root The root of the broadcast communication in the MPI sense.

Returns

Returns a lazy object describing the object and the MPI operation to be performed.