Skip to content

Commit

Permalink
Compile CICE with safe CPU instructions (#1563)
Browse files Browse the repository at this point in the history
* Remove -xHOST from CICE CMakeLists.txt. #1262

Co-authored-by: [David Huber] <[david.huber@noaa.gov]>
Co-authored-by: JONG KIM <jong.kim@noaa.gov>
Co-authored-by: Brian Curtis <brian.curtis@noaa.gov>
  • Loading branch information
4 people authored Jan 20, 2023
1 parent e051e0e commit c5badea
Show file tree
Hide file tree
Showing 11 changed files with 5,015 additions and 4,958 deletions.
4 changes: 2 additions & 2 deletions CICE-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
set(CMAKE_Fortran_LINK_FLAGS "" )
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
set(CMAKE_Fortran_FLAGS "-g -traceback")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -FR -convert big_endian -assume byterecl -ftz -align array64byte -xHOST")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -FR -convert big_endian -assume byterecl -ftz -align array64byte")
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fp-model precise")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check uninit -check bounds -check pointers -fpe0 -check noarg_temp_created -init=snan,arrays")
set(CMAKE_Fortran_LINK_FLAGS "")
Expand All @@ -24,7 +24,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "GNU")
set(CMAKE_C_LINK_FLAGS "")
elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
set( CMAKE_C_FLAGS "-g -traceback")
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -xHOST")
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set( CMAKE_C_FLAGS_RELEASE "-O2 -fp-model precise")
set( CMAKE_C_FLAGS_DEBUG "-O0 -ftrapuv")
set( CMAKE_C_LINK_FLAGS "")
Expand Down
1,218 changes: 609 additions & 609 deletions tests/RegressionTests_acorn.intel.log

Large diffs are not rendered by default.

420 changes: 210 additions & 210 deletions tests/RegressionTests_cheyenne.gnu.log

Large diffs are not rendered by default.

1,353 changes: 658 additions & 695 deletions tests/RegressionTests_cheyenne.intel.log

Large diffs are not rendered by default.

1,720 changes: 908 additions & 812 deletions tests/RegressionTests_gaea.intel.log

Large diffs are not rendered by default.

420 changes: 210 additions & 210 deletions tests/RegressionTests_hera.gnu.log

Large diffs are not rendered by default.

1,290 changes: 644 additions & 646 deletions tests/RegressionTests_hera.intel.log

Large diffs are not rendered by default.

1,184 changes: 592 additions & 592 deletions tests/RegressionTests_jet.intel.log

Large diffs are not rendered by default.

1,296 changes: 648 additions & 648 deletions tests/RegressionTests_orion.intel.log

Large diffs are not rendered by default.

1,066 changes: 533 additions & 533 deletions tests/RegressionTests_wcoss2.intel.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ if [[ $TESTS_FILE =~ '35d' ]] || [[ $TESTS_FILE =~ 'weekly' ]]; then
TEST_35D=true
fi

BL_DATE=20230112
BL_DATE=20230118

RTPWD=${RTPWD:-$DISKNM/NEMSfv3gfs/develop-${BL_DATE}/${RT_COMPILER^^}}

Expand Down

0 comments on commit c5badea

Please sign in to comment.