OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Functions
GlobalComm.h File Reference
#include "Message/GlobalComm.hpp"
Include dependency graph for GlobalComm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class InputIterator , class OutputIterator , class ReduceOp >
bool reduce (Communicate &, InputIterator, InputIterator, OutputIterator, const ReduceOp &, bool *IncludeVal=0)
 
template<class InputIterator , class OutputIterator , class ReduceOp >
bool reduce (InputIterator, InputIterator, OutputIterator, const ReduceOp &, bool *IncludeVal=0)
 
template<class T , class ReduceOp >
bool reduce (Communicate &comm, T &input, T &output, const ReduceOp &op)
 
template<class T , class ReduceOp >
bool reduce (T &input, T &output, const ReduceOp &op)
 
template<class T , class ReduceOp >
bool reduce_masked (Communicate &comm, T &input, T &output, const ReduceOp &op, bool IncludeVal)
 
template<class T , class ReduceOp >
bool reduce_masked (T &input, T &output, const ReduceOp &op, bool IncludeVal)
 
template<class InputIterator , class RandomIterator , class ScatterOp >
bool scatter (Communicate &, InputIterator, InputIterator, RandomIterator, int *, int *, const ScatterOp &)
 
template<class InputIterator , class RandomIterator , class ScatterOp >
bool scatter (InputIterator, InputIterator, RandomIterator, int *, int *, const ScatterOp &)
 
template<typename T >
void gather (const T *input, T *output, int count, int root=0)
 
template<typename T >
void scatter (const T *input, T *output, int count, int root=0)
 
template<typename T , class Op >
void reduce (const T *input, T *output, int count, Op op, int root=0)
 
template<typename T , class Op >
void new_reduce (const T *input, T *output, int count, Op op, int root=0)
 
template<typename T , class Op >
void new_reduce (T *inout, int count, Op op, int root=0)
 
template<typename T , class Op >
void reduce (const T &input, T &output, int count, Op op, int root=0)
 
template<typename T , class Op >
void allreduce (const T *input, T *output, int count, Op op)
 
template<typename T , class Op >
void allreduce (const T &input, T &output, int count, Op op)
 
template<typename T , class Op >
void allreduce (T *inout, int count, Op op)
 
template<typename T , class Op >
void allreduce (T &inout, int count, Op op)
 

Function Documentation

◆ allreduce() [1/4]

template<typename T , class Op >
void allreduce ( const T &  input,
T &  output,
int  count,
Op  op 
)

Definition at line 520 of file GlobalComm.hpp.

References allreduce().

Here is the call graph for this function:

◆ allreduce() [2/4]

template<typename T , class Op >
void allreduce ( const T *  input,
T *  output,
int  count,
Op  op 
)

◆ allreduce() [3/4]

template<typename T , class Op >
void allreduce ( T &  inout,
int  count,
Op  op 
)

Definition at line 537 of file GlobalComm.hpp.

References allreduce().

Here is the call graph for this function:

◆ allreduce() [4/4]

template<typename T , class Op >
void allreduce ( T *  inout,
int  count,
Op  op 
)

Definition at line 526 of file GlobalComm.hpp.

References IpplInfo::getComm().

Here is the call graph for this function:

◆ gather()

template<typename T >
void gather ( const T *  input,
T *  output,
int  count,
int  root = 0 
)

Definition at line 449 of file GlobalComm.hpp.

References IpplInfo::getComm(), and Attrib::Legacy::Distribution::T.

Referenced by PartBunchBase< T, Dim >::gatherLoadBalanceStatistics(), and IpplMemoryUsage::sample().

Here is the call graph for this function:

◆ new_reduce() [1/2]

template<typename T , class Op >
void new_reduce ( const T *  input,
T *  output,
int  count,
Op  op,
int  root = 0 
)

Definition at line 477 of file GlobalComm.hpp.

References IpplInfo::getComm(), and Attrib::Legacy::Distribution::T.

Referenced by MemoryProfiler::compute(), and LossDataSink::computeSetStatistics().

Here is the call graph for this function:

◆ new_reduce() [2/2]

template<typename T , class Op >
void new_reduce ( T *  inout,
int  count,
Op  op,
int  root = 0 
)

Definition at line 488 of file GlobalComm.hpp.

References IpplInfo::getComm(), and IpplInfo::myNode().

Here is the call graph for this function:

◆ reduce() [1/6]

template<class InputIterator , class OutputIterator , class ReduceOp >
bool reduce ( Communicate comm,
InputIterator  s1,
InputIterator  s2,
OutputIterator  t1,
const ReduceOp &  op,
bool *  IncludeVal = 0 
)

Definition at line 55 of file GlobalComm.hpp.

References IpplInfo::abort(), Communicate::broadcast_others(), COMM_ANY_NODE, COMM_REDUCE_CYCLE, COMM_REDUCE_RECV_TAG, COMM_REDUCE_SEND_TAG, Message::MsgItem::data(), endl(), ERRORMSG, getMessage(), Communicate::getNodes(), Message::item(), Communicate::myNode(), TagMaker::next_tag(), PETE_apply(), putMessage(), Communicate::receive_block(), Communicate::send(), and Message::size().

Referenced by PartBunchBase< T, Dim >::boundp_destroyT(), ParallelCyclotronTracker::calcMeanP(), PartBunchBase< T, Dim >::calcMeanPhi(), ParallelCyclotronTracker::calcMeanR(), GreenWakeFunction::CalcWakeFFT(), ParallelCyclotronTracker::checkNumPart(), Distribution::checkParticleNumber(), Vacuum::checkVacuum(), BareField< T, Dim >::CompressedFraction(), P3MPoissonSolver::compute_temperature(), P3MPoissonSolver::computeAvgSpaceChargeForces(), PeakFinder::computeCentroid_m(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), MGPoissonSolver::computePotential(), Distribution::createDistributionFromFile(), PeakFinder::createHistogram_m(), ParallelCyclotronTracker::deleteParticle(), PartBunchBase< T, Dim >::destroyT(), CCollimator::doFinaliseCheck(), Stripper::doFinaliseCheck(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), Distribution::fillEBinHistogram(), AmrPartBunch::gatherLevelStatistics(), PartBunchBase< T, Dim >::getIfBeamEmitting(), Distribution::getMaxTOrZ(), Distribution::getMinTOrZ(), Distribution::getNumberOfParticlesInFile(), PartBins::getTotalNum(), PartBins::getTotalNumPerBin(), ParallelTTracker::hasEndOfLineReached(), LossDataSink::hasNoParticlesToDump(), ParticleAttrib< T >::isDirty(), Timing::print(), IpplMessageCounterRegion::print(), Distribution::printDist(), IpplCounter::printIt(), MGPoissonSolver::printLoadBalanceStats(), reduce(), Distribution::reflectDistribution(), PartBunchBase< T, Dim >::resetPartBinID2(), PartBins::resetPartInBin_cyc(), LossDataSink::saveH5(), Distribution::setupEmissionModelNone(), Distribution::shiftBeam(), PartBins::sortArray(), PartBunchBase< T, Dim >::updateNumTotal(), Distribution::writeOutFileHeader(), Distribution::writeOutFileInjection(), and ParallelTTracker::writePhaseSpace().

Here is the call graph for this function:

◆ reduce() [2/6]

template<class T , class ReduceOp >
bool reduce ( Communicate comm,
T &  input,
T &  output,
const ReduceOp &  op 
)

Definition at line 71 of file GlobalComm.h.

References reduce_masked().

Here is the call graph for this function:

◆ reduce() [3/6]

template<typename T , class Op >
void reduce ( const T &  input,
T &  output,
int  count,
Op  op,
int  root = 0 
)

Definition at line 504 of file GlobalComm.hpp.

References reduce().

Here is the call graph for this function:

◆ reduce() [4/6]

template<typename T , class Op >
void reduce ( const T *  input,
T *  output,
int  count,
Op  op,
int  root = 0 
)

Definition at line 467 of file GlobalComm.hpp.

References IpplInfo::getComm(), and Attrib::Legacy::Distribution::T.

Here is the call graph for this function:

◆ reduce() [5/6]

template<class InputIterator , class OutputIterator , class ReduceOp >
bool reduce ( InputIterator  s1,
InputIterator  s2,
OutputIterator  t1,
const ReduceOp &  op,
bool *  IncludeVal = 0 
)

Definition at line 194 of file GlobalComm.hpp.

References IpplInfo::Comm, and reduce().

Here is the call graph for this function:

◆ reduce() [6/6]

template<class T , class ReduceOp >
bool reduce ( T &  input,
T &  output,
const ReduceOp &  op 
)

Definition at line 78 of file GlobalComm.h.

References reduce_masked().

Here is the call graph for this function:

◆ reduce_masked() [1/2]

template<class T , class ReduceOp >
bool reduce_masked ( Communicate comm,
T &  input,
T &  output,
const ReduceOp &  op,
bool  IncludeVal 
)

◆ reduce_masked() [2/2]

template<class T , class ReduceOp >
bool reduce_masked ( T &  input,
T &  output,
const ReduceOp &  op,
bool  IncludeVal 
)

Definition at line 334 of file GlobalComm.hpp.

References IpplInfo::Comm, and reduce_masked().

Here is the call graph for this function:

◆ scatter() [1/3]

template<class InputIterator , class RandomIterator , class ScatterOp >
bool scatter ( Communicate comm,
InputIterator  s1,
InputIterator  s2,
RandomIterator  t1,
int *  target_node,
int *  target_position,
const ScatterOp &  op 
)

◆ scatter() [2/3]

template<typename T >
void scatter ( const T *  input,
T *  output,
int  count,
int  root = 0 
)

Definition at line 458 of file GlobalComm.hpp.

References IpplInfo::getComm(), and Attrib::Legacy::Distribution::T.

Here is the call graph for this function:

◆ scatter() [3/3]

template<class InputIterator , class RandomIterator , class ScatterOp >
bool scatter ( InputIterator  s1,
InputIterator  s2,
RandomIterator  t1,
int *  target_node,
int *  target_position,
const ScatterOp &  op 
)

Definition at line 440 of file GlobalComm.hpp.

References IpplInfo::Comm, and scatter().

Here is the call graph for this function: