Here goes nothin

This commit is contained in:
Kareem
2023-06-01 11:24:45 -04:00
parent 9e02dde0d1
commit b7d95ebdad

View File

@@ -58,8 +58,9 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
message(WARNING "Compiler has incomplete F2008 features, Git hash/compiler information won't be saved to H5 files")
add_compile_definitions(__INTEL_COMPILER_OLD)
elseif( (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 20.0) )
message(WARNING "Setting default optimization to O2 to avoid certain Intel compiler bugs")
set(CMAKE_DEFOPT "-O2")
#message(WARNING "Setting default optimization to O2 to avoid certain Intel compiler bugs")
message(WARNING "You only live once so let's see what happens")
#set(CMAKE_DEFOPT "-O2")
endif()
elseif(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8.0)
@@ -101,9 +102,17 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
if (HOST MATCHES cheyenne)
string(APPEND PROD " -march=corei7 -axCORE-AVX2")
string(APPEND PRODWITHDEBUGINFO " -march=corei7 -axCORE-AVX2")
elseif(HOST MATCHES pfe)
string(APPEND PROD " -march=corei7 -axCORE-AVX2")
string(APPEND PRODWITHDEBUGINFO " -march=corei7 -axCORE-AVX2")
elseif(HOST MATCHES pfe)
string(APPEND PROD " -march=corei7 -axCORE-AVX2")
string(APPEND PRODWITHDEBUGINFO " -march=corei7 -axCORE-AVX2")
elseif (HOST MATCHES derecho)
message("You're on Derecho, good for you!")
set(ALLOW_INVALID_COMPILERS ON)
if (ENABLE_MKL)
string(APPEND CMAKE_Fortran_FLAGS " -qmkl")
endif()
string(APPEND PROD " -march=core-avx2")
string(APPEND PRODWITHDEBUGINFO " -march=core-avx2")
endif()
#Check Intel Fortran version