Commit 97fc825
committed
fix: reject padded 2D layouts until execution handles strides
CompiledRaw2DNode::execute treats (batch, n0, n1) as tightly packed
and ignores idist/odist. The validation accepted idist >= n0*n1 which
would silently corrupt data for padded batches.
- Change idist/odist check from >= to == for rank-2 plans
- Add PaddedDistRejected test case
Ref: review comment on is_supported_2d_desc1 parent 8d9154e commit 97fc825
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
88 | 101 | | |
89 | 102 | | |
90 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
0 commit comments