Skip to content

Commit

Permalink
clangformat
Browse files Browse the repository at this point in the history
Signed-off-by: gatecat <[email protected]>
  • Loading branch information
gatecat committed Jan 2, 2023
1 parent 5cea801 commit f89b959
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions common/kernel/command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ po::options_description CommandHandler::getGeneralOptions()
"placer heap criticality exponent (int, default: 2)");
general.add_options()("placer-heap-timingweight", po::value<int>(), "placer heap timing weight (int, default: 10)");
general.add_options()("placer-heap-cell-placement-timeout", po::value<int>(),
"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");
Expand Down Expand Up @@ -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<int>()));
std::to_string(std::max(0, vm["placer-heap-cell-placement-timeout"].as<int>()));

if (vm.count("parallel-refine"))
ctx->settings[ctx->id("placerHeap/parallelRefine")] = true;
Expand Down
7 changes: 5 additions & 2 deletions common/place/placer_heap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f89b959

Please sign in to comment.