From f89b959b5f56ba8d91e1e7f8a645b267a5a7bb89 Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 2 Jan 2023 09:33:11 +0100 Subject: [PATCH] clangformat Signed-off-by: gatecat --- common/kernel/command.cc | 5 +++-- common/place/placer_heap.cc | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/common/kernel/command.cc b/common/kernel/command.cc index 65aa0299f7..bf78514847 100644 --- a/common/kernel/command.cc +++ b/common/kernel/command.cc @@ -190,7 +190,8 @@ po::options_description CommandHandler::getGeneralOptions() "placer heap criticality exponent (int, default: 2)"); general.add_options()("placer-heap-timingweight", po::value(), "placer heap timing weight (int, default: 10)"); general.add_options()("placer-heap-cell-placement-timeout", po::value(), - "allow placer to attempt up to max(10000, total cells^2 / N) iterations to place a cell (int N, default: 8, 0 for no timeout)"); + "allow placer to attempt up to max(10000, total cells^2 / N) iterations to place a cell (int " + "N, default: 8, 0 for no timeout)"); #if !defined(__wasm) general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement"); @@ -332,7 +333,7 @@ void CommandHandler::setupContext(Context *ctx) if (vm.count("placer-heap-cell-placement-timeout")) ctx->settings[ctx->id("placerHeap/cellPlacementTimeout")] = - std::to_string(std::max(0, vm["placer-heap-cell-placement-timeout"].as())); + std::to_string(std::max(0, vm["placer-heap-cell-placement-timeout"].as())); if (vm.count("parallel-refine")) ctx->settings[ctx->id("placerHeap/parallelRefine")] = true; diff --git a/common/place/placer_heap.cc b/common/place/placer_heap.cc index efc04df501..8ba5a70db5 100644 --- a/common/place/placer_heap.cc +++ b/common/place/placer_heap.cc @@ -219,7 +219,8 @@ class HeAPPlacer heap_runs.push_back(all_buckets); // The main HeAP placer loop if (cfg.cell_placement_timeout > 0) - log_info("Running main analytical placer, max placement attempts per cell = %d.\n", cfg.cell_placement_timeout); + log_info("Running main analytical placer, max placement attempts per cell = %d.\n", + cfg.cell_placement_timeout); else log_info("Running main analytical placer.\n"); while (stalled < 5 && (solved_hpwl <= legal_hpwl * 0.8)) { @@ -887,7 +888,9 @@ class HeAPPlacer while (!placed) { if (cfg.cell_placement_timeout > 0 && total_iters_for_cell > cfg.cell_placement_timeout) - log_error("Unable to find legal placement for cell '%s' after %d attempts, check constraints and utilisation. Use `--placer-heap-cell-placement-timeout` to change the number of attempts.\n", + log_error("Unable to find legal placement for cell '%s' after %d attempts, check constraints and " + "utilisation. Use `--placer-heap-cell-placement-timeout` to change the number of " + "attempts.\n", ctx->nameOf(ci), total_iters_for_cell); // Determine a search radius around the solver location (which increases over time) that is clamped to