forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 61
[Flang][OpenMP] Add host_eval clause lowering support #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
skatrak
merged 1 commit into
amd-trunk-dev
from
users/skatrak/target-passthrough-04-flang
Nov 7, 2024
Merged
[Flang][OpenMP] Add host_eval clause lowering support #180
skatrak
merged 1 commit into
amd-trunk-dev
from
users/skatrak/target-passthrough-04-flang
Nov 7, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Oct 10, 2024
e2ee789
to
a9a83c9
Compare
03cc419
to
144635d
Compare
a9a83c9
to
332c9c5
Compare
144635d
to
f1120d0
Compare
332c9c5
to
0443d95
Compare
a18fdc4
to
b739c9c
Compare
36f00b9
to
0e07eda
Compare
b739c9c
to
b669de6
Compare
0e07eda
to
a3727a0
Compare
b669de6
to
bc7a8e2
Compare
Ping! Can someone take a look at this and let me know if we're ok with making the transition to the community-approved approach? This PR stack is currently in the way of upstreaming target SPMD support. |
a3727a0
to
dec7a5e
Compare
bc7a8e2
to
fab6db4
Compare
ergawy
approved these changes
Nov 5, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a minor comment.
fab6db4
to
e29a641
Compare
dec7a5e
to
6e921c3
Compare
Base automatically changed from
users/skatrak/target-passthrough-03-mlir-llvm
to
amd-trunk-dev
November 7, 2024 10:53
This patch updates Flang lowering to use the `host_eval` clause in `omp.target` operations to pass host information into the applicable clauses inside of the target region, instead of the previous approach where these clauses were attached to the `omp.target` operation itself.
e29a641
to
5f080c6
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch updates Flang lowering and the
do concurrent
conversion pass to use thehost_eval
clause inomp.target
operations to pass host information into the applicable clauses inside of the target region, instead of the previous approach where these clauses were attached to theomp.target
operation itself.The map info finalization pass is updated, because it previously didn't support the case where there are entry block arguments defined by other clauses placed before the map-like clauses being introduced by the pass.
The detection of when to evaluate outside of the target region is also improved for the target SPMD case in Flang lowering.