This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse][gpu] derive type of cuSparse op
ClosedPublic

Authored by aartbik on May 19 2023, 4:16 PM.

Details

Summary

This no longer assumes just F64 output.

Note, however, that it will be cleaner to carry the data type in the corresponding operation (rather than tracking operands). That will also allow for mixed type cases, where operands and result type are different

This will be done in a follow revision where the result type is carried by the SpMV/SpMM op itself (and friends).

Diff Detail

Event Timeline

aartbik created this revision.May 19 2023, 4:16 PM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
aartbik requested review of this revision.May 19 2023, 4:16 PM
aartbik edited the summary of this revision. (Show Details)May 19 2023, 4:22 PM
Peiming added inline comments.May 19 2023, 4:22 PM
mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
1191

nit: Maybe getSpMatElemType is more informative?

aartbik marked an inline comment as done.May 19 2023, 4:25 PM
aartbik added inline comments.
mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
1191

good idea

aartbik updated this revision to Diff 523966.May 19 2023, 4:27 PM
aartbik marked an inline comment as done.

addressed comment

Peiming accepted this revision.May 19 2023, 5:01 PM
This revision is now accepted and ready to land.May 19 2023, 5:01 PM
This revision was automatically updated to reflect the committed changes.