NAMD
Public Member Functions | List of all members
TorusLB Class Reference

#include <TorusLB.h>

Inheritance diagram for TorusLB:
RefineTorusLB Rebalancer

Public Member Functions

 TorusLB (computeInfo *cs, patchInfo *pas, processorInfo *pes, int ncs, int npas, int npes)
 
 ~TorusLB ()
 
- Public Member Functions inherited from RefineTorusLB
 RefineTorusLB (computeInfo *cs, patchInfo *pas, processorInfo *pes, int ncs, int npas, int npes, int flag)
 
 ~RefineTorusLB ()
 
void binaryRefine ()
 
int newRefine ()
 
- Public Member Functions inherited from Rebalancer
 Rebalancer (computeInfo *computeArray, patchInfo *patchArray, processorInfo *processorArray, int nComps, int nPatches, int nPes)
 
 ~Rebalancer ()
 

Additional Inherited Members

- Protected Types inherited from Rebalancer
typedef pcpair pcgrid [3][3][2]
 
- Protected Member Functions inherited from Rebalancer
int isAvailableOn (patchInfo *patch, processorInfo *p)
 
void numAvailable (computeInfo *c, processorInfo *p, int *nPatches, int *nProxies, int *isBadForCommunication)
 
void refine_togrid (pcgrid &grid, double thresholdLoad, processorInfo *p, computeInfo *c)
 
void strategy ()
 
void makeHeaps ()
 
void makeTwoHeaps ()
 
void assign (computeInfo *c, processorInfo *pRec)
 
void assign (computeInfo *c, int p)
 
void deAssign (computeInfo *c, processorInfo *pRec)
 
int refine ()
 
void multirefine (double overload_start=1.02)
 
void printSummary ()
 
void printResults ()
 
void printLoads (int phase=0)
 
double computeAverage ()
 
void adjustBackgroundLoadAndComputeAverage ()
 
double computeMax ()
 
void createSpanningTree ()
 
void decrSTLoad ()
 
void incrSTLoad ()
 
void InitProxyUsage ()
 
void brickDim (int a, int b, int dim, int &min, int &max)
 
int withinBrick (int x, int y, int z, int xm, int xM, int dimX, int ym, int yM, int dimY, int zm, int zM, int dimZ)
 
- Protected Attributes inherited from Rebalancer
int bytesPerAtom
 
ProxyUsage proxyUsage
 
const char * strategyName
 
computeInfocomputes
 
patchInfopatches
 
processorInfoprocessors
 
minHeappes
 
maxHeapcomputePairHeap
 
maxHeapcomputeSelfHeap
 
maxHeapcomputeBgPairHeap
 
maxHeapcomputeBgSelfHeap
 
int P
 
int numPatches
 
int numComputes
 
int numProxies
 
int numPesAvailable
 
double averageLoad
 
double origMaxLoad
 
int firstAssignInRefine
 
CollectLoadsMsgcollMsg
 
double overLoad
 

Detailed Description

Definition at line 14 of file TorusLB.h.

Constructor & Destructor Documentation

TorusLB::TorusLB ( computeInfo cs,
patchInfo pas,
processorInfo pes,
int  ncs,
int  npas,
int  npes 
)

Definition at line 19 of file TorusLB.C.

References Rebalancer::strategyName.

20  : RefineTorusLB(cs, pas, pes, ncs, npas, npes, 0)
21 {
22  strategyName = "TorusLB";
23  strategy();
24  //if ( computeMax() <= origMaxLoad ) {
25  // binaryRefine();
26  // printLoads();
27  //}
28  // CREATE THE SPANNING TREE IN THE LOAD BALANCER
29  //if(proxySendSpanning || proxyRecvSpanning)
30  // createSpanningTree();
31 }
RefineTorusLB(computeInfo *cs, patchInfo *pas, processorInfo *pes, int ncs, int npas, int npes, int flag)
Definition: RefineTorusLB.C:18
const char * strategyName
Definition: Rebalancer.h:127
TorusLB::~TorusLB ( )

Definition at line 33 of file TorusLB.C.

33 { }

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