Commit a298885
Skip stride-alignment check for size==1 dims in verifyBDSizesStrides
A dim with size==1 is never stepped, so its stride is irrelevant to
the hardware encoder. The previous check rejected legal BDs with
padding `(1,1)` dims on sub-word element types (e.g. i16 on a 4-byte
granularity tile): `1 element * 2 bytes = 2 bytes` tripped the
"not divisible by 4" rule even though the dim never advances.
Caught by test/python/dma_op.py once its innermost dim was made
realizable in the previous commit.
Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>1 parent 2042b2e commit a298885
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2241 | 2241 | | |
2242 | 2242 | | |
2243 | 2243 | | |
| 2244 | + | |
| 2245 | + | |
2244 | 2246 | | |
2245 | 2247 | | |
2246 | 2248 | | |
| |||
0 commit comments