Skip to content

Commit

Permalink
Merge pull request #2246 from DARMA-tasking/2245-fix-postlb-statistics
Browse files Browse the repository at this point in the history
2245: phase: omit print of post-lb stats when no migration
  • Loading branch information
nlslatt authored Jan 26, 2024
2 parents b736aaa + fc4f110 commit 0b42e49
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/vt/phase/phase_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void PhaseManager::printSummary(vrt::collection::lb::PhaseInfo* last_phase_info)
auto const total_time = timing::getCurrentTime() - start_time_;
vt_print(
phase,
"phase={}, duration={}, rank_max_compute_time={}, rank_avg_compute_time={}, imbalance={:.3f}, "
"phase={}, duration={}, rank_max_compute_time={}, rank_avg_compute_time={}, imbalance={:.4f}, "
"grain_max_time={}, migration count={}, lb_name={}\n",
last_phase_info->phase,
total_time,
Expand All @@ -311,14 +311,16 @@ void PhaseManager::printSummary(vrt::collection::lb::PhaseInfo* last_phase_info)
lb_name
);

vt_debug_print(
terse, phase,
"POST phase={}, rank_max_compute_time={}, rank_avg_compute_time={}, imbalance={:.3f}\n",
last_phase_info->phase,
TimeType(last_phase_info->max_load_post_lb),
TimeType(last_phase_info->avg_load_post_lb),
last_phase_info->imb_load_post_lb
);
if (last_phase_info->migration_count > 0) {
vt_debug_print(
terse, phase,
"POST phase={}, rank_max_compute_time={}, rank_avg_compute_time={}, imbalance={:.4f}\n",
last_phase_info->phase,
TimeType(last_phase_info->max_load_post_lb),
TimeType(last_phase_info->avg_load_post_lb),
last_phase_info->imb_load_post_lb
);
}

auto compute_speedup = [](double t1, double t2) -> double {
return t1 / t2;
Expand Down

0 comments on commit 0b42e49

Please sign in to comment.