Skip to content

Commit

Permalink
#1279: gossiplb: order objects by object id
Browse files Browse the repository at this point in the history
  • Loading branch information
nlslatt committed Mar 2, 2021
1 parent 66e7335 commit aa48370
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/gossiplb/gossiplb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void GossipLB::runLB() {
}

void GossipLB::doLBStages(TimeType start_imb) {
std::unordered_map<ObjIDType, TimeType> best_objs;
decltype(this->cur_objs_) best_objs;
LoadType best_load = 0;
TimeType best_imb = start_imb+1;
uint16_t best_trial = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/gossiplb/gossiplb.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct GossipLB : BaseLB {
std::unordered_set<NodeType> selected_ = {};
std::unordered_set<NodeType> underloaded_ = {};
std::unordered_set<NodeType> new_underloaded_ = {};
std::unordered_map<ObjIDType, TimeType> cur_objs_ = {};
std::map<ObjIDType, TimeType> cur_objs_ = {};
LoadType this_new_load_ = 0.0;
TimeType new_imbalance_ = 0.0;
CriterionEnum criterion_ = CriterionEnum::ModifiedGrapevine;
Expand Down

0 comments on commit aa48370

Please sign in to comment.