WSLB Class Reference
[Charm++ Load Balancing Framework]

#include <WSLB.h>

Inheritance diagram for WSLB:

Inheritance graph
[legend]
Collaboration diagram for WSLB:

Collaboration graph
[legend]

Public Member Functions

 WSLB (const CkLBOptions &)
 WSLB (CkMigrateMessage *m)
 ~WSLB ()
void AtSync (void)
void ReceiveStats (WSLBStatsMsg *)
void ResumeClients ()
void ReceiveMigration (LBMigrateMsg *)
void Migrated (LDObjHandle h, int waitBarrier)
void MigrationDone (void)
int step ()

Static Public Member Functions

static void staticAtSync (void *)
static void staticMigrated (void *me, LDObjHandle h, int waitBarrier)

Protected Member Functions

virtual CmiBool QueryBalanceNow (int)
virtual LBMigrateMsgStrategy (LDStats *stats, int count)
virtual int num_neighbors ()
virtual void neighbors (int *_n)

Protected Attributes

struct {
   int   proc_speed
   double   total_walltime
   double   total_cputime
   double   idletime
   double   bg_walltime
   double   bg_cputime
   int   obj_data_sz
   LDObjData *   objData
   int   comm_data_sz
   LDCommData *   commData
   double   obj_walltime
   double   obj_cputime
myStats

Private Member Functions

void FindNeighbors ()
WSLBStatsMsgAssembleStats ()

Private Attributes

CProxy_WSLB thisProxy
LBTopologytopo
int mystep
int stats_msg_count
WSLBStatsMsg ** statsMsgsList
LDStatsstatsDataList
int migrates_completed
int migrates_expected
LBMigrateMsg ** mig_msgs
int mig_msgs_received
int mig_msgs_expected
intneighbor_pes
int receive_stats_ready
double start_lb_time
double first_step_time
double usage
double usage_int_err
CmiBool vacate

Data Structures

struct  LDStats

Detailed Description

Definition at line 25 of file WSLB.h.


Constructor & Destructor Documentation

WSLB::WSLB ( CkMigrateMessage m  )  [inline]

Definition at line 29 of file WSLB.h.


Member Function Documentation

int WSLB::step (  )  [inline]

Reimplemented from BaseLB.

Definition at line 43 of file WSLB.h.

References mystep.

Referenced by AtSync(), MigrationDone(), and QueryBalanceNow().

virtual int WSLB::num_neighbors (  )  [inline, protected, virtual]

Definition at line 63 of file WSLB.h.

References Converse::CkNumPes().

virtual void WSLB::neighbors ( int _n  )  [inline, protected, virtual]

Definition at line 66 of file WSLB.h.

References Converse::CkMyPe(), and Converse::CkNumPes().


Field Documentation

int WSLB::proc_speed [protected]

Definition at line 85 of file WSLB.h.

Referenced by Strategy().

double WSLB::total_walltime [protected]

Definition at line 86 of file WSLB.h.

double WSLB::total_cputime [protected]

Definition at line 87 of file WSLB.h.

double WSLB::idletime [protected]

Definition at line 88 of file WSLB.h.

double WSLB::bg_walltime [protected]

Definition at line 89 of file WSLB.h.

double WSLB::bg_cputime [protected]

Definition at line 90 of file WSLB.h.

int WSLB::obj_data_sz [protected]

Definition at line 91 of file WSLB.h.

LDObjData* WSLB::objData [protected]

Definition at line 92 of file WSLB.h.

int WSLB::comm_data_sz [protected]

Definition at line 93 of file WSLB.h.

LDCommData* WSLB::commData [protected]

Definition at line 94 of file WSLB.h.

double WSLB::obj_walltime [protected]

Definition at line 95 of file WSLB.h.

double WSLB::obj_cputime [protected]

Definition at line 96 of file WSLB.h.

struct { ... } WSLB::myStats [protected]

Referenced by AssembleStats(), Strategy(), and WSLB().

CProxy_WSLB WSLB::thisProxy [private]

Definition at line 103 of file WSLB.h.

Referenced by AtSync(), MigrationDone(), ReceiveStats(), and WSLB().

LBTopology* WSLB::topo [private]

Definition at line 104 of file WSLB.h.

Referenced by FindNeighbors(), and WSLB().

int WSLB::mystep [private]

Definition at line 105 of file WSLB.h.

Referenced by MigrationDone(), step(), and WSLB().

int WSLB::stats_msg_count [private]

Definition at line 106 of file WSLB.h.

Referenced by ReceiveStats(), and WSLB().

WSLBStatsMsg** WSLB::statsMsgsList [private]

Definition at line 107 of file WSLB.h.

Referenced by FindNeighbors(), ReceiveStats(), WSLB(), and ~WSLB().

LDStats* WSLB::statsDataList [private]

Definition at line 108 of file WSLB.h.

Referenced by FindNeighbors(), ReceiveStats(), WSLB(), and ~WSLB().

int WSLB::migrates_completed [private]

Definition at line 109 of file WSLB.h.

Referenced by Migrated(), MigrationDone(), and WSLB().

int WSLB::migrates_expected [private]

Definition at line 110 of file WSLB.h.

Referenced by Migrated(), MigrationDone(), ReceiveMigration(), and WSLB().

LBMigrateMsg** WSLB::mig_msgs [private]

Definition at line 111 of file WSLB.h.

Referenced by FindNeighbors(), ReceiveMigration(), WSLB(), and ~WSLB().

int WSLB::mig_msgs_received [private]

Definition at line 112 of file WSLB.h.

Referenced by ReceiveMigration(), and WSLB().

int WSLB::mig_msgs_expected [private]

Definition at line 113 of file WSLB.h.

Referenced by AtSync(), FindNeighbors(), ReceiveMigration(), and ReceiveStats().

int* WSLB::neighbor_pes [private]

Definition at line 114 of file WSLB.h.

Referenced by AtSync(), FindNeighbors(), ReceiveMigration(), ReceiveStats(), WSLB(), and ~WSLB().

int WSLB::receive_stats_ready [private]

Definition at line 115 of file WSLB.h.

Referenced by ReceiveStats(), and WSLB().

double WSLB::start_lb_time [private]

Definition at line 116 of file WSLB.h.

Referenced by AtSync(), and MigrationDone().

double WSLB::first_step_time [private]

Definition at line 117 of file WSLB.h.

Referenced by QueryBalanceNow().

double WSLB::usage [private]

Definition at line 118 of file WSLB.h.

Referenced by AssembleStats(), Strategy(), and WSLB().

double WSLB::usage_int_err [private]

Definition at line 119 of file WSLB.h.

Referenced by AssembleStats(), and WSLB().

CmiBool WSLB::vacate [private]

Definition at line 120 of file WSLB.h.

Referenced by AssembleStats(), QueryBalanceNow(), Strategy(), and WSLB().


The documentation for this class was generated from the following files:
Generated on Sun Jun 29 13:35:54 2008 for Charm++ by  doxygen 1.5.1