Skip to content

Commit

Permalink
#1659: lb: use more general language
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Dec 6, 2022
1 parent 310cdd4 commit f7c1611
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/vt/vrt/collection/balance/lb_invoke/lb_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -665,21 +665,21 @@ void LBManager::computeStatistics(
));

if (strategy_specific_model_) {
auto total_work_from_model = 0.;
std::vector<balance::LoadData> obj_work_model;
auto rank_work_modeled = 0.;
std::vector<balance::LoadData> obj_work_modeled;
for (auto elm : *strategy_specific_model_) {
auto work = strategy_specific_model_->getModeledLoad(elm, when);
obj_work_model.emplace_back(
obj_work_modeled.emplace_back(
LoadData{lb::Statistic::Object_work_modeled, work}
);
total_work_from_model += work;
rank_work_modeled += work;
}

lstats.emplace_back(
LoadData{lb::Statistic::Rank_work_modeled, total_work_from_model}
LoadData{lb::Statistic::Rank_work_modeled, rank_work_modeled}
);
lstats.emplace_back(reduceVec(
lb::Statistic::Object_work_modeled, std::move(obj_work_model)
lb::Statistic::Object_work_modeled, std::move(obj_work_modeled)
));
}

Expand Down

0 comments on commit f7c1611

Please sign in to comment.