PPL Logo

GridHybridLB Class Reference

#include <GridHybridLB.h>

Inheritance diagram for GridHybridLB:

Inheritance graph
[legend]
Collaboration diagram for GridHybridLB:

Collaboration graph
[legend]

Public Member Functions

 GridHybridLB (const CkLBOptions &)
 GridHybridLB (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 Initialize_Cluster_Data ()
void Partition_Objects_Into_Clusters (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_GridHybridLB_Mode
int CK_LDB_GridHybridLB_Background_Load
double CK_LDB_GridHybridLB_Load_Tolerance
int Num_PEs
int Num_Objects
int Num_Clusters
PE_Data_TPE_Data
Object_Data_TObject_Data
Cluster_Data_TCluster_Data

Detailed Description

Definition at line 80 of file GridHybridLB.h.


Constructor & Destructor Documentation

GridHybridLB::GridHybridLB ( const CkLBOptions  ) 

GridHybridLB::GridHybridLB ( CkMigrateMessage msg  ) 

Definition at line 60 of file GridHybridLB.C.

References CK_LDB_GridHybridLB_Background_Load, CK_LDB_GridHybridLB_Load_Tolerance, CK_LDB_GridHybridLB_Mode, manager_init(), and value.

Here is the call graph for this function:


Member Function Documentation

bool GridHybridLB::QueryBalanceNow ( int  step  ) 

Definition at line 94 of file GridHybridLB.C.

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

Here is the call graph for this function:

void GridHybridLB::work ( LDStats *  stats  ) 

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

Definition at line 88 of file GridHybridLB.h.

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

Definition at line 116 of file GridHybridLB.C.

Referenced by Initialize_Object_Data(), and Initialize_PE_Data().

Here is the caller graph for this function:

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

Definition at line 126 of file GridHybridLB.C.

References PE_Data_T::available, CK_LDB_GridHybridLB_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 GridHybridLB::Available_PE_Count (  )  [private]

Definition at line 166 of file GridHybridLB.C.

References Num_PEs, and PE_Data.

Referenced by work().

Here is the caller graph for this function:

int GridHybridLB::Compute_Number_Of_Clusters (  )  [private]

Definition at line 186 of file GridHybridLB.C.

References Num_PEs, and PE_Data.

Referenced by work().

Here is the caller graph for this function:

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

Definition at line 210 of file GridHybridLB.C.

References _lb_args, Converse::CkMyPe(), CkLBArgs::debug(), 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 GridHybridLB::Initialize_Cluster_Data (  )  [private]

Definition at line 242 of file GridHybridLB.C.

References Cluster_Data, Num_Clusters, Num_PEs, and PE_Data.

Referenced by work().

Here is the caller graph for this function:

void GridHybridLB::Partition_Objects_Into_Clusters ( CentralLB::LDStats *  stats  )  [private]

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

Definition at line 527 of file GridHybridLB.C.

References _LDCommData::from_proc(), _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 GridHybridLB::Map_NonMigratable_Objects_To_PEs (  )  [private]

Definition at line 593 of file GridHybridLB.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 GridHybridLB::Map_Migratable_Objects_To_PEs ( int  cluster  )  [private]

Definition at line 614 of file GridHybridLB.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 GridHybridLB::Find_Maximum_Object ( int  cluster  )  [private]

Definition at line 642 of file GridHybridLB.C.

References CK_LDB_GridHybridLB_Load_Tolerance, Num_Objects, and Object_Data.

Referenced by Map_Migratable_Objects_To_PEs().

Here is the caller graph for this function:

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

Definition at line 717 of file GridHybridLB.C.

References _lb_args, CK_LDB_GridHybridLB_Load_Tolerance, CK_LDB_GridHybridLB_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 GridHybridLB::Assign_Object_To_PE ( int  target_object,
int  target_pe 
) [private]

Definition at line 830 of file GridHybridLB.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 106 of file GridHybridLB.h.

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

Definition at line 107 of file GridHybridLB.h.

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

Definition at line 111 of file GridHybridLB.h.

Referenced by Initialize_Cluster_Data(), Partition_Objects_Into_Clusters(), and work().

Definition at line 114 of file GridHybridLB.h.

Referenced by Initialize_Cluster_Data(), Partition_Objects_Into_Clusters(), and work().


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

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