Block-Structured AMR Software Framework
amrex::ParallelAllReduce Namespace Reference

Functions

template<typename K , typename V >
void Max (KeyValuePair< K, V > &vi, MPI_Comm comm)
 
template<typename K , typename V >
void Max (KeyValuePair< K, V > *vi, int cnt, MPI_Comm comm)
 
template<typename K , typename V >
void Min (KeyValuePair< K, V > &vi, MPI_Comm comm)
 
template<typename K , typename V >
void Min (KeyValuePair< K, V > *vi, int cnt, MPI_Comm comm)
 
template<typename T >
void Max (T &v, MPI_Comm comm)
 
template<typename T >
void Max (T *v, int cnt, MPI_Comm comm)
 
template<typename T >
void Max (Vector< std::reference_wrapper< T > > v, MPI_Comm comm)
 
template<typename T >
void Min (T &v, MPI_Comm comm)
 
template<typename T >
void Min (T *v, int cnt, MPI_Comm comm)
 
template<typename T >
void Min (Vector< std::reference_wrapper< T > > v, MPI_Comm comm)
 
template<typename T >
void Sum (T &v, MPI_Comm comm)
 
template<typename T >
void Sum (T *v, int cnt, MPI_Comm comm)
 
template<typename T >
void Sum (Vector< std::reference_wrapper< T > > v, MPI_Comm comm)
 
void Or (bool &v, MPI_Comm comm)
 
void And (bool &v, MPI_Comm comm)
 

Function Documentation

◆ And()

void amrex::ParallelAllReduce::And ( bool &  v,
MPI_Comm  comm 
)
inline

◆ Max() [1/5]

template<typename K , typename V >
void amrex::ParallelAllReduce::Max ( KeyValuePair< K, V > &  vi,
MPI_Comm  comm 
)

◆ Max() [2/5]

template<typename K , typename V >
void amrex::ParallelAllReduce::Max ( KeyValuePair< K, V > *  vi,
int  cnt,
MPI_Comm  comm 
)

◆ Max() [3/5]

template<typename T >
void amrex::ParallelAllReduce::Max ( T &  v,
MPI_Comm  comm 
)

◆ Max() [4/5]

template<typename T >
void amrex::ParallelAllReduce::Max ( T *  v,
int  cnt,
MPI_Comm  comm 
)

◆ Max() [5/5]

template<typename T >
void amrex::ParallelAllReduce::Max ( Vector< std::reference_wrapper< T > >  v,
MPI_Comm  comm 
)

◆ Min() [1/5]

template<typename K , typename V >
void amrex::ParallelAllReduce::Min ( KeyValuePair< K, V > &  vi,
MPI_Comm  comm 
)

◆ Min() [2/5]

template<typename K , typename V >
void amrex::ParallelAllReduce::Min ( KeyValuePair< K, V > *  vi,
int  cnt,
MPI_Comm  comm 
)

◆ Min() [3/5]

template<typename T >
void amrex::ParallelAllReduce::Min ( T &  v,
MPI_Comm  comm 
)

◆ Min() [4/5]

template<typename T >
void amrex::ParallelAllReduce::Min ( T *  v,
int  cnt,
MPI_Comm  comm 
)

◆ Min() [5/5]

template<typename T >
void amrex::ParallelAllReduce::Min ( Vector< std::reference_wrapper< T > >  v,
MPI_Comm  comm 
)

◆ Or()

void amrex::ParallelAllReduce::Or ( bool &  v,
MPI_Comm  comm 
)
inline

◆ Sum() [1/3]

template<typename T >
void amrex::ParallelAllReduce::Sum ( T &  v,
MPI_Comm  comm 
)

◆ Sum() [2/3]

template<typename T >
void amrex::ParallelAllReduce::Sum ( T *  v,
int  cnt,
MPI_Comm  comm 
)

◆ Sum() [3/3]

template<typename T >
void amrex::ParallelAllReduce::Sum ( Vector< std::reference_wrapper< T > >  v,
MPI_Comm  comm 
)