Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2245: phase: omit print of post-lb stats when no migration #2246

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading