High Performance Plasticity  0.5.0
mpiUtils.h File Reference
#include "mpi.h"
#include <cstddef>
#include <stdexcept>
#include <iostream>
#include <vector>
#include <hpp/config.h>
Include dependency graph for mpiUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 hpp
 

Functions

template<typename T >
MPI_Datatype hpp::MPIType ()
 Get the MPI datatype from the C++ type. More...
 
template<typename T >
hpp::MPIMin (const T &localVal, MPI_Comm comm)
 
template<typename T >
hpp::MPIMax (const T &localVal, MPI_Comm comm)
 
template<typename T >
hpp::MPISum (const T &localVal, MPI_Comm comm)
 
template<typename T >
std::vector< T > hpp::MPIConcatOnRoot (T localVal, MPI_Comm comm)
 
template<typename T >
std::vector< T > hpp::MPIConcatOnRoot (std::vector< T > localVec, MPI_Comm comm)
 
template<typename T >
hpp::MPIBroadcastFromRoot (T rootVal, MPI_Comm comm)
 
template<typename T >
std::vector< T > hpp::MPIBroadcastFromRoot (std::vector< T > rootVec, MPI_Comm comm)
 
template<typename T >
std::vector< T > hpp::MPISplitVectorEvenly (const std::vector< T > &rootVec, MPI_Comm comm)
 
template<typename T >
std::vector< T > hpp::MPISplitVectorEvenly (const std::vector< T > &rootVec, MPI_Comm comm, MPI_Datatype dtype)
 
bool hpp::MPIAllTrue (bool condition, MPI_Comm comm)
 Determine if condition is true for all processes. More...