Skip to content

Commit

Permalink
#1570: LB: move debug print down to fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Oct 13, 2021
1 parent f9b30aa commit d0e704a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/vt/vrt/collection/balance/temperedlb/temperedlb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,6 @@ void TemperedLB::doLBStages(TimeType start_imb) {
for (iter_ = 0; iter_ < num_iters_; iter_++) {
bool first_iter = iter_ == 0;

vt_debug_print(
normal, temperedlb,
"TemperedLB::doLBStages: (before) running trial={}, iter={}, "
"num_iters={}, load={}, new_load={}\n",
trial_, iter_, num_iters_, this_load, this_new_load_
);

if (first_iter) {
// Copy this node's object assignments to a local, mutable copy
cur_objs_.clear();
Expand All @@ -496,6 +489,13 @@ void TemperedLB::doLBStages(TimeType start_imb) {
is_overloaded_ = is_underloaded_ = false;
}

vt_debug_print(
normal, temperedlb,
"TemperedLB::doLBStages: (before) running trial={}, iter={}, "
"num_iters={}, load={}, new_load={}\n",
trial_, iter_, num_iters_, this_load, this_new_load_
);

if (isOverloaded(this_new_load_)) {
is_overloaded_ = true;
} else if (isUnderloaded(this_new_load_)) {
Expand Down

0 comments on commit d0e704a

Please sign in to comment.