Set divisor instead of absolute value
This commit is contained in:
parent
923458a2c9
commit
be1f700b0b
@ -190,7 +190,7 @@ po::options_description CommandHandler::getGeneralOptions()
|
|||||||
"placer heap criticality exponent (int, default: 2)");
|
"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-timingweight", po::value<int>(), "placer heap timing weight (int, default: 10)");
|
||||||
general.add_options()("placer-heap-cell-placement-timeout", po::value<int>(),
|
general.add_options()("placer-heap-cell-placement-timeout", po::value<int>(),
|
||||||
"allow placer to attempt up to the given number of iterations to place the cell (int, default: design size^2 / 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)
|
#if !defined(__wasm)
|
||||||
general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement");
|
general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement");
|
||||||
|
@ -1817,10 +1817,15 @@ PlacerHeapCfg::PlacerHeapCfg(Context *ctx)
|
|||||||
timing_driven = ctx->setting<bool>("timing_driven");
|
timing_driven = ctx->setting<bool>("timing_driven");
|
||||||
solverTolerance = 1e-5;
|
solverTolerance = 1e-5;
|
||||||
placeAllAtOnce = false;
|
placeAllAtOnce = false;
|
||||||
cell_placement_timeout = ctx->setting<int>("placerHeap/cellPlacementTimeout",
|
|
||||||
|
int timeout_divisor = ctx->setting<int>("placerHeap/cellPlacementTimeout", 8);
|
||||||
|
if (timeout_divisor > 0) {
|
||||||
// Set a conservative default. This is a rather large number and could probably
|
// Set a conservative default. This is a rather large number and could probably
|
||||||
// be shaved down, but for now it will keep the process from running indefinite.
|
// be shaved down, but for now it will keep the process from running indefinite.
|
||||||
std::max(10000, (int(ctx->cells.size()) * int(ctx->cells.size()) / 8) + 1));
|
cell_placement_timeout = std::max(10000, (int(ctx->cells.size()) * int(ctx->cells.size()) / timeout_divisor));
|
||||||
|
} else {
|
||||||
|
cell_placement_timeout = 0;
|
||||||
|
}
|
||||||
|
|
||||||
hpwl_scale_x = 1;
|
hpwl_scale_x = 1;
|
||||||
hpwl_scale_y = 1;
|
hpwl_scale_y = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user