#include <LBSimulation.h>
Public Member Functions | |
LBSimulation (int numPes_) | |
~LBSimulation () | |
void | reset () |
void | SetProcessorLoad (int pe, double load, double bgload) |
void | PrintSimulationResults () |
void | PrintDecisions (LBMigrateMsg *m, char *simFileName, int peCount) |
void | PrintDifferences (LBSimulation *realSim, BaseLB::LDStats *stats) |
Static Public Attributes | |
static int | doSimulation = 0 |
dump file name | |
static char * | dumpFile = (char*)"lbdata.dat" |
number of steps to dump | |
static int | dumpStep = -1 |
static int | dumpStepSize = 1 |
first step number to dump | |
static int | simStep = -1 |
flag if do simulation | |
static int | simStepSize = 1 |
first step number to simulate | |
static int | simProcs = 0 |
number of steps to simulate | |
static int | procsChanged = 0 |
simulation target procs | |
static int | showDecisionsOnly = 0 |
flag if the number of procs has been changed | |
Private Attributes | |
LBInfo | lbinfo |
int | numPes |
Friends | |
class | CentralLB |
Definition at line 9 of file LBSimulation.h.
LBSimulation::LBSimulation | ( | int | numPes_ | ) |
Definition at line 249 of file LBSimulation.C.
LBSimulation::~LBSimulation | ( | ) |
Definition at line 253 of file LBSimulation.C.
void LBSimulation::reset | ( | void | ) |
Definition at line 257 of file LBSimulation.C.
References LBInfo::clear(), and lbinfo.
Referenced by CentralLB::simulationRead().
void LBSimulation::SetProcessorLoad | ( | int | pe, | |
double | load, | |||
double | bgload | |||
) |
Definition at line 262 of file LBSimulation.C.
References LBInfo::bgLoads, lbinfo, numPes, and LBInfo::peLoads.
void LBSimulation::PrintSimulationResults | ( | ) |
Definition at line 269 of file LBSimulation.C.
References lbinfo, and LBInfo::print().
Referenced by CentralLB::simulationRead().
void LBSimulation::PrintDecisions | ( | LBMigrateMsg * | m, | |
char * | simFileName, | |||
int | peCount | |||
) |
Definition at line 274 of file LBSimulation.C.
References LDObjHandle::id, malloc(), LBMigrateMsg::moves, LBMigrateMsg::n_moves, MigrateInfo::obj, and MigrateInfo::to_pe.
Referenced by CentralLB::simulationRead().
void LBSimulation::PrintDifferences | ( | LBSimulation * | realSim, | |
BaseLB::LDStats * | stats | |||
) |
Definition at line 288 of file LBSimulation.C.
References CmiPrintf(), lbinfo, numPes, LBInfo::peLoads, and BaseLB::LDStats::procs.
Referenced by CentralLB::simulationRead().
friend class CentralLB [friend] |
Definition at line 33 of file LBSimulation.h.
int LBSimulation::doSimulation = 0 [static] |
dump file name
Definition at line 12 of file LBSimulation.h.
Referenced by _loadbalancerInit(), LBDBInit::LBDBInit(), and CentralLB::LoadBalance().
char * LBSimulation::dumpFile = (char*)"lbdata.dat" [static] |
number of steps to dump
Definition at line 13 of file LBSimulation.h.
Referenced by _loadbalancerInit(), CentralLB::simulationRead(), and CentralLB::simulationWrite().
int LBSimulation::dumpStep = -1 [static] |
Definition at line 14 of file LBSimulation.h.
Referenced by _loadbalancerInit(), and CentralLB::simulationWrite().
int LBSimulation::dumpStepSize = 1 [static] |
first step number to dump
Definition at line 15 of file LBSimulation.h.
Referenced by _loadbalancerInit(), and CentralLB::simulationWrite().
int LBSimulation::simStep = -1 [static] |
flag if do simulation
Definition at line 16 of file LBSimulation.h.
Referenced by _loadbalancerInit(), and CentralLB::simulationRead().
int LBSimulation::simStepSize = 1 [static] |
first step number to simulate
Definition at line 17 of file LBSimulation.h.
Referenced by _loadbalancerInit(), and CentralLB::simulationRead().
int LBSimulation::simProcs = 0 [static] |
number of steps to simulate
Definition at line 18 of file LBSimulation.h.
Referenced by _loadbalancerInit(), BaseLB::LDStats::pup(), CentralLB::readStatsMsgs(), and CentralLB::simulationRead().
int LBSimulation::procsChanged = 0 [static] |
simulation target procs
Definition at line 19 of file LBSimulation.h.
Referenced by BaseLB::LDStats::pup(), CentralLB::readStatsMsgs(), and CentralLB::simulationRead().
int LBSimulation::showDecisionsOnly = 0 [static] |
flag if the number of procs has been changed
Definition at line 21 of file LBSimulation.h.
Referenced by _loadbalancerInit(), and CentralLB::simulationRead().
LBInfo LBSimulation::lbinfo [private] |
Definition at line 31 of file LBSimulation.h.
Referenced by CentralLB::findSimResults(), PrintDifferences(), PrintSimulationResults(), reset(), and SetProcessorLoad().
int LBSimulation::numPes [private] |
Definition at line 32 of file LBSimulation.h.
Referenced by CentralLB::findSimResults(), PrintDifferences(), and SetProcessorLoad().