This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] fix bug in workspace dimension computation
ClosedPublic

Authored by aartbik on Sep 7 2022, 10:49 PM.

Details

Summary

Access pattern expansion is always done along the innermost stored
dimension, but this was incorrectly reordered due to using a
general utility typically used by original dimensions only.

Diff Detail

Event Timeline

aartbik created this revision.Sep 7 2022, 10:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2022, 10:49 PM
aartbik requested review of this revision.Sep 7 2022, 10:49 PM
aartbik updated this revision to Diff 458654.Sep 7 2022, 10:56 PM

removed unused macro

bixia accepted this revision.Sep 8 2022, 7:52 AM
bixia added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
1170–1171

NIT: s/original/the original/
s/use of general utility that reorders again/dimension ordering/ ?

This revision is now accepted and ready to land.Sep 8 2022, 7:52 AM
aartbik updated this revision to Diff 458755.Sep 8 2022, 8:19 AM
aartbik marked an inline comment as done.

rephrased comment

This revision was landed with ongoing or failed builds.Sep 8 2022, 8:25 AM
This revision was automatically updated to reflect the committed changes.
Peiming added inline comments.Sep 8 2022, 8:40 AM
mlir/test/Dialect/SparseTensor/conversion.mlir
497

Seems to be misaligned by one space.