-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ndk/machinefiles/PM-add-arg-pack-flag-gnu10' into next …
…(PR #4836) Add a flag to disable new behavior in gnu v10. For now, just do this only for Perlmutter and gnu v10+. This PR adds to new files to be specific to Perlmutter for now. Flag itself does not change results, but the tests were hitting errors without it.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
list(APPEND NO_INLINE_ARG_PACKING_LIST | ||
eam/src/dynamics/se/inidat.F90 | ||
) | ||
|
||
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10) | ||
|
||
if (NOT DEBUG) | ||
# new in gnu10, inline arg packing was causing INF values with SMS_P4x1.ne4pg2_ne4pg2.F-MMFXX | ||
foreach(ITEM IN LISTS NO_INLINE_ARG_PACKING_LIST) | ||
e3sm_add_flags("${ITEM}" " -fno-inline-arg-packing") | ||
endforeach() | ||
endif() | ||
|
||
endif() |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
list(APPEND NO_INLINE_ARG_PACKING_LIST | ||
eam/src/dynamics/se/inidat.F90 | ||
) | ||
|
||
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10) | ||
|
||
if (NOT DEBUG) | ||
# new in gnu10, inline arg packing was causing INF values with SMS_P4x1.ne4pg2_ne4pg2.F-MMFXX | ||
foreach(ITEM IN LISTS NO_INLINE_ARG_PACKING_LIST) | ||
e3sm_add_flags("${ITEM}" " -fno-inline-arg-packing") | ||
endforeach() | ||
endif() | ||
|
||
endif() | ||
|