Skip to content
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

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

ndkeen
Copy link
Contributor

@ndkeen ndkeen commented Mar 1, 2022

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]

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
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor

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]

Copy link
Contributor Author

@ndkeen ndkeen Mar 2, 2022

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, ok, thanks

ndkeen added a commit that referenced this pull request Mar 2, 2022
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]
@ndkeen
Copy link
Contributor Author

ndkeen commented Mar 2, 2022

merged to next

@ndkeen ndkeen merged commit 7a9174f into master Mar 4, 2022
ndkeen added a commit that referenced this pull request Mar 4, 2022
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GNU GNU compiler related issues Machine Files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile issue with GCC 10.1.0
2 participants