ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Parallel_Reduce Namespace Reference

Classes

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

Functions

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

Function Documentation

◆ gather_int_all()

void Parallel_Reduce::gather_int_all ( int & v,
int * all )
Here is the caller graph for this function:

◆ reduce_all() [1/3]

void Parallel_Reduce::reduce_all ( double & object)

◆ reduce_all() [2/3]

template<typename T>
void Parallel_Reduce::reduce_all ( T & object)

reduce in all process

◆ reduce_all() [3/3]

template<typename T>
void Parallel_Reduce::reduce_all ( T * object,
const int n )
Here is the call graph for this function:

◆ reduce_all< double >() [1/4]

template<>
template void Parallel_Reduce::reduce_all< double > ( double & object)

◆ reduce_all< double >() [2/4]

template<>
void Parallel_Reduce::reduce_all< double > ( double * data,
int n )

◆ reduce_all< double >() [3/4]

template<>
void Parallel_Reduce::reduce_all< double > ( double * data,
int n )

◆ reduce_all< double >() [4/4]

template void Parallel_Reduce::reduce_all< double > ( double * object,
const int n )

◆ reduce_double_allpool() [1/2]

void Parallel_Reduce::reduce_double_allpool ( const int & npool,
const int & nproc_in_pool,
double & object )
Here is the caller graph for this function:

◆ reduce_double_allpool() [2/2]

void Parallel_Reduce::reduce_double_allpool ( const int & npool,
const int & nproc_in_pool,
double * object,
const int n )

◆ reduce_double_diag()

void Parallel_Reduce::reduce_double_diag ( double * object,
const int n )
Here is the caller graph for this function:

◆ reduce_double_grid()

void Parallel_Reduce::reduce_double_grid ( double * object,
const int n )
Here is the caller graph for this function:

◆ reduce_max() [1/2]

void Parallel_Reduce::reduce_max ( double * values,
const int count )

Reduce an array of maxima across all ranks.

◆ reduce_max() [2/2]

template<typename T>
void Parallel_Reduce::reduce_max ( T & v)
Here is the caller graph for this function:

◆ reduce_max_pool()

template<typename T>
void Parallel_Reduce::reduce_max_pool ( const int & nproc_in_pool,
T & v )
Here is the caller graph for this function:

◆ reduce_min()

template<typename T>
void Parallel_Reduce::reduce_min ( T & v)
Here is the caller graph for this function:

◆ reduce_min_pool()

template<typename T>
void Parallel_Reduce::reduce_min_pool ( const int & nproc_in_pool,
T & v )
Here is the caller graph for this function:

◆ reduce_pool() [1/4]

void Parallel_Reduce::reduce_pool ( double & object)

◆ reduce_pool() [2/4]

void Parallel_Reduce::reduce_pool ( float & object)

◆ reduce_pool() [3/4]

template<typename T>
void Parallel_Reduce::reduce_pool ( T & object)

◆ reduce_pool() [4/4]

template<typename T>
void Parallel_Reduce::reduce_pool ( T * object,
const int n )
Here is the call graph for this function:

◆ reduce_pool< double >() [1/2]

template<>
void Parallel_Reduce::reduce_pool< double > ( double & object)

◆ reduce_pool< double >() [2/2]

template void Parallel_Reduce::reduce_pool< double > ( double * object,
const int n )
Here is the call graph for this function:

◆ reduce_pool< float >() [1/2]

template<>
template void Parallel_Reduce::reduce_pool< float > ( float & object)

◆ reduce_pool< float >() [2/2]

template void Parallel_Reduce::reduce_pool< float > ( float * object,
const int n )
Here is the call graph for this function: