PPL Logo

GridCommLB Class Reference

#include <GridCommLB.h>

Inheritance diagram for GridCommLB:

Inheritance graph
[legend]
Collaboration diagram for GridCommLB:

Collaboration graph
[legend]

Public Member Functions

 GridCommLB (const CkLBOptions &)
 GridCommLB (CkMigrateMessage *msg)
CmiBool QueryBalanceNow (int step)
void work (LDStats *stats)
void pup (PUP::er &p)

Private Member Functions

int Get_Cluster (int pe)
void Initialize_PE_Data (CentralLB::LDStats *stats)
int Available_PE_Count ()
int Compute_Number_Of_Clusters ()
void Initialize_Object_Data (CentralLB::LDStats *stats)
void Examine_InterObject_Messages (CentralLB::LDStats *stats)
void Map_NonMigratable_Objects_To_PEs ()
void Map_Migratable_Objects_To_PEs (int cluster)
int Find_Maximum_Object (int cluster)
int Find_Minimum_PE (int cluster)
void Assign_Object_To_PE (int target_object, int target_pe)

Private Attributes

int CK_LDB_GridCommLB_Mode
int CK_LDB_GridCommLB_Background_Load
double CK_LDB_GridCommLB_Load_Tolerance
int Num_PEs
int Num_Objects
int Num_Clusters
PE_Data_TPE_Data
Object_Data_TObject_Data

Detailed Description

Definition at line 52 of file GridCommLB.h.


Constructor & Destructor Documentation

GridCommLB::GridCommLB ( const CkLBOptions  ) 

GridCommLB::GridCommLB ( CkMigrateMessage msg  ) 


Member Function Documentation

CmiBool GridCommLB::QueryBalanceNow ( int  step  )  [virtual]

Reimplemented from CentralLB.

Definition at line 124 of file GridCommLB.C.

References _lb_args, Converse::CkMyPe(), CmiTrue, and CkLBArgs::debug().

void GridCommLB::work ( LDStats stats  ) 

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

Reimplemented from CentralLB.

Definition at line 60 of file GridCommLB.h.

References CentralLB::pup().

int GridCommLB::Get_Cluster ( int  pe  )  [private]

void GridCommLB::Initialize_PE_Data ( CentralLB::LDStats stats  )  [private]

int GridCommLB::Available_PE_Count (  )  [private]

Definition at line 206 of file GridCommLB.C.

References Num_PEs, and PE_Data.

Referenced by work().

int GridCommLB::Compute_Number_Of_Clusters (  )  [private]

Definition at line 226 of file GridCommLB.C.

References Num_PEs, and PE_Data.

Referenced by work().

void GridCommLB::Initialize_Object_Data ( CentralLB::LDStats stats  )  [private]

void GridCommLB::Examine_InterObject_Messages ( CentralLB::LDStats stats  )  [private]

void GridCommLB::Map_NonMigratable_Objects_To_PEs (  )  [private]

Definition at line 346 of file GridCommLB.C.

References _lb_args, Assign_Object_To_PE(), Converse::CkMyPe(), CkLBArgs::debug(), Num_Objects, and Object_Data.

Referenced by work().

void GridCommLB::Map_Migratable_Objects_To_PEs ( int  cluster  )  [private]

Definition at line 367 of file GridCommLB.C.

References Assign_Object_To_PE(), Find_Maximum_Object(), and Find_Minimum_PE().

Referenced by work().

int GridCommLB::Find_Maximum_Object ( int  cluster  )  [private]

Definition at line 395 of file GridCommLB.C.

References CK_LDB_GridCommLB_Load_Tolerance, Num_Objects, and Object_Data.

Referenced by Map_Migratable_Objects_To_PEs().

int GridCommLB::Find_Minimum_PE ( int  cluster  )  [private]

void GridCommLB::Assign_Object_To_PE ( int  target_object,
int  target_pe 
) [private]

Definition at line 583 of file GridCommLB.C.

References Object_Data, and PE_Data.

Referenced by Map_Migratable_Objects_To_PEs(), and Map_NonMigratable_Objects_To_PEs().


Field Documentation

Definition at line 75 of file GridCommLB.h.

Referenced by Find_Minimum_PE(), GridCommLB(), and work().

Definition at line 76 of file GridCommLB.h.

Referenced by GridCommLB(), Initialize_PE_Data(), and work().

Definition at line 77 of file GridCommLB.h.

Referenced by Find_Maximum_Object(), Find_Minimum_PE(), GridCommLB(), and work().

Definition at line 81 of file GridCommLB.h.

Referenced by work().


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

Generated on Fri May 25 08:03:32 2012 for Charm++ by  doxygen 1.5.5