From a2503ba8a1d3edf730cb3d32caa7070ce30d7d21 Mon Sep 17 00:00:00 2001 From: Christopher Harrop Date: Mon, 19 Apr 2021 17:22:49 +0000 Subject: [PATCH] Replace AVX2 with AVX512 vectorization option for Intel compiler for improved performance on AWS. --- cmake/Intel.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Intel.cmake b/cmake/Intel.cmake index b39848964c..49987a9492 100644 --- a/cmake/Intel.cmake +++ b/cmake/Intel.cmake @@ -23,8 +23,8 @@ else() if(AVX2) #set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -xCORE-AVX2 -qno-opt-dynamic-align") #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -xCORE-AVX2 -qno-opt-dynamic-align") - set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=core-avx2 -qno-opt-dynamic-align") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=core-avx2 -qno-opt-dynamic-align") + set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -xCORE-AVX512 -qno-opt-dynamic-align") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -xCORE-AVX512 -qno-opt-dynamic-align") elseif(SIMDMULTIARCH) set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -axSSE4.2,CORE-AVX2 -qno-opt-dynamic-align") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -axSSE4.2,CORE-AVX2 -qno-opt-dynamic-align")