This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse][gpu] add the 2:4 spmm integration test from linalg
ClosedPublic

Authored by K-Wu on Jul 14 2023, 8:03 PM.

Diff Detail

Event Timeline

K-Wu created this revision.Jul 14 2023, 8:03 PM
Herald added a project: Restricted Project. · View Herald Transcript
K-Wu requested review of this revision.Jul 14 2023, 8:03 PM
aartbik accepted this revision.Jul 14 2023, 10:54 PM
aartbik added inline comments.
mlir/test/Integration/Dialect/SparseTensor/GPU/CUDA/sm80-lt/sparse-matmul-2-4-lib-from-linalg.mlir
2

make this:


NOTE: this test requires gpu-sm80 and cusparselt
.//

20

add

//

// TODO: This uses our temporary ATTRIBUTE, replace with 2:4 type!
//
This revision is now accepted and ready to land.Jul 14 2023, 10:54 PM
K-Wu updated this revision to Diff 540641.Jul 14 2023, 11:00 PM

address comments

This revision was landed with ongoing or failed builds.Jul 14 2023, 11:01 PM
This revision was automatically updated to reflect the committed changes.
K-Wu marked an inline comment as done.
K-Wu marked an inline comment as done.Jul 14 2023, 11:01 PM

nice!

mlir/test/Integration/Dialect/SparseTensor/GPU/CUDA/sm80-lt/sparse-matmul-2-4-lib-from-linalg.mlir
25

nit: you could just use linalg.matmul here

90

nit: you could use tensor.empty + linalg.fill here

119

nit: you could use the traditional print memref methods here, they also work on tensor (but may be more annoying to set up with unranked). What you have is also fine and potentially simpler