Skip to content

Commit ba26ca9

Browse files
committed
gpl: detect divergence whenever we hit 0.20 overflow for the first time
Signed-off-by: Augusto Berndt <[email protected]>
1 parent 083ca27 commit ba26ca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gpl/src/nesterovBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2971,14 +2971,14 @@ bool NesterovBase::checkDivergence()
29712971
}
29722972

29732973
// Check if both overflow and HPWL increase
2974-
if (sum_overflow_unscaled_ < 0.2f && prev_reported_overflow_unscaled_ > 0
2974+
if (minSumOverflow_ < 0.2f && prev_reported_overflow_unscaled_ > 0
29752975
&& prev_reported_hpwl_ > 0) {
29762976
float overflow_change
29772977
= sum_overflow_unscaled_ - prev_reported_overflow_unscaled_;
29782978
float hpwl_increase = (static_cast<float>(prev_hpwl_ - prev_reported_hpwl_))
29792979
/ static_cast<float>(prev_reported_hpwl_);
29802980

2981-
if (overflow_change >= 0.02f && hpwl_increase >= 0.1f) {
2981+
if (overflow_change >= 0.02f && hpwl_increase >= 0.05f) {
29822982
isDiverged_ = true;
29832983
}
29842984
}

0 commit comments

Comments
 (0)