PPL Logo

TopoLB Class Reference

#include <TopoLB.h>

Inheritance diagram for TopoLB:

Inheritance graph
[legend]
Collaboration diagram for TopoLB:

Collaboration graph
[legend]

Public Member Functions

 TopoLB (const CkLBOptions &opt)
 TopoLB (CkMigrateMessage *m)
void work (LDStats *stats)
void pup (PUP::er &p)

Data Fields

LBTopologytopo

Protected Member Functions

virtual void computePartitions (CentralLB::LDStats *stats, int count, int *newmap)
virtual void allocateDataStructures (int num_procs)
virtual void freeDataStructures (int num_procs)
virtual void initDataStructures (CentralLB::LDStats *stats, int count, int *newmap)
virtual void printDataStructures (int num_procs, int num_objs, int *newmap)
virtual double getHopBytes (CentralLB::LDStats *stats, int count, CkVec< int >obj_to_proc)
virtual double getHopBytesNew (int *assign_map, int count)
void performMapping (int *newmap, int count)
CmiBool QueryBalanceNow (int step)

Protected Attributes

double ** dist
double ** comm
doublecommUA
double ** hopBytes
boolpfree
boolcfree
intassign
double total_comm

Detailed Description

Definition at line 47 of file TopoLB.h.


Constructor & Destructor Documentation

TopoLB::TopoLB ( const CkLBOptions opt  ) 

TopoLB::TopoLB ( CkMigrateMessage m  )  [inline]

Definition at line 51 of file TopoLB.h.


Member Function Documentation

void TopoLB::work ( LDStats stats  ) 

void TopoLB::pup ( PUP::er p  )  [inline, virtual]

Reimplemented from CentralLB.

Reimplemented in RefineTopoLB.

Definition at line 55 of file TopoLB.h.

References CentralLB::pup().

Referenced by RefineTopoLB::pup().

void TopoLB::computePartitions ( CentralLB::LDStats stats,
int  count,
int newmap 
) [protected, virtual]

void TopoLB::allocateDataStructures ( int  num_procs  )  [protected, virtual]

Definition at line 63 of file TopoLB.C.

References assign, cfree, comm, commUA, dist, hopBytes, and pfree.

Referenced by work(), and RefineTopoLB::work().

void TopoLB::freeDataStructures ( int  num_procs  )  [protected, virtual]

Definition at line 46 of file TopoLB.C.

References assign, cfree, comm, commUA, dist, hopBytes, and pfree.

Referenced by work(), and RefineTopoLB::work().

void TopoLB::initDataStructures ( CentralLB::LDStats stats,
int  count,
int newmap 
) [protected, virtual]

void TopoLB::printDataStructures ( int  num_procs,
int  num_objs,
int newmap 
) [protected, virtual]

Definition at line 822 of file TopoLB.C.

References dist, and hopBytes.

Referenced by work(), and RefineTopoLB::work().

double TopoLB::getHopBytes ( CentralLB::LDStats stats,
int  count,
CkVec< int obj_to_proc 
) [protected, virtual]

double TopoLB::getHopBytesNew ( int assign_map,
int  count 
) [protected, virtual]

Definition at line 853 of file TopoLB.C.

References comm, and dist.

Referenced by work(), and RefineTopoLB::work().

void TopoLB::performMapping ( int newmap,
int  count 
) [protected]

Definition at line 468 of file TopoLB.C.

References assign, cfree, comm, commUA, dist, hopBytes, and pfree.

Referenced by work().

CmiBool TopoLB::QueryBalanceNow ( int  step  )  [protected, virtual]

Reimplemented from CentralLB.

Reimplemented in RefineTopoLB.

Definition at line 41 of file TopoLB.C.

References CmiTrue.


Field Documentation

Definition at line 57 of file TopoLB.h.

Referenced by initDataStructures(), work(), and RefineTopoLB::work().

double** TopoLB::dist [protected]

double** TopoLB::comm [protected]

double* TopoLB::commUA [protected]

double** TopoLB::hopBytes [protected]

bool* TopoLB::pfree [protected]

bool* TopoLB::cfree [protected]

int* TopoLB::assign [protected]

Definition at line 68 of file TopoLB.h.

Referenced by initDataStructures(), work(), and RefineTopoLB::work().


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

Generated on Fri May 25 08:05:45 2012 for Charm++ by  doxygen 1.5.5