OGS
MPI.h File Reference

Detailed Description

Definition in file MPI.h.

#include <algorithm>
#include "Algorithm.h"
#include "Error.h"
#include <mpi.h>
Include dependency graph for MPI.h:

Go to the source code of this file.

Classes

struct  BaseLib::MPI::Setup
 
struct  BaseLib::MPI::Mpi
 

Namespaces

namespace  BaseLib
 
namespace  BaseLib::MPI
 

Functions

template<typename T >
constexpr MPI_Datatype BaseLib::MPI::mpiType ()
 
template<typename T >
static std::vector< T > BaseLib::MPI::allgather (T const &value, Mpi const &mpi)
 
template<typename T >
static std::vector< T > BaseLib::MPI::allgather (std::vector< T > const &vector, Mpi const &mpi)
 
template<typename T >
static T BaseLib::MPI::allreduce (T const &value, MPI_Op const &mpi_op, Mpi const &mpi)
 
template<typename T >
static std::vector< T > BaseLib::MPI::allreduce (std::vector< T > const &vector, MPI_Op const &mpi_op, Mpi const &mpi)
 
template<typename T >
static void BaseLib::MPI::allreduceInplace (std::vector< T > &vector, MPI_Op const &mpi_op, Mpi const &mpi)
 
template<typename T >
static std::vector< int > BaseLib::MPI::allgatherv (std::span< T > const send_buffer, std::vector< std::remove_const_t< T > > &receive_buffer, Mpi const &mpi)
 
static int BaseLib::MPI::reduceMin (int const val)