This is an archive of the discontinued LLVM Phabricator instance.

[mlir][VectorToGPU] Support more cases in conversion to MMA ops
ClosedPublic

Authored by ThomasRaoux on Nov 10 2021, 2:41 PM.

Details

Summary

Support load with broadcast, elementwise divf op and remove the
hardcoded restriction on the vector size. Picking the right size should
be enforced by user and will fail conversion to llvm/spirv if it is not
supported.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Nov 10 2021, 2:41 PM
ThomasRaoux requested review of this revision.Nov 10 2021, 2:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 10 2021, 2:41 PM
ThomasRaoux edited the summary of this revision. (Show Details)Nov 10 2021, 2:41 PM
antiagainst accepted this revision.Nov 11 2021, 10:37 AM
antiagainst added inline comments.
mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
53

Nice!

159

Nit: "without including" -> "excluding"?

215

Typo: "chaine".

This revision is now accepted and ready to land.Nov 11 2021, 10:37 AM

Thanks for the review!

mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
159

Well it doesn't exclude all of them, it just doesn't include the elements not part of the use/def chain. I'll rephrase this :)

215

Thanks, I think I'm mixing languages :|

Address review comments