From 00b09fbb435fa5bece77c95435cb66e1f05ddca8 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 24 Mar 2019 11:18:38 +0000 Subject: HeAP: Per-iteration output all on one line Signed-off-by: David Shah --- common/placer_heap.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'common/placer_heap.cc') diff --git a/common/placer_heap.cc b/common/placer_heap.cc index 037d8e47..26a49c6d 100644 --- a/common/placer_heap.cc +++ b/common/placer_heap.cc @@ -164,7 +164,7 @@ class HeAPPlacer log_info("Initial placer iter %d, hpwl = %d\n", i, int(hpwl)); } - wirelen_t solved_hpwl = 0, legal_hpwl = 0, best_hpwl = std::numeric_limits::max(); + wirelen_t solved_hpwl = 0, spread_hpwl = 0, legal_hpwl = 0, best_hpwl = std::numeric_limits::max(); int iter = 0, stalled = 0; std::vector> solution; @@ -213,23 +213,21 @@ class HeAPPlacer solve_time += std::chrono::duration(solve_endt - solve_startt).count(); update_all_chains(); solved_hpwl = total_hpwl(); - log_info("Solved HPWL = %d\n", int(solved_hpwl)); update_all_chains(); for (auto type : sorted(run)) CutSpreader(this, type).run(); update_all_chains(); - legal_hpwl = total_hpwl(); - log_info("Spread HPWL = %d\n", int(legal_hpwl)); + spread_hpwl = total_hpwl(); legalise_placement_strict(true); update_all_chains(); legal_hpwl = total_hpwl(); - log_info("Legalised HPWL = %d\n", int(legal_hpwl)); auto run_stopt = std::chrono::high_resolution_clock::now(); - log_info(" %s runtime: %.02fs\n", (run.size() > 1 ? "ALL" : run.begin()->c_str(ctx)), - std::chrono::duration(run_stopt - run_startt).count()); + log_info("Iter %d type %s: HPWL solved = %d, spread = %d, legal = %d; time = %.02fs\n", iter, + (run.size() > 1 ? "ALL" : run.begin()->c_str(ctx)), int(solved_hpwl), int(spread_hpwl), + int(legal_hpwl), std::chrono::duration(run_stopt - run_startt).count()); } if (ctx->timing_driven) -- cgit v1.2.3