ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
parallel_reduce.h File Reference
#include <mpi.h>
#include <cassert>
#include <complex>
Include dependency graph for parallel_reduce.h:

Go to the source code of this file.

Classes

struct  Parallel_Reduce::MPI_Type< int >
struct  Parallel_Reduce::MPI_Type< double >
struct  Parallel_Reduce::MPI_Type< float >
struct  Parallel_Reduce::MPI_Type< std::complex< double > >
struct  Parallel_Reduce::MPI_Type< std::complex< float > >
struct  Parallel_Reduce::MPI_Type< long long >

Namespaces

namespace  Parallel_Reduce

Functions

template<typename T>
void Parallel_Reduce::reduce_all (T &object)
 reduce in all process
template<typename T>
void Parallel_Reduce::reduce_all (T *object, const int n)
template<typename T>
void Parallel_Reduce::reduce_pool (T &object)
template<typename T>
void Parallel_Reduce::reduce_pool (T *object, const int n)
template<typename T>
void Parallel_Reduce::reduce_min (T &v)
template<typename T>
void Parallel_Reduce::reduce_max (T &v)
void Parallel_Reduce::reduce_max (double *values, const int count)
 Reduce an array of maxima across all ranks.
template<typename T>
void Parallel_Reduce::reduce_min_pool (const int &nproc_in_pool, T &v)
template<typename T>
void Parallel_Reduce::reduce_max_pool (const int &nproc_in_pool, T &v)
void Parallel_Reduce::reduce_double_grid (double *object, const int n)
void Parallel_Reduce::reduce_double_diag (double *object, const int n)
void Parallel_Reduce::reduce_double_allpool (const int &npool, const int &nproc_in_pool, double &object)
void Parallel_Reduce::reduce_double_allpool (const int &npool, const int &nproc_in_pool, double *object, const int n)
void Parallel_Reduce::gather_int_all (int &v, int *all)