Commit 9eed9d39 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

remove ofast and use fmath

parent 8e7b6b0b
...@@ -90,13 +90,13 @@ else() ...@@ -90,13 +90,13 @@ else()
# Compile optimization # Compile optimization
IF( APPLE ) IF( APPLE )
SET(SCALFMM_FLAGS_OPTI_RELEASE "-m64 -Ofast -funroll-loops" CACHE STRING "Set your optimization flags for release mode.") SET(SCALFMM_FLAGS_OPTI_RELEASE "-m64 -ffast-math -funroll-loops" CACHE STRING "Set your optimization flags for release mode.")
ELSE() ELSE()
# Test if not apple and 64bits # Test if not apple and 64bits
if(CMAKE_SIZEOF_VOID_P EQUAL 8) if(CMAKE_SIZEOF_VOID_P EQUAL 8)
SET(SCALFMM_FLAGS_OPTI_RELEASE "-m64 -Ofast -flto -march=native -funroll-loops" CACHE STRING "Set your optimization flags for release mode.") SET(SCALFMM_FLAGS_OPTI_RELEASE "-m64 -ffast-math -flto -march=native -funroll-loops" CACHE STRING "Set your optimization flags for release mode.")
else() else()
SET(SCALFMM_FLAGS_OPTI_RELEASE "-Ofast -flto -march=native -funroll-loops" CACHE STRING "Set your optimization flags for release mode.") SET(SCALFMM_FLAGS_OPTI_RELEASE "-ffast-math -flto -march=native -funroll-loops" CACHE STRING "Set your optimization flags for release mode.")
endif() endif()
ENDIF() ENDIF()
ADD_DEFINITIONS(${SCALFMM_FLAGS_OPTI_RELEASE}) ADD_DEFINITIONS(${SCALFMM_FLAGS_OPTI_RELEASE})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment