This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] add a coo slices matmul integration test.
ClosedPublic

Authored by Peiming on Mar 16 2023, 10:57 AM.

Diff Detail

Event Timeline

Peiming created this revision.Mar 16 2023, 10:57 AM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.Mar 16 2023, 10:57 AM
wrengr accepted this revision.Mar 16 2023, 11:42 AM

Modulo some variable naming, lgtm

mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir
220–221

I'm not sure if there's some naming convention in this file, but it'd make a lot more sense to name these %sa_coo/%sb_coo (or %ta_coo/%tb_coo if the "s" vs "t" matters)

222–223

Again, not sure if there's some other naming convention in this file, but it'd make more sense to name these so the variable's "1"/"2" matches the number in the attribute

And I think it'd be good to have the name reflect the source of the slice too, so %sb1_coo for the #COO_SLICE_1 of %sb_coo, %sa2_coo for the #COO_SLICE_2 of %sa_coo, etc

This revision is now accepted and ready to land.Mar 16 2023, 11:42 AM
Peiming added inline comments.Mar 16 2023, 12:25 PM
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir
220–221

This file probably need to be reorganized, I will do it in a separate patch.

This revision was landed with ongoing or failed builds.Mar 16 2023, 1:03 PM
This revision was automatically updated to reflect the committed changes.