Skip to content

Commit

Permalink
#1672: lb: use alpha and gamma when calculating load
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Mar 11, 2022
1 parent c4c71ab commit 3c0408e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vt/vrt/collection/balance/temperedlb/temperedlb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,10 @@ void TemperedLB::doLBStages(TimeType start_imb) {
cur_objs_.clear();
for (auto obj : *load_model_) {
if (obj.isMigratable()) {
cur_objs_[obj] = load_model_->getWork(
// TODO: `beta_ * communication` component is still missing here
cur_objs_[obj] = alpha_ * load_model_->getWork(
obj, {balance::PhaseOffset::NEXT_PHASE, balance::PhaseOffset::WHOLE_PHASE}
);
) + gamma_;
}
}
this_new_load_ = this_load;
Expand Down

0 comments on commit 3c0408e

Please sign in to comment.