Skip to content

Commit 25300e5

Browse files
committed
#2245: phase: omit print of post-lb stats when no lb
1 parent 26c8c78 commit 25300e5

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/vt/phase/phase_manager.cc

+11-9
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ void PhaseManager::printSummary(vrt::collection::lb::PhaseInfo* last_phase_info)
299299
auto const total_time = timing::getCurrentTime() - start_time_;
300300
vt_print(
301301
phase,
302-
"phase={}, duration={}, rank_max_compute_time={}, rank_avg_compute_time={}, imbalance={:.3f}, "
302+
"phase={}, duration={}, rank_max_compute_time={}, rank_avg_compute_time={}, imbalance={:.4f}, "
303303
"grain_max_time={}, migration count={}, lb_name={}\n",
304304
last_phase_info->phase,
305305
total_time,
@@ -311,14 +311,16 @@ void PhaseManager::printSummary(vrt::collection::lb::PhaseInfo* last_phase_info)
311311
lb_name
312312
);
313313

314-
vt_debug_print(
315-
terse, phase,
316-
"POST phase={}, rank_max_compute_time={}, rank_avg_compute_time={}, imbalance={:.3f}\n",
317-
last_phase_info->phase,
318-
TimeType(last_phase_info->max_load_post_lb),
319-
TimeType(last_phase_info->avg_load_post_lb),
320-
last_phase_info->imb_load_post_lb
321-
);
314+
if (last_phase_info->migration_count > 0) {
315+
vt_debug_print(
316+
terse, phase,
317+
"POST phase={}, rank_max_compute_time={}, rank_avg_compute_time={}, imbalance={:.4f}\n",
318+
last_phase_info->phase,
319+
TimeType(last_phase_info->max_load_post_lb),
320+
TimeType(last_phase_info->avg_load_post_lb),
321+
last_phase_info->imb_load_post_lb
322+
);
323+
}
322324

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

0 commit comments

Comments
 (0)