File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2348,6 +2348,11 @@ static void alloc_and_load_for_fast_cost_update(float place_cost_exp) {
2348
2348
2349
2349
for (size_t high = 0 ; high < device_ctx.grid .height (); high++)
2350
2350
for (size_t low = 0 ; low <= high; low++) {
2351
+ if (chanx_place_cost_fac[high][low] == 0 .0f ) {
2352
+ VTR_LOG_WARN (" CHANX place cost fac is 0 at %d %d\n " , high, low);
2353
+ chanx_place_cost_fac[high][low] = 1 .0f ;
2354
+ }
2355
+
2351
2356
chanx_place_cost_fac[high][low] = (high - low + 1 .)
2352
2357
/ chanx_place_cost_fac[high][low];
2353
2358
chanx_place_cost_fac[high][low] = pow ((double )chanx_place_cost_fac[high][low], (double )place_cost_exp);
@@ -2370,6 +2375,11 @@ static void alloc_and_load_for_fast_cost_update(float place_cost_exp) {
2370
2375
2371
2376
for (size_t high = 0 ; high < device_ctx.grid .width (); high++)
2372
2377
for (size_t low = 0 ; low <= high; low++) {
2378
+ if (chany_place_cost_fac[high][low] == 0 .0f ) {
2379
+ VTR_LOG_WARN (" CHANY place cost fac is 0 at %d %d\n " , high, low);
2380
+ chany_place_cost_fac[high][low] = 1 .0f ;
2381
+ }
2382
+
2373
2383
chany_place_cost_fac[high][low] = (high - low + 1 .)
2374
2384
/ chany_place_cost_fac[high][low];
2375
2385
chany_place_cost_fac[high][low] = pow ((double )chany_place_cost_fac[high][low], (double )place_cost_exp);
You can’t perform that action at this time.
0 commit comments