From 0210d1aee2ad8e9c8f9669895628ec7d7983d8d3 Mon Sep 17 00:00:00 2001 From: David Hutchinson Date: Fri, 20 Feb 2026 17:55:40 +1300 Subject: [PATCH] Nesi changes to AVX2 flags --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e5ce445..2568f8ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,16 +54,16 @@ elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "Intel") # Copied from MOM5/bin/mkmf.template.nci set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-alias -safe-cray-ptr -fpe0 -ftz -assume byterecl -i4 -r8 -traceback -nowarn -check noarg_temp_created -assume nobuffered_io -convert big_endian -grecord-gcc-switches -fp-model precise -fp-model source -align all") - set(CMAKE_Fortran_FLAGS_RELEASE "-g3 -O2 -xCORE-AVX2 -debug all -check none") - set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-g3 -O2 -xCORE-AVX2 -debug all -check none") + set(CMAKE_Fortran_FLAGS_RELEASE "-g3 -O2 -mavx2 -debug all -check none") + set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-g3 -O2 -mavx2 -debug all -check none") set(CMAKE_Fortran_FLAGS_DEBUG "-g3 -O0 -debug all -check -check noarg_temp_created -check nopointer -warn -warn noerrors -ftrapuv") elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "IntelLLVM") # Copied from MOM5/bin/mkmf.template.nci set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-alias -safe-cray-ptr -fpe0 -ftz -assume byterecl -i4 -r8 -traceback -nowarn -check noarg_temp_created -assume nobuffered_io -convert big_endian -grecord-gcc-switches -fp-model precise -fp-model source -align all") - set(CMAKE_Fortran_FLAGS_RELEASE "-g3 -O2 -xCORE-AVX2 -debug all -check none") - set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-g3 -O2 -xCORE-AVX2 -debug all -check none") + set(CMAKE_Fortran_FLAGS_RELEASE "-g3 -O2 -mavx2 -debug all -check none") + set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-g3 -O2 -mavx2 -debug all -check none") set(CMAKE_Fortran_FLAGS_DEBUG "-g3 -O0 -debug all -check -check noarg_temp_created -check nopointer -warn -warn noerrors -ftrapuv") else()