-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fix using co_reduce(...operator=...) for F2018. #746
Conversation
Just a quick background question. Is OpenCoarrays intended to work with any compilers other than gfortran? If so, I'd suggest reversing the preprocessor condition so that only gfortran versions less than 12 use the old argument name. Other than that this is a straightforward addition and it looks good to me. |
@everythingfunctional other compiler development teams are considering using OpenCoarrays, but if [Caffeine] progresses quickly enough, then I think it's more likely that other compilers will adopt Caffeine -- at least that's the hope. @vehre if you agree with the above comment by @everythingfunctional , please make the suggested edit, push again, and I'll merge or possibly you can merge now that the main branch is no longer protected. If so, feel free to do so. |
31e87e9
to
9690a5e
Compare
I have reversed the preprocessor directives. At least I hope this is what @everythingfunctional meant?! |
I think that works. Do you know how that evaluates if |
In F2018 and with gcc>=12 is has to be co_reduce(...operation=...).
9690a5e
to
896f2dd
Compare
Updated that, ok for merge now? |
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.
👍
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
In F2018 and with gcc>=12 is has to be co_reduce(...operation=...).
Summary of changes
Fix using co_reduce(...operator=...) for F2018.
Rationale for changes
gcc >= 12 implements the F2018 change for the co_reduce( operator=...)-parameter to be named 'operation=...'. This patch fixes the different naming by using the pre-processor where operator is used.
Additional info and certifications
This pull request (PR) is a:
I certify that
OpenCoarrays developer a chance to review my proposed code
be introduced)
Code coverage data