This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Add lowering pattern for vector.warp_execute_on_lane_0 op
ClosedPublic

Authored by ThomasRaoux on May 11 2022, 4:28 PM.

Details

Summary

Add lowering of the vector.warp_execute_on_lane_0 into scf.if plus memory transfer for the operands and yield values.

This also add an integration test running on GPU warp. The same tests can be later re-used with different comment lines to tests distribution transformations.

This is mostly from @springerm contribution.

Diff Detail

Event Timeline

ThomasRaoux created this revision.May 11 2022, 4:28 PM
Herald added a project: Restricted Project. · View Herald Transcript
ThomasRaoux requested review of this revision.May 11 2022, 4:28 PM
Herald added a project: Restricted Project. · View Herald Transcript
springerm accepted this revision.May 12 2022, 3:15 AM
springerm added inline comments.
mlir/include/mlir/Dialect/Vector/Transforms/VectorDistribution.h
17–19

is this needed?

This revision is now accepted and ready to land.May 12 2022, 3:15 AM

Address review comment

mlir/include/mlir/Dialect/Vector/Transforms/VectorDistribution.h
17–19

removed

This revision was landed with ongoing or failed builds.May 12 2022, 6:27 AM
This revision was automatically updated to reflect the committed changes.