#include <BaseLB.h>
Public Member Functions | |
LDStats (int c=0, int complete_flag=1) | |
int | nprocs () const |
the functions below should be used to obtain the number of processors instead of accessing count directly | |
int & | nprocs () |
void | assign (int oid, int pe) |
void | makeCommHash () |
build hash table | |
void | deleteCommHash () |
int | getHash (const LDObjKey &) |
given an LDObjKey, returns the index in the objData vector this index changes every time one does load balancing even within a run | |
int | getHash (const CmiUInt8 &oid, const LDOMid &mid) |
int | getSendHash (LDCommData &cData) |
int | getRecvHash (LDCommData &cData) |
void | clearCommHash () |
void | clear () |
void | clearBgLoad () |
void | computeNonlocalComm (int &nmsgs, int &nbytes) |
double | computeAverageLoad () |
void | normalize_speed () |
void | print () |
void | removeObject (int obj) |
void | pup (PUP::er &p) |
int | useMem () |
Data Fields | |
int | count |
ProcStats * | procs |
int | n_objs |
int | n_migrateobjs |
CkVec< LDObjData > | objData |
CkVec< int > | from_proc |
CkVec< int > | to_proc |
int | n_comm |
CkVec< LDCommData > | commData |
int * | objHash |
int | hashSize |
int | complete_flag |
int | is_prev_lb_refine |
double | after_lb_max |
double | after_lb_avg |
..) and work(...)
Definition at line 88 of file BaseLB.h.
int BaseLB::LDStats::nprocs | ( | ) | const [inline] |
the functions below should be used to obtain the number of processors instead of accessing count directly
Definition at line 116 of file BaseLB.h.
References count.
Referenced by clearBgLoad(), computeAverageLoad(), computeNonlocalComm(), ProcArrayTemp::convertToInsts(), PhasebyArrayLB::copyStats(), normalize_speed(), print(), ProcArray::ProcArray(), pup(), useMem(), VectorStrategy(), and TreeMatchLB::work().
int& BaseLB::LDStats::nprocs | ( | ) | [inline] |
void BaseLB::LDStats::clear | ( | ) | [inline] |
Definition at line 130 of file BaseLB.h.
References commData, deleteCommHash(), CkVec< T >::free(), from_proc, n_comm, n_migrateobjs, n_objs, objData, and to_proc.
Referenced by PhasebyArrayLB::work().
void BaseLB::LDStats::clearBgLoad | ( | ) | [inline] |
Definition at line 90 of file BaseLB.h.
Referenced by assign(), clearBgLoad(), computeAverageLoad(), PhasebyArrayLB::copyStats(), RefinerTemp::create(), Refiner::create(), LBInfo::getInfo(), LDStats(), normalize_speed(), RefineKLB::performGreedyMoves(), print(), LBSimulation::PrintDifferences(), ProcArray::ProcArray(), pup(), and VectorStrategy().
Definition at line 92 of file BaseLB.h.
Referenced by RefinerTemp::AllocProcs(), Refiner::AllocProcs(), clear(), computeAverageLoad(), ObjGraph::convertDecisions(), ObjGraphTemp::convertToInsts(), PhasebyArrayLB::copyStats(), RefinerTemp::create(), Refiner::create(), LBInfo::getInfo(), makeCommHash(), MulticastAgent::MulticastAgent(), ObjGraph::ObjGraph(), RefineKLB::performGreedyMoves(), print(), pup(), RefinerTemp::Refine(), RefinerComm::Refine(), Refiner::Refine(), removeObject(), PhasebyArrayLB::updateStats(), useMem(), and PhasebyArrayLB::work().
Definition at line 93 of file BaseLB.h.
Referenced by clear(), PhasebyArrayLB::copyStats(), pup(), and removeObject().
Definition at line 94 of file BaseLB.h.
Referenced by clear(), computeAverageLoad(), PhasebyArrayLB::copyStats(), RefinerTemp::create(), Refiner::create(), getHash(), LBInfo::getInfo(), makeCommHash(), ObjGraph::ObjGraph(), RefineKLB::performGreedyMoves(), print(), pup(), removeObject(), PhasebyArrayLB::updateStats(), and PhasebyArrayLB::work().
Definition at line 95 of file BaseLB.h.
Referenced by clear(), PhasebyArrayLB::copyStats(), ObjGraph::ObjGraph(), print(), pup(), removeObject(), and PhasebyArrayLB::work().
Definition at line 96 of file BaseLB.h.
Referenced by assign(), clear(), computeNonlocalComm(), ObjGraph::convertDecisions(), PhasebyArrayLB::copyStats(), LBInfo::getInfo(), getPredictedLoadWithMsg(), pup(), removeObject(), TreeMatchLB::work(), and PhasebyArrayLB::work().
Definition at line 98 of file BaseLB.h.
Referenced by clear(), clearCommHash(), computeNonlocalComm(), PhasebyArrayLB::copyStats(), deleteCommHash(), LBInfo::getInfo(), MulticastAgent::MulticastAgent(), ObjGraph::ObjGraph(), print(), pup(), removeObject(), useMem(), and TreeMatchLB::work().
Definition at line 99 of file BaseLB.h.
Referenced by clear(), clearCommHash(), computeNonlocalComm(), PhasebyArrayLB::copyStats(), deleteCommHash(), LBInfo::getInfo(), MulticastAgent::MulticastAgent(), ObjGraph::ObjGraph(), print(), pup(), removeObject(), and TreeMatchLB::work().
Definition at line 102 of file BaseLB.h.
Referenced by PhasebyArrayLB::copyStats(), deleteCommHash(), getHash(), makeCommHash(), pup(), and PhasebyArrayLB::updateStats().
Definition at line 104 of file BaseLB.h.
Referenced by PhasebyArrayLB::copyStats(), getHash(), makeCommHash(), and PhasebyArrayLB::updateStats().
Definition at line 106 of file BaseLB.h.
Referenced by computeNonlocalComm(), RefinerTemp::create(), Refiner::create(), and ObjGraph::ObjGraph().