This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] avoid reserving dense storage for ptr/idx
ClosedPublic

Authored by aartbik on Apr 5 2022, 4:59 PM.

Details

Summary

This avoids a rather big bug where we were reserving
dense space for the ptx/idx in the first sparse dimension.
For example, using CSR for a 140874 x 140874 matrix with
3977139 nonzero would reserve the full 19845483876 space.
This revision fixes this for now, but we need to revisit
the reservation heuristic to make this better.

Diff Detail

Event Timeline

aartbik created this revision.Apr 5 2022, 4:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2022, 4:59 PM
aartbik requested review of this revision.Apr 5 2022, 4:59 PM
bixia accepted this revision.Apr 5 2022, 5:10 PM
This revision is now accepted and ready to land.Apr 5 2022, 5:10 PM
This revision was automatically updated to reflect the committed changes.