This is an archive of the discontinued LLVM Phabricator instance.

[mlir][gpu] Only transform mapped parallel loops to GPU.
ClosedPublic

Authored by herhut on Nov 12 2020, 5:21 AM.

Details

Summary

This exposes a hook to configure legality of operations such that only
scf.parallel operations that have mapping attributes are marked as
illegal. Consequently, the transformation can now also be applied to
mixed forms.

Diff Detail

Event Timeline

herhut created this revision.Nov 12 2020, 5:21 AM
herhut requested review of this revision.Nov 12 2020, 5:21 AM
ftynse accepted this revision.Nov 12 2020, 8:20 AM

Please fix the test

This revision is now accepted and ready to land.Nov 12 2020, 8:20 AM
herhut updated this revision to Diff 304872.Nov 12 2020, 9:37 AM

Fix tests.

This revision was automatically updated to reflect the committed changes.