PPL Logo

BaseLB::LDStats Struct Reference

Passed to the virtual functions Strategy(. More...

#include <BaseLB.h>

Collaboration diagram for BaseLB::LDStats:

Collaboration graph
[legend]

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
intnprocs ()
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 LDObjid &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
ProcStatsprocs
int n_objs
int n_migrateobjs
CkVec< LDObjDataobjData
CkVec< intfrom_proc
CkVec< intto_proc
int n_comm
CkVec< LDCommDatacommData
intobjHash
int hashSize
int complete_flag

Detailed Description

Passed to the virtual functions Strategy(.

..) and work(...)

Definition at line 84 of file BaseLB.h.


Member Function Documentation

int BaseLB::LDStats::nprocs (  )  const [inline]

int& BaseLB::LDStats::nprocs (  )  [inline]

Definition at line 109 of file BaseLB.h.

References count.

void BaseLB::LDStats::assign ( int  oid,
int  pe 
) [inline]

Definition at line 111 of file BaseLB.h.

References procs, and to_proc.

Referenced by GreedyCommLB::work().

void BaseLB::LDStats::clear (  )  [inline]

void BaseLB::LDStats::clearBgLoad (  )  [inline]

Definition at line 130 of file BaseLB.h.

References nprocs(), and procs.

Referenced by HybridBaseLB::Loadbalancing(), and HbmLB::Loadbalancing().


Field Documentation

Definition at line 85 of file BaseLB.h.

Referenced by LDStats(), nprocs(), and pup().

Definition at line 88 of file BaseLB.h.

Referenced by Refiner::AllocProcs(), HybridBaseLB::buildCombinedLBStatsMessage(), GreedyAgentLB::BuildCpuArray(), GreedyAgentLB::BuildObjectArray(), HybridBaseLB::buildStats(), CentralLB::buildStats(), clear(), computeAverageLoad(), TopoLB::computePartitions(), TopoCentLB::computePartitions(), ObjGraph::convertDecisions(), PhasebyArrayLB::copyStats(), RefinerApprox::create(), Refiner::create(), HybridBaseLB::createMigrateMsg(), CentralLB::depositData(), HybridBaseLB::depositLBStatsMessage(), LBInfo::getInfo(), CentralLB::LoadBalance(), HybridBaseLB::Loadbalancing(), makeCommHash(), MulticastAgent::MulticastAgent(), ObjGraph::ObjGraph(), HybridBaseLB::ObjMigrated(), HbmLB::ObjMigrated(), HybridBaseLB::ObjsMigrated(), RefineKLB::performGreedyMoves(), print(), HbmLB::ProcessAtSync(), pup(), CentralLB::readStatsMsgs(), HybridBaseLB::ReceiveMigration(), HbmLB::ReceiveMigrationDelta(), CentralLB::ReceiveStats(), HybridBaseLB::ReceiveVectorMigration(), RefinerComm::Refine(), RefinerApprox::Refine(), Refiner::Refine(), removeObject(), HbmLB::ResumeClients(), CentralLB::simulationRead(), NeighborLB::Strategy(), NeighborCommLB::Strategy(), HybridBaseLB::Strategy(), PhasebyArrayLB::updateStats(), useMem(), TopoLB::work(), TopoCentLB::work(), RotateLB::work(), RefineTopoLB::work(), RefineLB::work(), RefineKLB::work(), RefineCommLB::work(), RandCentLB::work(), PhasebyArrayLB::work(), OrbLB::work(), GridMetisLB::work(), GridHybridSeedLB::work(), GridHybridLB::work(), GridCommRefineLB::work(), GridCommLB::work(), GreedyLB::work(), GreedyCommLB::work(), CommLB::work(), ComboCentLB::work(), and BlockLB::work().


The documentation for this struct was generated from the following files:

Generated on Sat May 26 08:08:37 2012 for Charm++ by  doxygen 1.5.5