TRIQS/mpi 1.3.0
C++ interface to MPI
Loading...
Searching...
No Matches
operators.hpp File Reference
#include "./utils.hpp"
#include <mpi.h>

Detailed Description

Provides utilities to map custom binary functions to MPI operators.

Definition in file operators.hpp.

Go to the source code of this file.

Functions

template<typename T >
MPI_Op mpi::map_add ()
 Create a new MPI_Op for a generic addition by calling MPI_Op_create.
 
template<typename T , T(*)(T const &, T const &) F>
MPI_Op mpi::map_C_function ()
 Create a new MPI_Op from a given binary function by calling MPI_Op_create.