Skip to content

Commit 73dfa44

Browse files
make format
1 parent ae67ef8 commit 73dfa44

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

vpr/src/place/annealer.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ bool t_annealing_state::outer_loop_update(float success_rate,
141141

142142
// Automatically determine exit temperature.
143143
const ClusteringContext& cluster_ctx = g_vpr_ctx.clustering();
144-
float t_exit;
144+
float t_exit = 0.005 * costs.cost / cluster_ctx.clb_nlist.nets().size();
145145
if (congestion_modeling_enabled) {
146-
t_exit = 0.005 * (1. + placer_opts.congestion_factor) * costs.cost / cluster_ctx.clb_nlist.nets().size();
147-
} else {
148-
t_exit = 0.005 * costs.cost / cluster_ctx.clb_nlist.nets().size();
146+
t_exit *= (1. + placer_opts.congestion_factor);
149147
}
150148

151149
VTR_ASSERT_SAFE(placer_opts.anneal_sched.type == e_sched_type::AUTO_SCHED);
@@ -238,7 +236,6 @@ PlacementAnnealer::PlacementAnnealer(const t_placer_opts& placer_opts,
238236
, congestion_modeling_started_(false) {
239237
const auto& device_ctx = g_vpr_ctx.device();
240238

241-
242239
float first_crit_exponent;
243240
if (placer_opts.place_algorithm.is_timing_driven()) {
244241
first_crit_exponent = placer_opts.td_place_exp_first; /*this will be modified when rlim starts to change */

vpr/src/place/annealer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ class PlacementAnnealer {
271271

272272
private:
273273
const t_placer_opts& placer_opts_;
274-
275274
PlacerState& placer_state_;
276275
const PlaceMacros& place_macros_;
277276
/// Stores different placement cost terms

0 commit comments

Comments
 (0)