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 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
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
int is_prev_lb_refine
double after_lb_max
double after_lb_avg

Detailed Description

Passed to the virtual functions Strategy(.

..) and work(...)

Definition at line 88 of file BaseLB.h.


Member Function Documentation

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().

Here is the caller graph for this function:

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

Definition at line 117 of file BaseLB.h.

References count.

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

Definition at line 119 of file BaseLB.h.

References procs, and to_proc.

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 138 of file BaseLB.h.

References nprocs(), and procs.

Here is the call graph for this function:


Field Documentation

Definition at line 89 of file BaseLB.h.

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

Definition at line 93 of file BaseLB.h.

Referenced by clear(), PhasebyArrayLB::copyStats(), pup(), and removeObject().

Definition at line 109 of file BaseLB.h.

Definition at line 110 of file BaseLB.h.

Definition at line 111 of file BaseLB.h.


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

Generated on Mon Sep 21 08:17:48 2020 for Charm++ by  doxygen 1.5.5