#include <LBDatabase.h>
Definition at line 179 of file LBDatabase.h.
LBDatabase::LBDatabase | ( | void | ) | [inline] |
Definition at line 181 of file LBDatabase.h.
References init().
LBDatabase::LBDatabase | ( | CkMigrateMessage * | m | ) | [inline] |
Definition at line 182 of file LBDatabase.h.
References init().
LBDatabase::~LBDatabase | ( | ) | [inline] |
static LBDatabase* LBDatabase::Object | ( | ) | [inline, static] |
Definition at line 188 of file LBDatabase.h.
References CkLocalBranch().
Referenced by CkStartLB(), LBChangePredictor(), LBClearLoads(), LBDatabaseObj(), LBSetPeriod(), LBTurnInstrumentOff(), LBTurnInstrumentOn(), LBTurnPredictorOff(), LBTurnPredictorOn(), CentralLB::MigrationDoneImpl(), CentralLB::printStrategyStats(), PVT::PVT(), TurnManualLBOff(), and TurnManualLBOn().
LBDB* LBDatabase::getLBDB | ( | void | ) | [inline] |
Definition at line 190 of file LBDatabase.h.
References LDHandle::handle, and myLDHandle.
Referenced by MetaBalancer::AddLoad(), MetaBalancer::AdjustCountForDeadContributor(), MetaBalancer::ContributeStats(), controlPointManager::gotoNextPhase(), MetaBalancer::HandleAdaptiveNoObj(), and MetaBalancer::TriggerAdaptiveReduction().
LDOMHandle LBDatabase::RegisterOM | ( | LDOMid | userID, | |
void * | userptr, | |||
LDCallbacks | cb | |||
) | [inline] |
Definition at line 200 of file LBDatabase.h.
References LDRegisterOM(), and myLDHandle.
void LBDatabase::UnregisterOM | ( | LDOMHandle | omHandle | ) | [inline] |
Definition at line 204 of file LBDatabase.h.
References LDUnregisterOM(), and myLDHandle.
Referenced by CkLocMgr::~CkLocMgr().
void LBDatabase::RegisteringObjects | ( | LDOMHandle | _om | ) | [inline] |
Definition at line 208 of file LBDatabase.h.
References LDRegisteringObjects().
Referenced by CkLocMgr::recvAtSync().
void LBDatabase::DoneRegisteringObjects | ( | LDOMHandle | _om | ) | [inline] |
Definition at line 212 of file LBDatabase.h.
References LDDoneRegisteringObjects().
Referenced by CkLocMgr::dummyResumeFromSync().
LDObjHandle LBDatabase::RegisterObj | ( | LDOMHandle | h, | |
CmiUInt8 | id, | |||
void * | userptr, | |||
int | migratable | |||
) | [inline] |
Definition at line 218 of file LBDatabase.h.
References LDRegisterObj().
Referenced by CkLocRec::CkLocRec().
void LBDatabase::UnregisterObj | ( | LDObjHandle | h | ) | [inline] |
Definition at line 223 of file LBDatabase.h.
References LDUnregisterObj().
Referenced by _verifyAckRequestHandler(), and CkLocRec::~CkLocRec().
void LBDatabase::ObjTime | ( | LDObjHandle | h, | |
double | walltime, | |||
double | cputime | |||
) | [inline] |
Definition at line 225 of file LBDatabase.h.
References LDObjTime().
void LBDatabase::GetObjLoad | ( | LDObjHandle & | h, | |
LBRealType & | walltime, | |||
LBRealType & | cputime | |||
) | [inline] |
Definition at line 229 of file LBDatabase.h.
References LDGetObjLoad().
Referenced by CkLocRec::getObjTime().
void* LBDatabase::GetDBObjUserData | ( | LDObjHandle & | h, | |
int | idx | |||
) | [inline] |
Definition at line 234 of file LBDatabase.h.
References LDDBObjUserData().
Referenced by CkLocRec::getObjUserData().
void LBDatabase::QueryKnownObjLoad | ( | LDObjHandle & | h, | |
LBRealType & | walltime, | |||
LBRealType & | cputime | |||
) | [inline] |
Definition at line 240 of file LBDatabase.h.
References LDQueryKnownObjLoad().
int LBDatabase::RunningObject | ( | LDObjHandle * | _o | ) | const [inline] |
Definition at line 244 of file LBDatabase.h.
References LDHandle::handle, myLDHandle, LBDB::ObjIsRunning(), and LBDB::RunningObj().
Referenced by _deliverForBocMsg(), CkLocMgr::deliverMsg(), and SystemLoad::SystemLoad().
const LDObjHandle* LBDatabase::RunningObject | ( | ) | const [inline] |
Definition at line 255 of file LBDatabase.h.
References LDHandle::handle, myLDHandle, LBDB::ObjIsRunning(), and LBDB::RunningObj().
const LDObjHandle& LBDatabase::GetObjHandle | ( | int | idx | ) | [inline] |
Definition at line 264 of file LBDatabase.h.
References LDGetObjHandle(), and myLDHandle.
void LBDatabase::ObjectStart | ( | const LDObjHandle & | _h | ) | [inline] |
Definition at line 265 of file LBDatabase.h.
References LDObjectStart().
Referenced by _deliverForBocMsg(), CkLocMgr::deliverMsg(), CkLocRec::startTiming(), CkMigratable::timingAfterCall(), and SystemLoad::~SystemLoad().
void LBDatabase::ObjectStop | ( | const LDObjHandle & | _h | ) | [inline] |
Definition at line 266 of file LBDatabase.h.
References LDObjectStop().
Referenced by _deliverForBocMsg(), CkLocMgr::deliverMsg(), CkLocRec::stopTiming(), SystemLoad::SystemLoad(), and CkMigratable::timingBeforeCall().
void LBDatabase::Send | ( | const LDOMHandle & | _om, | |
const CmiUInt8 | _id, | |||
unsigned int | _b, | |||
int | _p, | |||
int | force = 0 | |||
) | [inline] |
Definition at line 267 of file LBDatabase.h.
References LDSend().
Referenced by CkLocMgr::deliverMsg().
void LBDatabase::MulticastSend | ( | const LDOMHandle & | _om, | |
CmiUInt8 * | _ids, | |||
int | _n, | |||
unsigned int | _b, | |||
int | _nMsgs = 1 | |||
) | [inline] |
Definition at line 270 of file LBDatabase.h.
References LDMulticastSend().
Referenced by CkMulticastMgr::sendToSection().
void LBDatabase::NonMigratable | ( | LDObjHandle | h | ) | [inline] |
Definition at line 275 of file LBDatabase.h.
References LDNonMigratable().
Referenced by CkLocRec::setMigratable().
void LBDatabase::Migratable | ( | LDObjHandle | h | ) | [inline] |
Definition at line 276 of file LBDatabase.h.
References LDMigratable().
Referenced by CkLocRec::setMigratable().
void LBDatabase::setPupSize | ( | LDObjHandle | h, | |
size_t | pup_size | |||
) | [inline] |
Definition at line 277 of file LBDatabase.h.
References LDSetPupSize().
Referenced by CkLocRec::setPupSize().
void LBDatabase::UseAsyncMigrate | ( | LDObjHandle | h, | |
bool | flag | |||
) | [inline] |
Definition at line 278 of file LBDatabase.h.
References LDAsyncMigrate().
Referenced by CkLocRec::AsyncMigrate().
void LBDatabase::DumpDatabase | ( | void | ) | [inline] |
Definition at line 279 of file LBDatabase.h.
References LDDumpDatabase(), and myLDHandle.
void LBDatabase::NotifyMigrated | ( | LDMigratedFn | fn, | |
void * | data | |||
) | [inline] |
Definition at line 284 of file LBDatabase.h.
References LDNotifyMigrated(), and myLDHandle.
void LBDatabase::AddStartLBFn | ( | LDStartLBFn | fn, | |
void * | data | |||
) | [inline] |
Definition at line 289 of file LBDatabase.h.
References LDAddStartLBFn(), and myLDHandle.
void LBDatabase::RemoveStartLBFn | ( | LDStartLBFn | fn | ) | [inline] |
Definition at line 294 of file LBDatabase.h.
References LDRemoveStartLBFn(), and myLDHandle.
void LBDatabase::StartLB | ( | ) | [inline] |
Definition at line 299 of file LBDatabase.h.
References LDStartLB(), and myLDHandle.
Referenced by CkStartLB().
void LBDatabase::AddMigrationDoneFn | ( | LDMigrationDoneFn | fn, | |
void * | data | |||
) | [inline] |
Definition at line 301 of file LBDatabase.h.
References LDAddMigrationDoneFn(), and myLDHandle.
Referenced by PVT::PVT().
void LBDatabase::RemoveMigrationDoneFn | ( | LDMigrationDoneFn | fn | ) | [inline] |
Definition at line 306 of file LBDatabase.h.
References LDRemoveMigrationDoneFn(), and myLDHandle.
void LBDatabase::MigrationDone | ( | ) | [inline] |
Definition at line 311 of file LBDatabase.h.
References LDMigrationDone(), and myLDHandle.
Referenced by CentralLB::MigrationDoneImpl().
void LBDatabase::TurnManualLBOn | ( | ) | [inline] |
Definition at line 314 of file LBDatabase.h.
References LDTurnManualLBOn(), and myLDHandle.
Referenced by init(), and TurnManualLBOn().
void LBDatabase::TurnManualLBOff | ( | ) | [inline] |
Definition at line 315 of file LBDatabase.h.
References LDTurnManualLBOff(), and myLDHandle.
Referenced by TurnManualLBOff().
void LBDatabase::PredictorOn | ( | LBPredictorFunction * | model | ) | [inline] |
Definition at line 317 of file LBDatabase.h.
References LDTurnPredictorOn(), and myLDHandle.
Referenced by LBTurnPredictorOn().
void LBDatabase::PredictorOn | ( | LBPredictorFunction * | model, | |
int | wind | |||
) | [inline] |
Definition at line 318 of file LBDatabase.h.
References LDTurnPredictorOnWin(), and myLDHandle.
void LBDatabase::PredictorOff | ( | ) | [inline] |
Definition at line 319 of file LBDatabase.h.
References LDTurnPredictorOff(), and myLDHandle.
Referenced by LBTurnPredictorOff().
void LBDatabase::ChangePredictor | ( | LBPredictorFunction * | model | ) | [inline] |
Definition at line 320 of file LBDatabase.h.
References LDTurnPredictorOn(), and myLDHandle.
Referenced by LBChangePredictor().
void LBDatabase::CollectStatsOn | ( | void | ) | [inline] |
Definition at line 322 of file LBDatabase.h.
References LDCollectStatsOn(), and myLDHandle.
Referenced by LBTurnInstrumentOn().
void LBDatabase::CollectStatsOff | ( | void | ) | [inline] |
Definition at line 323 of file LBDatabase.h.
References LDCollectStatsOff(), and myLDHandle.
Referenced by LBTurnInstrumentOff().
int LBDatabase::CollectingStats | ( | void | ) | [inline] |
Definition at line 324 of file LBDatabase.h.
References LDCollectingStats(), and myLDHandle.
int LBDatabase::CollectingCommStats | ( | void | ) | [inline] |
Definition at line 325 of file LBDatabase.h.
References LDCollectingStats(), myLDHandle, and CkLBArgs::traceComm().
Referenced by CkLocMgr::deliverMsg().
void LBDatabase::QueryEstLoad | ( | void | ) | [inline] |
Definition at line 326 of file LBDatabase.h.
References LDQueryEstLoad(), and myLDHandle.
int LBDatabase::GetObjDataSz | ( | void | ) | [inline] |
Definition at line 328 of file LBDatabase.h.
References LDGetObjDataSz(), and myLDHandle.
void LBDatabase::GetObjData | ( | LDObjData * | data | ) | [inline] |
Definition at line 329 of file LBDatabase.h.
References LDGetObjData(), and myLDHandle.
int LBDatabase::GetCommDataSz | ( | void | ) | [inline] |
Definition at line 330 of file LBDatabase.h.
References LDGetCommDataSz(), and myLDHandle.
void LBDatabase::GetCommData | ( | LDCommData * | data | ) | [inline] |
Definition at line 331 of file LBDatabase.h.
References LDGetCommData(), and myLDHandle.
void LBDatabase::GetCommInfo | ( | int & | bytes, | |
int & | msgs, | |||
int & | withinbytes, | |||
int & | outsidebytes, | |||
int & | num_ngh, | |||
int & | hops, | |||
int & | hopbytes | |||
) | [inline] |
Definition at line 333 of file LBDatabase.h.
References LDGetCommInfo(), and myLDHandle.
void LBDatabase::BackgroundLoad | ( | LBRealType * | walltime, | |
LBRealType * | cputime | |||
) | [inline] |
Definition at line 337 of file LBDatabase.h.
References LDBackgroundLoad(), and myLDHandle.
Referenced by MetaBalancer::ContributeStats().
void LBDatabase::IdleTime | ( | LBRealType * | walltime | ) | [inline] |
Definition at line 341 of file LBDatabase.h.
References LDIdleTime(), and myLDHandle.
Referenced by MetaBalancer::ContributeStats().
void LBDatabase::TotalTime | ( | LBRealType * | walltime, | |
LBRealType * | cputime | |||
) | [inline] |
Definition at line 345 of file LBDatabase.h.
References LDTotalTime(), and myLDHandle.
void LBDatabase::GetTime | ( | LBRealType * | total_walltime, | |
LBRealType * | total_cputime, | |||
LBRealType * | idletime, | |||
LBRealType * | bg_walltime, | |||
LBRealType * | bg_cputime | |||
) | [inline] |
Definition at line 349 of file LBDatabase.h.
References LDGetTime(), and myLDHandle.
void LBDatabase::ClearLoads | ( | void | ) | [inline] |
Definition at line 354 of file LBDatabase.h.
References LDClearLoads(), and myLDHandle.
Referenced by BaseLB::flushStates(), and LBClearLoads().
int LBDatabase::Migrate | ( | LDObjHandle | h, | |
int | dest | |||
) | [inline] |
Definition at line 355 of file LBDatabase.h.
References LDMigrate().
void LBDatabase::Migrated | ( | LDObjHandle | h, | |
int | waitBarrier = 1 | |||
) | [inline] |
Definition at line 357 of file LBDatabase.h.
References LDMigrated().
Referenced by CkLocRec::CkLocRec(), and CkLocRec::Migrated().
LDBarrierClient LBDatabase::AddLocalBarrierClient | ( | LDResumeFn | fn, | |
void * | data | |||
) | [inline] |
Definition at line 361 of file LBDatabase.h.
References LDAddLocalBarrierClient(), and myLDHandle.
Referenced by CkMigratable::ckFinishConstruction().
void LBDatabase::RemoveLocalBarrierClient | ( | LDBarrierClient | h | ) | [inline] |
Definition at line 365 of file LBDatabase.h.
References LDRemoveLocalBarrierClient(), and myLDHandle.
Referenced by CkLocMgr::~CkLocMgr(), and CkMigratable::~CkMigratable().
LDBarrierReceiver LBDatabase::AddLocalBarrierReceiver | ( | LDBarrierFn | fn, | |
void * | data | |||
) | [inline] |
Definition at line 369 of file LBDatabase.h.
References LDAddLocalBarrierReceiver(), and myLDHandle.
Referenced by CkMigratable::ckFinishConstruction().
void LBDatabase::RemoveLocalBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 373 of file LBDatabase.h.
References LDRemoveLocalBarrierReceiver(), and myLDHandle.
Referenced by BaseLB::unregister(), CkLocMgr::~CkLocMgr(), and CkMigratable::~CkMigratable().
void LBDatabase::AtLocalBarrier | ( | LDBarrierClient | h | ) | [inline] |
Definition at line 377 of file LBDatabase.h.
References LDAtLocalBarrier(), and myLDHandle.
Referenced by CkMigratable::AtSync(), and CkMigratable::metaLBCallLB().
void LBDatabase::DecreaseLocalBarrier | ( | LDBarrierClient | h, | |
int | c | |||
) | [inline] |
Definition at line 380 of file LBDatabase.h.
References LDDecreaseLocalBarrier(), and myLDHandle.
Referenced by CkLocMgr::~CkLocMgr().
void LBDatabase::LocalBarrierOn | ( | void | ) | [inline] |
Definition at line 383 of file LBDatabase.h.
References LDLocalBarrierOn(), and myLDHandle.
void LBDatabase::LocalBarrierOff | ( | void | ) | [inline] |
Definition at line 384 of file LBDatabase.h.
References LDLocalBarrierOn(), and myLDHandle.
int LBDatabase::ProcessorSpeed | ( | ) | [inline] |
Definition at line 386 of file LBDatabase.h.
References LDProcessorSpeed().
void LBDatabase::SetLBPeriod | ( | double | s | ) | [inline] |
Definition at line 387 of file LBDatabase.h.
References LDSetLBPeriod(), and myLDHandle.
Referenced by LBSetPeriod().
double LBDatabase::GetLBPeriod | ( | ) | [inline] |
Definition at line 388 of file LBDatabase.h.
References LDGetLBPeriod(), and myLDHandle.
void LBDatabase::MetaLBResumeWaitingChares | ( | int | lb_period | ) | [inline] |
Definition at line 390 of file LBDatabase.h.
References LDOMMetaLBResumeWaitingChares(), and myLDHandle.
Referenced by MetaBalancer::LoadBalanceDecisionFinal().
void LBDatabase::MetaLBCallLBOnChares | ( | ) | [inline] |
Definition at line 396 of file LBDatabase.h.
References LDOMMetaLBCallLBOnChares(), and myLDHandle.
Referenced by MetaBalancer::MetaLBCallLBOnChares().
BaseLB** LBDatabase::getLoadBalancers | ( | ) | [inline] |
Definition at line 417 of file LBDatabase.h.
References CkVec< T >::getVec(), and loadbalancers.
int LBDatabase::getNLoadBalancers | ( | ) | [inline] |
char* LBDatabase::availVector | ( | ) | [inline] |
Definition at line 424 of file LBDatabase.h.
References avail_vector.
Referenced by CentralLB::LoadBalance().
int& LBDatabase::new_lbbalancer | ( | ) | [inline] |
Definition at line 427 of file LBDatabase.h.
References new_ld_balancer.
Referenced by CentralLB::ApplyDecision(), and CentralLB::BuildStatsMsg().
LBRealType LBDatabase::myExpectedLoad | ( | ) | [inline] |
Definition at line 434 of file LBDatabase.h.
References Converse::CkMyPe(), LBDatabase::LastLBInfo::expectedLoad, and lastLBInfo.
LBRealType* LBDatabase::expectedLoad | ( | ) | [inline] |
Definition at line 435 of file LBDatabase.h.
References LBDatabase::LastLBInfo::expectedLoad, and lastLBInfo.
int LBDatabase::useMem | ( | ) | [inline] |
Definition at line 436 of file LBDatabase.h.
References LDMemusage(), and myLDHandle.
Referenced by CentralLB::printStrategyStats().
int LBDatabase::step | ( | ) | [inline] |
Definition at line 444 of file LBDatabase.h.
References mystep.
Referenced by BaseLB::step().
void LBDatabase::incStep | ( | ) | [inline] |
int LBDatabase::mystep [private] |
LDHandle LBDatabase::myLDHandle [private] |
Definition at line 408 of file LBDatabase.h.
Referenced by AddLocalBarrierClient(), AddLocalBarrierReceiver(), AddMigrationDoneFn(), AddStartLBFn(), AtLocalBarrier(), BackgroundLoad(), ChangePredictor(), ClearLoads(), CollectingCommStats(), CollectingStats(), CollectStatsOff(), CollectStatsOn(), DecreaseLocalBarrier(), DumpDatabase(), GetCommData(), GetCommDataSz(), GetCommInfo(), getLBDB(), GetLBPeriod(), GetObjData(), GetObjDataSz(), GetObjHandle(), GetTime(), IdleTime(), init(), LocalBarrierOff(), LocalBarrierOn(), MetaLBCallLBOnChares(), MetaLBResumeWaitingChares(), MigrationDone(), NotifyMigrated(), PredictorOff(), PredictorOn(), QueryEstLoad(), RegisterOM(), RemoveLocalBarrierClient(), RemoveLocalBarrierReceiver(), RemoveMigrationDoneFn(), RemoveStartLBFn(), ResumeClients(), RunningObject(), SetLBPeriod(), StartLB(), TotalTime(), TurnManualLBOff(), TurnManualLBOn(), UnregisterOM(), and useMem().
int LBDatabase::new_ld_balancer [private] |
Definition at line 411 of file LBDatabase.h.
Referenced by init(), new_lbbalancer(), and set_avail_vector().
CkVec<BaseLB *> LBDatabase::loadbalancers [private] |
Definition at line 412 of file LBDatabase.h.
Referenced by addLoadbalancer(), getLoadBalancers(), getLoadbalancerTicket(), nextLoadbalancer(), and switchLoadbalancer().
int LBDatabase::nloadbalancers [private] |
Definition at line 413 of file LBDatabase.h.
Referenced by addLoadbalancer(), getLoadbalancerTicket(), getNLoadBalancers(), init(), nextLoadbalancer(), and pup().
MetaBalancer* LBDatabase::metabalancer [private] |
Definition at line 414 of file LBDatabase.h.
Referenced by init(), pup(), ResetAdaptive(), ResumeClients(), SetMigrationCost(), SetStrategyCost(), and UpdateDataAfterLB().