Skip to content

Commit

Permalink
Replace AVX2 with AVX512 vectorization option for Intel compiler
Browse files Browse the repository at this point in the history
to improve performance on AWS.
  • Loading branch information
christopherwharrop-noaa committed Apr 19, 2021
1 parent f2d0ad5 commit 2545eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ elseif (${CMAKE_Fortran_COMPILER_ID} MATCHES "Intel")
elseif (${CMAKE_BUILD_TYPE} MATCHES "Release")
# Specify aggressive optimization flags (to be overwritten for individual files in ccpp-physics' CMakeLists.txt)
if (AVX2)
set (CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -xCORE-AVX2")
set (CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -xCORE-AVX512")
elseif (SIMDMULTIARCH)
set (CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -axSSE4.2,CORE-AVX2")
endif (AVX2)
Expand Down

0 comments on commit 2545eab

Please sign in to comment.