Skip to content

Commit

Permalink
#276: lb: make reduce vector const&
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jun 13, 2023
1 parent f7a945d commit 4b056b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/lb_invoke/lb_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ void LBManager::finishedLB(PhaseType phase) {
destroyLB();
}

void LBManager::statsHandler(std::vector<balance::LoadData> in_stat_vec) {
void LBManager::statsHandler(std::vector<balance::LoadData> const& in_stat_vec) {
// use the raw loads if they were computed, otherwise fall back on model loads
lb::Statistic rank_statistic = lb::Statistic::Rank_load_modeled;
lb::Statistic obj_statistic = lb::Statistic::Object_load_modeled;
Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/lb_invoke/lb_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ struct LBManager : runtime::component::Component<LBManager> {
vt::Callback<std::vector<balance::LoadData>> cb
);

void statsHandler(std::vector<balance::LoadData> in_stat_vec);
void statsHandler(std::vector<balance::LoadData> const& in_stat_vec);

private:
bool isCollectiveComm(elm::CommCategory cat) const;
Expand Down

0 comments on commit 4b056b0

Please sign in to comment.