This is an archive of the discontinued LLVM Phabricator instance.

[mlir][gpu] Allow distributing to different level of IDs without failing
ClosedPublic

Authored by ThomasRaoux on Feb 3 2023, 2:57 PM.

Details

Summary

Change map_nested_foreach_to_threads to ignore foreach_thread not
mapping to threads, this will allow us to call
mapNestedForeachToThreadsImpl with different set of ids to lower
multiple levels. Also adds warpIds attributes.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Feb 3 2023, 2:57 PM
ThomasRaoux requested review of this revision.Feb 3 2023, 2:57 PM
Herald added a project: Restricted Project. · View Herald Transcript
harsh added a comment.Feb 3 2023, 3:24 PM

Looks good! Thanks!

mlir/include/mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td
46

Should this be warps for loop mapping?

harsh accepted this revision.Feb 3 2023, 3:24 PM
This revision is now accepted and ready to land.Feb 3 2023, 3:24 PM