This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse][gpu] generate single module, unique kernel names
ClosedPublic

Authored by aartbik on Apr 14 2023, 6:30 PM.

Diff Detail

Event Timeline

aartbik created this revision.Apr 14 2023, 6:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 6:30 PM
aartbik requested review of this revision.Apr 14 2023, 6:30 PM
aartbik updated this revision to Diff 513832.Apr 14 2023, 6:33 PM

removed unrelated bazel

aartbik updated this revision to Diff 513833.Apr 14 2023, 6:35 PM

and add related file

Peiming accepted this revision.Apr 14 2023, 8:07 PM
Peiming added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
59

Maybe you can make it a static local variable if this is not against LLVM coding convention?

This revision is now accepted and ready to land.Apr 14 2023, 8:07 PM
aartbik marked an inline comment as done.Apr 15 2023, 11:19 AM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
59

Alas, that would make it thread unsafe (since several threads may run this code in parallel on different modules in theory).

aartbik updated this revision to Diff 513949.Apr 15 2023, 4:55 PM
aartbik marked an inline comment as done.

rebased with main