This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] speed up sparse tensor file I/O by more than 2x
ClosedPublic

Authored by aartbik on Dec 13 2021, 8:46 PM.

Details

Summary

data point using the 3-dim tensor nell-2.tns

MLIR:
READ FILE INTO COO: 24424.369294 ms ---> improves to ----> 9638.501044 ms
SORT COO BEFORE PACK: 762.834831 ms
PACK COO TO TENSOR: 1243.376245 ms

TACO:
b file read: 13270.9 ms
b pack: 7137.74 ms
b size: (12092 x 9184 x 28818), 925300328 bytes

https://github.com/llvm/llvm-project/issues/52679

Diff Detail

Event Timeline

aartbik created this revision.Dec 13 2021, 8:46 PM
aartbik requested review of this revision.Dec 13 2021, 8:46 PM
aartbik updated this revision to Diff 394139.Dec 13 2021, 10:01 PM

rebased main

aartbik retitled this revision from [mlir[sparse] speed up sparse tensor file I/O by more than 2x to [mlir][sparse] speed up sparse tensor file I/O by more than 2x.Dec 13 2021, 10:03 PM
bixia accepted this revision.Dec 13 2021, 10:18 PM
bixia added inline comments.
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
576

Shall we define a constant for 1025 and use it everywhere?

This revision is now accepted and ready to land.Dec 13 2021, 10:18 PM
aartbik marked an inline comment as done.Dec 13 2021, 11:00 PM
aartbik added inline comments.
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
576

Yes, good suggestion.

aartbik updated this revision to Diff 394151.Dec 13 2021, 11:01 PM
aartbik marked an inline comment as done.

symbolic constant