Skip to content

Commit 2c68038

Browse files
committed
Add back temperature limit to ensure termination.
Signed-off-by: Dusty DeWeese <[email protected]>
1 parent 1bd2b6e commit 2c68038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/place/place.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ static bool update_state(t_annealing_state* state, float success_rat, const t_pl
12211221
bool restart_temp = state->t < t_exit || std::isnan(t_exit); //May get nan if there are no nets
12221222

12231223
if (annealing_sched.type == DUSTY_SCHED) {
1224-
if (success_rat < annealing_sched.success_min) {
1224+
if (success_rat < annealing_sched.success_min || restart_temp) {
12251225
if (state->alpha > annealing_sched.alpha_max) return false;
12261226
state->t = state->restart_t / sqrt(state->alpha); // Take a half step from the restart temperature.
12271227
state->alpha = 1.0 - ((1.0 - state->alpha) * annealing_sched.alpha_decay);

0 commit comments

Comments
 (0)