Skip to content

Commit

Permalink
Remove unnecessary SIMD instruction sets from ccpp/CMakeLists.txt (uf…
Browse files Browse the repository at this point in the history
…s-community#220)

* Remove additional/unnecessary SIMD instruction sets from ccpp/CMakeLists.txt
  • Loading branch information
climbfuji committed Jan 7, 2021
1 parent 9c73d96 commit 45618a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion atmos_cubed_sphere
8 changes: 3 additions & 5 deletions ccpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,9 @@ 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)
if (SIMDMULTIARCH)
set (CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -axSSE4.2,AVX,CORE-AVX2,CORE-AVX512")
else (SIMDMULTIARCH)
set (CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -xCORE-AVX2")
endif (SIMDMULTIARCH)
set (CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -xCORE-AVX2")
elseif (SIMDMULTIARCH)
set (CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -axSSE4.2,CORE-AVX2")
endif (AVX2)
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -debug minimal -fp-model source -qoverride-limits -qopt-prefetch=3")
endif (${CMAKE_BUILD_TYPE} MATCHES "Debug")
Expand Down
2 changes: 1 addition & 1 deletion ccpp/physics

0 comments on commit 45618a9

Please sign in to comment.