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)
bool 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 48 of file GridCommLB.h.


Constructor & Destructor Documentation

GridCommLB::GridCommLB ( const CkLBOptions  ) 

GridCommLB::GridCommLB ( CkMigrateMessage msg  ) 

Definition at line 92 of file GridCommLB.C.

References CK_LDB_GridCommLB_Background_Load, CK_LDB_GridCommLB_Load_Tolerance, CK_LDB_GridCommLB_Mode, manager_init(), and value.

Here is the call graph for this function:


Member Function Documentation

bool GridCommLB::QueryBalanceNow ( int  step  ) 

Definition at line 126 of file GridCommLB.C.

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

Here is the call graph for this function:

void GridCommLB::work ( LDStats *  stats  ) 

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

Definition at line 56 of file GridCommLB.h.

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

Definition at line 148 of file GridCommLB.C.

Referenced by Examine_InterObject_Messages(), Initialize_Object_Data(), and Initialize_PE_Data().

Here is the caller graph for this function:

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

Definition at line 164 of file GridCommLB.C.

References PE_Data_T::available, CK_LDB_GridCommLB_Background_Load, Get_Cluster(), Num_PEs, and PE_Data.

Referenced by work().

Here is the call graph for this function:

Here is the caller graph for this function:

int GridCommLB::Available_PE_Count (  )  [private]

Definition at line 204 of file GridCommLB.C.

References Num_PEs, and PE_Data.

Referenced by work().

Here is the caller graph for this function:

int GridCommLB::Compute_Number_Of_Clusters (  )  [private]

Definition at line 224 of file GridCommLB.C.

References Num_PEs, and PE_Data.

Referenced by work().

Here is the caller graph for this function:

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

Definition at line 248 of file GridCommLB.C.

References Get_Cluster(), Object_Data_T::migratable, Num_Objects, and Object_Data.

Referenced by work().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 271 of file GridCommLB.C.

References _LDCommData::from_proc(), Get_Cluster(), _LDCommDesc::get_destObj(), _LDCommDesc::get_destObjs(), _LDCommDesc::get_type(), _LDCommData::messages, Num_Objects, Object_Data, _LDCommData::receiver, _LDCommData::recv_type(), and _LDCommData::sender.

Referenced by work().

Here is the call graph for this function:

Here is the caller graph for this function:

void GridCommLB::Map_NonMigratable_Objects_To_PEs (  )  [private]

Definition at line 344 of file GridCommLB.C.

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

Referenced by work().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 365 of file GridCommLB.C.

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

Referenced by work().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 393 of file GridCommLB.C.

References CK_LDB_GridCommLB_Load_Tolerance, Num_Objects, and Object_Data.

Referenced by Map_Migratable_Objects_To_PEs().

Here is the caller graph for this function:

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

Definition at line 468 of file GridCommLB.C.

References _lb_args, CK_LDB_GridCommLB_Load_Tolerance, CK_LDB_GridCommLB_Mode, Converse::CkMyPe(), CkLBArgs::debug(), Num_PEs, and PE_Data.

Referenced by Map_Migratable_Objects_To_PEs().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 581 of file GridCommLB.C.

References Object_Data, and PE_Data.

Referenced by Map_Migratable_Objects_To_PEs(), and Map_NonMigratable_Objects_To_PEs().

Here is the caller graph for this function:


Field Documentation

Definition at line 71 of file GridCommLB.h.

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

Definition at line 72 of file GridCommLB.h.

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

Definition at line 73 of file GridCommLB.h.

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

Definition at line 77 of file GridCommLB.h.

Referenced by work().


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

Generated on Mon Sep 21 08:25:18 2020 for Charm++ by  doxygen 1.5.5