Skip to content

Commit 01ce5d5

Browse files
committed
[vpr][place] pass skip_anneal to placer
1 parent 518caeb commit 01ce5d5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

vpr/src/place/placer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Placer::Placer(const Netlist<>& net_list,
4545
, net_cost_handler_(placer_opts, placer_state_, cube_bb)
4646
, place_delay_model_(std::move(place_delay_model))
4747
, log_printer_(*this, quiet)
48+
, skip_anneal_(placer_opts.place_skip_anneal)
4849
, is_flat_(is_flat) {
4950
const auto& cluster_ctx = g_vpr_ctx.clustering();
5051

@@ -285,15 +286,14 @@ void Placer::place() {
285286
const auto& timing_ctx = g_vpr_ctx.timing();
286287
const auto& cluster_ctx = g_vpr_ctx.clustering();
287288

288-
bool skip_anneal = false;
289289
#ifdef ENABLE_ANALYTIC_PLACE
290290
// Cluster-level analytic placer: when enabled, skip most of the annealing and go straight to quench
291291
if (placer_opts_.enable_analytic_placer) {
292-
skip_anneal = true;
292+
skip_anneal_ = true;
293293
}
294294
#endif
295295

296-
if (!skip_anneal) {
296+
if (!skip_anneal_) {
297297
// Table header
298298
log_printer_.print_place_status_header();
299299

vpr/src/place/placer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class Placer {
9797
std::shared_ptr<PlaceDelayModel> place_delay_model_;
9898
/// Prints logs during placement
9999
const PlacementLogPrinter log_printer_;
100+
/// Indicates if the placement annealing phase should be skipped.
101+
const bool skip_anneal_;
100102
/// Indicates if flat routing resource graph and delay model is used. It should be false.
101103
const bool is_flat_;
102104

0 commit comments

Comments
 (0)