|
ROOT
Reference Guide |
|
Go to the documentation of this file.
11 #ifndef ROOT_Minuit2_MPIProcess
12 #define ROOT_Minuit2_MPIProcess
33 if (MPI::Is_initialized() && !(MPI::Is_finalized())) {
34 std::cout <<
"Info --> MPITerminate:: End MPI on #" << MPI::COMM_WORLD.Get_rank() <<
" processor" << std::endl;
44 MPIProcess(
unsigned int nelements,
unsigned int indexComm);
82 if (!(MPI::Is_initialized())) {
84 std::cout <<
"Info --> MPIProcess::StartMPI: Start MPI on #" << MPI::COMM_WORLD.Get_rank() <<
" processor"
95 if (fgCommunicators[0] != 0 && fgCommunicators[1] != 0) {
96 delete fgCommunicators[0];
97 fgCommunicators[0] = 0;
99 delete fgCommunicators[1];
100 fgCommunicators[1] = 0;
101 fgIndecesComm[1] = 0;
118 fgCommunicator->Allreduce(&sub, &
total, 1, MPI::DOUBLE, MPI::SUM);
125 void MPISyncVector(
double *ivector,
int svector,
double *ovector);
145 static MPI::Intracomm *fgCommunicator;
146 static int fgIndexComm;
147 static MPI::Intracomm *fgCommunicators[2];
148 static unsigned int fgIndecesComm[2];
static void TerminateMPI()
static unsigned int fgGlobalRank
unsigned int StartElementIndex() const
unsigned int fNumElements4JobOut
Class describing a symmetric matrix of size n.
static unsigned int GetMPIGlobalRank()
unsigned int GetMPISize() const
unsigned int NumElements4JobOut() const
static unsigned int total
static bool SetDoFirstMPICall(bool doFirstMPICall=true)
bool SyncVector(ROOT::Minuit2::MnAlgebraicVector &mnvector)
static unsigned int fgCartDimension
bool SyncSymMatrixOffDiagonal(ROOT::Minuit2::MnAlgebraicSymMatrix &mnmatrix)
static unsigned int fgCartSizeX
MPIProcess(unsigned int nelements, unsigned int indexComm)
unsigned int GetMPIRank() const
void Init(TClassEdit::TInterpreterLookupHelper *helper)
unsigned int fNumElements4JobIn
unsigned int EndElementIndex() const
void SumReduce(const double &sub, double &total)
unsigned int NumElements4JobIn() const
static unsigned int fgGlobalSize
static bool SetCartDimension(unsigned int dimX, unsigned int dimY)
static unsigned int fgCartSizeY
static unsigned int GetMPIGlobalSize()
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
unsigned int NumElements4Job(unsigned int rank) const