-
Notifications
You must be signed in to change notification settings - Fork 279
Combine PROD and REPRO build options into 'Release' build type #1171
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
DusanJovic-NOAA
merged 23 commits into
ufs-community:develop
from
DusanJovic-NOAA:release_flags
May 3, 2022
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
631f54c
Combine PROD and REPRO build mode into 'Release' build type
DusanJovic-NOAA 0c5685b
Merge remote-tracking branch 'origin/develop' into release_flags
DusanJovic-NOAA d0031c0
Merge branch 'ufs-community:develop' into release_flags
DusanJovic-NOAA 44ef119
Use CMAKE_*_FLAGS_RELEASE for 'Release' build type
DusanJovic-NOAA 0d51e3f
Update FV3
DusanJovic-NOAA 3ab2732
Remove -fPIC
DusanJovic-NOAA f65e5fa
Update FV3
DusanJovic-NOAA 2cb474d
Merge remote-tracking branch 'origin/develop' into release_flags
DusanJovic-NOAA 94d6af5
Update FV3
DusanJovic-NOAA d0a0c99
Use DT_INNER_c192 in cpld_control_c192_p8 and cpld_restart_c192_p8
DusanJovic-NOAA 1e2f547
Merge remote-tracking branch 'origin/develop' into release_flags
DusanJovic-NOAA 9937c9d
Update BL_DATE
DusanJovic-NOAA 68731d4
[AutoRT] hera.gnu Job Completed.
BrianCurtis-NOAA 39d1ff2
[AutoRT] hera.intel Job Completed.
BrianCurtis-NOAA 85fa595
[AutoRT] cheyenne.gnu Job Completed.
BrianCurtis-NOAA 8a50054
Add RegressionTests_wcoss_cray.log
DusanJovic-NOAA ec5e580
[AutoRT] orion.intel Job Completed.
BrianCurtis-NOAA 04579c8
[AutoRT] gaea.intel Job Completed.
BrianCurtis-NOAA 9a04ab5
[AutoRT] cheyenne.intel Job Completed.
BrianCurtis-NOAA 0639903
Add RegressionTests_wcoss_dell_p3.log
DusanJovic-NOAA f7c75e4
[AutoRT] jet.intel Job Completed.
BrianCurtis-NOAA b077a0d
Remove exectable flag for 3 log files
DusanJovic-NOAA 3f11f38
Revert .gitmodules and update FV3
DusanJovic-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Submodule FV3
updated
from f8cc77 to c521b5
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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,38 +16,23 @@ if(DEBUG) | |
| endif() | ||
| endif() | ||
| set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -ftrapuv") | ||
| elseif(REPRO) | ||
| add_definitions(-DREPRO) | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O2 -debug minimal -fp-model consistent -qoverride-limits") | ||
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -debug minimal") | ||
| else() | ||
| if(32BIT) | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O2 -debug minimal -fp-model source -qoverride-limits -qopt-prefetch=3") | ||
| else() | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O2 -debug minimal -fp-model source -qoverride-limits -qopt-prefetch=3 -no-prec-div -no-prec-sqrt") | ||
| endif() | ||
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -debug minimal") | ||
| set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal -qoverride-limits") | ||
| set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -fp-model consistent") | ||
| set(CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal") | ||
| set(FAST "-fast-transcendentals") | ||
| if(AVX2) | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=core-avx2") | ||
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=core-avx2") | ||
| set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -march=core-avx2") | ||
| set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -march=core-avx2") | ||
| elseif(SIMDMULTIARCH) | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -axSSE4.2,CORE-AVX2") | ||
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -axSSE4.2,CORE-AVX2") | ||
| elseif(AVX) | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=core-avx-i") | ||
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=core-avx-i") | ||
| set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -axSSE4.2,CORE-AVX2") | ||
| set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -axSSE4.2,CORE-AVX2") | ||
| elseif(AVX) | ||
| set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -march=core-avx-i") | ||
| set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -march=core-avx-i") | ||
| endif() | ||
| endif() | ||
|
|
||
| # For ccpp | ||
| set(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE) | ||
| set(CMAKE_CXX_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE) | ||
| set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE) | ||
| set(CMAKE_C_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE) | ||
| set(CMAKE_CXX_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE) | ||
| set(CMAKE_Fortran_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE) | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note to self. The |
||
| if(APPLE) | ||
| # The linker on macOS does not include `common symbols` by default | ||
| # Passing the -c flag includes them and fixes an error with undefined symbols | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.