@@ -52,9 +52,9 @@ include(CheckFortranCompilerFlag)
5252if (CMAKE_Fortran_COMPILER_ID MATCHES "Intel" )
5353 set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-alias -safe-cray-ptr -fpe0 -ftz -assume byterecl -i4 -r8 -nowarn -check noarg_temp_created -assume nobuffered_io -convert big_endian -grecord-gcc-switches -fp-model precise -fp-model source -align all" )
5454 if (MOM5_DETERMINISTIC)
55- set (CMAKE_Fortran_FLAGS_RELEASE "-g0 -O0 -xCORE-AVX2 -debug none -check none" )
55+ set (CMAKE_Fortran_FLAGS_RELEASE "-g0 -O0 -mavx2 -debug none -check none" )
5656 else ()
57- set (CMAKE_Fortran_FLAGS_RELEASE "-g3 -O2 -xCORE-AVX2 -debug all -check none -traceback" )
57+ set (CMAKE_Fortran_FLAGS_RELEASE "-g3 -O2 -mavx2 -debug all -check none -traceback" )
5858 endif ()
5959 set (CMAKE_Fortran_FLAGS_RELWITHDEBINFO "${CMAKE_Fortran_FLAGS_RELEASE} -g" )
6060 set (CMAKE_Fortran_FLAGS_DEBUG "-g3 -O0 -debug all -check -check noarg_temp_created -check nopointer -warn -warn noerrors -ftrapuv -traceback" )
@@ -79,18 +79,18 @@ endif()
7979if (CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM" )
8080 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS } -fp-model precise" )
8181 if (MOM5_DETERMINISTIC)
82- set (CMAKE_C_FLAGS_RELEASE "-O0 -debug none -xCORE-AVX2 " )
82+ set (CMAKE_C_FLAGS_RELEASE "-O0 -debug none -mavx2 " )
8383 else ()
84- set (CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal -xCORE-AVX2 " )
84+ set (CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal -mavx2 " )
8585 endif ()
8686 set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE } -g" )
8787 set (CMAKE_C_FLAGS_DEBUG "-O0 -g -ftrapuv -traceback" )
8888elseif (CMAKE_C_COMPILER_ID STREQUAL "Intel" )
8989 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS } -fp-model precise -fp-model source" )
9090 if (MOM5_DETERMINISTIC)
91- set (CMAKE_C_FLAGS_RELEASE "-O0 -debug none -xCORE-AVX2 " )
91+ set (CMAKE_C_FLAGS_RELEASE "-O0 -debug none -mavx2 " )
9292 else ()
93- set (CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal -xCORE-AVX2 " )
93+ set (CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal -mavx2 " )
9494 endif ()
9595 set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE } -g" )
9696 set (CMAKE_C_FLAGS_DEBUG "-O0 -g -ftrapuv -traceback" )
0 commit comments