-
Notifications
You must be signed in to change notification settings - Fork 371
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
Add flags for GNU builds to allow using GNU v10 and higher versions #4822
Conversation
Add -fallow-argument-mismatch for all GNU builds (including gnugpu). Only add -fallow-invalid-boz for 2 specific files for gnu/gnugpu builds. This PR adds Depends.gnugpu.cmake which is similar to Depends.gnu.cmake [bfb]
@@ -0,0 +1,24 @@ | |||
list(APPEND MPAS_ICE_SHORTWAVE |
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.
Following the patterns of the other changes in this PR you might want to rename the list to DISABLE_TREE_PTA_LIST or something like that
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.
And you might want to amend the commit message to include this flag
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.
The MPAS_ICE_SHORTWAVE name was already there. It's fine to rename it...
I don't know what you mean about amending commit message
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.
The commit message (or PR desc) does not mention the new compiler flag, -fno-tree-pta
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.
Oh I see -- that was already present for gnu. So adding this flag for GNU is not new, it's just we didn't have a gnugpu Depends file yet and therefore builds with gnugpu might also need that. I can redo PR to exclude adding those flags.
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.
SO you think I should remove the flags to set -fno-tree-pta
?
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.
No, just document that you are adding the flag in this PR
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.
Something like
* Add -fallow-argument-mismatch for all GNU builds (including gnugpu).
* Only add -fallow-invalid-boz for 2 specific files for gnu/gnugpu builds.
* Also adding the -fno-tree-pta flag to some MPAS CICE sources (required for gcc 9.0+)
This PR adds Depends.gnugpu.cmake which is similar to Depends.gnu.cmake
[BFB]
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.
But the -fno-tree-pta flag is already there for all GNU buiilds.
This PR also includes it for gnugpu.
I thought my comment "adds Depends.gnugpu.cmake which is similar to Depends.gnu.cmake" would indicate.
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.
ah, ok, thanks
Add flags for GNU builds to allow using GNU v10 and higher versions Add -fallow-argument-mismatch for all GNU builds (including gnugpu). Only add -fallow-invalid-boz for 2 specific files for gnu/gnugpu builds. This PR adds Depends.gnugpu.cmake which is similar to Depends.gnu.cmake Fixes #3954 And is needed first for #4809 and #4818 [BFB]
merged to next |
#4818) For Perlmutter, updating versions of modules to default. For the GNU compiler version, update to 10 (though current default is now 11). Note that updating to gnu v10 requires #4822 (already merged) (Specifically, adding -fallow-argument-mismatch -fallow-invalid-boz) Also removed the soft limit for stacksize for PM. Fixes: #4811
Add -fallow-argument-mismatch for all GNU builds (including gnugpu).
Only add -fallow-invalid-boz for 2 specific files for gnu/gnugpu builds.
This PR adds Depends.gnugpu.cmake which is similar to Depends.gnu.cmake
Fixes #3954
And is needed first for #4809 and #4818
[BFB]