This is an archive of the discontinued LLVM Phabricator instance.

[mlir][openacc] Use new reduction design in acc.loop
ClosedPublic

Authored by clementval on May 22 2023, 3:19 PM.

Details

Summary

Use the new reduction design in acc.loop operation.

Depends on D151146

Diff Detail

Event Timeline

clementval created this revision.May 22 2023, 3:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 3:19 PM
clementval requested review of this revision.May 22 2023, 3:19 PM
This revision is now accepted and ready to land.May 22 2023, 11:50 PM
razvanlupusoru accepted this revision.May 23 2023, 5:31 PM

Just a naming suggestion - otherwise looks great.

mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
1050

Can you call this reductionRecipes? It felt natural when you named the private recipes list "privatizations" but it doesn't feel so for reductions. So if you do want them to be consistent, might make sense to rename both.

clementval added inline comments.May 24 2023, 8:03 AM
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
1050

I can. Did you mean this also for acc.serial and acc.parallel?

razvanlupusoru added inline comments.May 24 2023, 8:09 AM
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
1050

Yes please - for all.

Rename reductions to reductionRecipes

razvanlupusoru accepted this revision.May 24 2023, 9:45 AM

This is great. Thank you for the renaming.

This revision was automatically updated to reflect the committed changes.