Skip to content

Commit

Permalink
#589: lb: do not call LB on single node (fixes FPE in stats)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Nov 25, 2019
1 parent e01e2ee commit 250aa20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vt/vrt/collection/balance/elm_stats.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ template <typename ColT>

auto lb_man = LBManager::getProxy();

auto const single_node = theContext()->getNumNodes() == 1;
auto const lb = lb_man.get()->decideLBToRun(cur_phase);
bool const must_run_lb = lb != LBType::NoLB;
bool const must_run_lb = lb != LBType::NoLB and not single_node;
auto const num_collections = theCollection()->numCollections<>();
auto const do_sync = msg->doSync();
auto nmsg = makeMessage<MsgType>(cur_phase,lb,msg->manual(),num_collections);
Expand Down

0 comments on commit 250aa20

Please sign in to comment.