mirror of
https://github.com/JHUAPL/kaiju.git
synced 2026-01-09 02:37:55 -05:00
Adding less precise high speed options FAST YOLO
This commit is contained in:
@@ -57,10 +57,10 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
|
||||
elseif( (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 17.0) AND (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 18.0) )
|
||||
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) )
|
||||
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")
|
||||
endif()
|
||||
set(CMAKE_DEFOPT "-O2")
|
||||
endif()
|
||||
elseif(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
|
||||
if(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8.0)
|
||||
message("Fortran compiler too old! What, were you gonna use punch cards?")
|
||||
@@ -68,6 +68,11 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(FAST_YOLO)
|
||||
message("*** RUNNING WITH IMPRECISE HIGH SPEED OPTIONS ***")
|
||||
set(CMAKE_DEFOPT "-O3") #over-ride default optimization to maximum
|
||||
endif()
|
||||
|
||||
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g")
|
||||
set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_DEFOPT}")
|
||||
set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO "${CMAKE_DEFOPT} -g")
|
||||
@@ -78,7 +83,11 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
|
||||
#Base
|
||||
string(APPEND CMAKE_Fortran_FLAGS " -fPIC")
|
||||
#Production
|
||||
set(PROD "-align array64byte -align rec32byte -fimf-use-svml=true -fp-model=source")
|
||||
if(NOT FAST_YOLO)
|
||||
set(PROD "-align array64byte -align rec32byte -fimf-use-svml=true -fp-model=source")
|
||||
else()
|
||||
set(PROD "-align array64byte -align rec32byte -fimf-use-svml=true -fp-model=fast")
|
||||
endif()
|
||||
#Production with Debug Info
|
||||
set(PRODWITHDEBUGINFO "-traceback -debug all -align array64byte -align rec32byte -fimf-use-svml=true -fp-model=source")
|
||||
#Debug
|
||||
|
||||
Reference in New Issue
Block a user