Commit 3b39bfb
committed
[Pallas] Use exact RDIM size instead of next-power-of-2
Pallas block refs use exact tensor dimensions, so rounding RDIM_SIZE
to the next power of 2 (e.g., 1000→1024) causes shape mismatches.
Add Backend.static_rdim_size() and override it in PallasBackend to
return the exact size. Also override next_power_of_2_host_expr to
be a no-op for Pallas.
Removes @xfailIfPallas from test_reduce_non_pow2 added in #1945.1 parent b7b43b5 commit 3b39bfb
File tree
3 files changed
+16
-3
lines changed- helion/_compiler
- test
3 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
287 | 293 | | |
288 | 294 | | |
289 | 295 | | |
| |||
1121 | 1127 | | |
1122 | 1128 | | |
1123 | 1129 | | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1124 | 1139 | | |
1125 | 1140 | | |
1126 | 1141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
540 | 539 | | |
541 | 540 | | |
542 | 541 | | |
543 | | - | |
544 | 542 | | |
545 | 543 | | |
546 | 544 | | |
| |||
0 commit comments