[Pallas] Add xfail tests for scalar .begin index not collapsing dims#1971
[Pallas] Add xfail tests for scalar .begin index not collapsing dims#1971
Conversation
c215b44 to
8d9cb31
Compare
|
Does #1975 help with this failure? |
@AmesingFlank I tried it and it still fails. I guess the dim collapsing part is not handled. I have a draft in #1972. |
When tile.begin is used as a scalar tensor subscript, the Pallas codegen emits ':' instead of collapsing the dimension. Add two xfail tests covering the transpose rank mismatch and the interaction with None indexing.
8d9cb31 to
a2ebcf1
Compare
OK. fwiw, P2265326063 is the generated pallas code for this test with #1975 applied. I think the pallas kernel code here is correct, the 0th dimension is collapsed, but the BlockSpecs are incorrect, meaning that the kernel launches succesfully but computes incorrect results |
@AmesingFlank I see. Thank you! Feel free to see if #1975 can fix this, then I can drop #1972. I will get the test in first so the CI can help us guard the behavior. |
Summary
tile.beginindexing on Pallastest_scalar_index_transpose: when.beginis used as a scalar subscript, the dimension should be collapsed from the result so.Tproduces a correct 2D permutation