This is a very minor improvement during iteration graph construction.
If the first attempt considering the dimension order of all tensors fails,
a second attempt is made using the constraints of sparse tensors only.
Dense tensors prefer dimension order (locality) but provide random access
if needed, enabling the compilation of more sparse kernels.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Smart! :)
The generated code looks correct to me.
mlir/test/Dialect/Linalg/sparse_nd.mlir | ||
---|---|---|
10 | You scared me for a second here with all these indices. XD |
mlir/test/Dialect/Linalg/sparse_nd.mlir | ||
---|---|---|
10 | Yeah, I wanted to stress test higher ranks too with this ;-) |
You scared me for a second here with all these indices. XD
This is a fun test case.