Revision 5dfe48ba8684b34080d95fa045be4282b8bdab08 authored by Harshitha on 16 March 2016, 19:50:35 UTC, committed by Harshitha on 16 March 2016, 19:50:35 UTC
Change-Id: I78ccaedcf3eea7e07b820ef4ae9ad8356ce11f88
1 parent b79547b
MultistepOrbLB.h
/*****************************************************************************
* $Source$
* $Author$
* $Date$
* $Revision$
*****************************************************************************/
/**
* \addtogroup CkLdb
*/
/*@{*/
#ifndef _MULTISTEPORBLB_H_
#define _MULTISTEPORBLB_H_
#define MCLBMS // multistepping enabled
#include "MultistepOrbLB.decl.h"
#include "TaggedVector3D.h"
#include "OrbLB.h"
void CreateMultistepOrbLB();
BaseLB * AllocateMultistepOrbLB();
/// @brief Multistep load balancer where no processor topology
/// information is used.
///
/// This balancer recognizes different "phases" (called rungs in other
/// parts of the code), and uses loads based on measurements of the
/// previous calculation at the same phase. For large phases, (i.e.,
/// when many particles are active, the TreePieces are divided among
/// by 3 dimensional ORB based on the centroids of the TreePieces.
/// For small phases, a greedy algorithm is used.
///
class MultistepOrbLB : public CBase_MultistepOrbLB {
private:
bool QueryBalanceNow(int step);
void init();
unsigned int determinePhase(unsigned int activeRung);
void makeActiveProcessorList(BaseLB::LDStats *stats, int numActiveObjs);
void mergeInstrumentedData(int phase, BaseLB::LDStats *phaseStats);
bool havePhaseData(int phase);
void printData(BaseLB::LDStats &stats, int phase, int *revObjMap);
public:
MultistepOrbLB(const CkLBOptions &);
MultistepOrbLB(CkMigrateMessage *m) : CBase_MultistepOrbLB(m) {
init();
}
void work(BaseLB::LDStats* stats);
public:
void pup(PUP::er &p);
};
#endif /* _MultistepOrbLB */
/*@}*/
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...