-
Notifications
You must be signed in to change notification settings - Fork 156
update cmake build for testing, build types and mixed precision #1694
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
Merged
Changes from 13 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
c6c7eef
changes to compile all unit tests via cmake and add in cmake test-lib…
b985446
add mpp unit test scripts
10d3f5d
mixed precision updates and fixes to use test-lib for both build systems
2c7869a
Merge branch 'main' of github.com:noaa-gfdl/fms into cmake-updates
10ac33b
update debug flags
436d708
revert changes to mosaic2 helper module
64d120a
Merge branch 'NOAA-GFDL:main' into cmake-updates
rem1776 a3ae512
remove real size flag
rem1776 c088182
fix test_fms directory/executable overlap by adding build directory t…
rem1776 a377d46
take out the lame executable test
rem1776 db7f16e
add labels and fix for mpp ascii read test
e9e04c3
Merge branch 'cmake-updates' of github.com:rem1776/FMS into cmake-upd…
1772c6b
fix for mpp ascii test, remove unused test-lib.sh.in
502d97b
unify precision macro names
810f343
fixed the DO tests
94bea35
Data override test fix
c68092e
Apply suggestions from code review
rem1776 ca15c94
Merge branch 'main' into cmake-updates
rem1776 1eeeddc
remove 64bit flag
rem1776 a209999
CPPFLAGS fix for test_axis r4 and r8
3bd3248
Merge remote-tracking branch 'vs/singlemacro' into cmake-updates
f12f78b
Merge branch 'main' into cmake-updates
rem1776 b957dd3
Merge branch 'main' of github.com:noaa-gfdl/fms into cmake-updates
d83abe7
list test src explicitly and fix any lingering precision issues
7e325c1
update flags to match mkmf templates and multiple test fixes
5d2a8d4
Merge branch 'cmake-updates' of github.com:rem1776/fms into cmake-upd…
8050e20
changes for autotools and add a missed new helper file for mosaic
cecc9e4
fix C flags for yaml builds
0badd96
clean up env variables in test scripts for parser build option
99d181b
fix conditional for field manager
4b63446
fixes for tridiagonal and column diagnostic tests
12ccd0b
add new output file location to cleanfiles for coupler tests
a12970d
missed some output files
06d81cc
revert change to default off for quad precision to line up with autot…
8a69d09
simplify build type options and compiler flags
b034f50
missed the fortran max line length flag for GNU
b904727
linter
842ddc5
Merge remote-tracking branch 'upstream/main' into cmake-updates
f7e21b2
rename skip variable used in added diag manager test
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Clang C | ||
| set( CMAKE_C_FLAGS_RELEASE "-O3" ) | ||
|
|
||
| set( CMAKE_C_FLAGS_DEBUG "-O0 -g" ) | ||
| set( CMAKE_C_FLAGS_DEBUGUFS "-O0 -g" ) | ||
|
|
||
| set( CMAKE_C_LINK_FLAGS "" ) |
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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # GNU C | ||
| set(CMAKE_C_FLAGS_RELEASE "-O3") | ||
|
|
||
| set(CMAKE_C_FLAGS_DEBUG "-O0 -g") | ||
| set(CMAKE_C_FLAGS_DEBUGUFS "-O0 -g") | ||
|
|
||
| set(CMAKE_C_LINK_FLAGS "") |
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 |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| # Precision-based Fortran compiler flags | ||
| set(r8_flags "-fdefault-real-8 -fdefault-double-8") # Fortran flags for 64BIT precision | ||
|
|
||
| # GNU Fortan | ||
| # GNU Fortran | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fcray-pointer -fconvert=big-endian -ffree-line-length-none -fno-range-check -fbacktrace") | ||
|
|
||
| set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -funroll-all-loops -finline-functions") | ||
|
|
||
| set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fcheck=bounds -ffpe-trap=invalid,zero,overflow,underflow" ) | ||
| set(CMAKE_Fortran_FLAGS_DEBUGUFS "-O0 -g -fcheck=bounds -ffpe-trap=invalid,zero,overflow,underflow" ) | ||
|
|
||
| set(CMAKE_Fortran_LINK_FLAGS "" ) |
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
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
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
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
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
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
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
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
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.
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.
Using spack containers, nice!