PPL Logo

TopoCentLB Class Reference

#include <TopoCentLB.h>

Inheritance diagram for TopoCentLB:

Inheritance graph
[legend]
Collaboration diagram for TopoCentLB:

Collaboration graph
[legend]

Public Member Functions

 TopoCentLB (const CkLBOptions &opt)
 TopoCentLB (CkMigrateMessage *m)
 ~TopoCentLB ()
void work (LDStats *stats)
void pup (PUP::er &p)
void calculateMST (PartGraph *partgraph, LBTopology *topo, int *proc_mapping, int max_comm_part)
void increaseKey (HeapNode *heap, int i, double wt)
HeapNode extractMax (HeapNode *heap, int *heapSize)
void BuildHeap (HeapNode *heap, int heapSize)
void Heapify (HeapNode *heap, int node, int heapSize)
int findMaxObjs (int *map, int totalobjs, int count)
void computePartitions (CentralLB::LDStats *stats, int count, int *newmap)

Data Fields

PartGraphpartgraph
LBTopologytopo
double ** hopCount
intheapMapping

Private Member Functions

CmiBool QueryBalanceNow (int step)

Data Structures

struct  HeapNode
class  PartGraph

Detailed Description

Definition at line 37 of file TopoCentLB.h.


Constructor & Destructor Documentation

TopoCentLB::TopoCentLB ( const CkLBOptions opt  ) 

TopoCentLB::TopoCentLB ( CkMigrateMessage m  )  [inline]

Definition at line 41 of file TopoCentLB.h.

TopoCentLB::~TopoCentLB (  ) 

Definition at line 48 of file TopoCentLB.C.

References topo.


Member Function Documentation

void TopoCentLB::work ( LDStats stats  ) 

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

Reimplemented from CentralLB.

Definition at line 46 of file TopoCentLB.h.

References CentralLB::pup().

void TopoCentLB::calculateMST ( PartGraph partgraph,
LBTopology topo,
int proc_mapping,
int  max_comm_part 
)

void TopoCentLB::increaseKey ( HeapNode heap,
int  i,
double  wt 
)

Definition at line 291 of file TopoCentLB.C.

References heapMapping, TopoCentLB::HeapNode::key, and TopoCentLB::HeapNode::node.

Referenced by calculateMST().

TopoCentLB::HeapNode TopoCentLB::extractMax ( HeapNode heap,
int heapSize 
)

Definition at line 273 of file TopoCentLB.C.

References CmiAbort(), Heapify(), heapMapping, max(), and TopoCentLB::HeapNode::node.

Referenced by calculateMST().

void TopoCentLB::BuildHeap ( HeapNode heap,
int  heapSize 
)

Definition at line 286 of file TopoCentLB.C.

References Heapify().

Referenced by calculateMST().

void TopoCentLB::Heapify ( HeapNode heap,
int  node,
int  heapSize 
)

Definition at line 247 of file TopoCentLB.C.

References heapMapping, left(), and TopoCentLB::HeapNode::node.

Referenced by BuildHeap(), and extractMax().

int TopoCentLB::findMaxObjs ( int map,
int  totalobjs,
int  count 
)

Definition at line 226 of file TopoCentLB.C.

Referenced by work().

void TopoCentLB::computePartitions ( CentralLB::LDStats stats,
int  count,
int newmap 
)

CmiBool TopoCentLB::QueryBalanceNow ( int  step  )  [private, virtual]

Reimplemented from CentralLB.

Definition at line 43 of file TopoCentLB.C.

References CmiTrue.


Field Documentation

Definition at line 124 of file TopoCentLB.h.

Referenced by work().

Definition at line 125 of file TopoCentLB.h.

Referenced by work(), and ~TopoCentLB().

Definition at line 126 of file TopoCentLB.h.

Referenced by calculateMST(), and work().

Definition at line 127 of file TopoCentLB.h.

Referenced by calculateMST(), extractMax(), Heapify(), increaseKey(), and 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