Commit 94224d3b authored by BRAMAS Berenger's avatar BRAMAS Berenger

Update SSE AVX detection to test if the file exist and we MUST add some sse or...

Update SSE AVX detection to test if the file exist and we MUST add some sse or avx flag to compile the test files
parent 83bc7780
......@@ -222,7 +222,7 @@ if( ScalFMM_USE_SSE )
message(FATAL_ERROR "The CompileTestSseFile does not exist (${CMAKE_MODULE_PATH}/compileTestSse.cpp)" )
endif()
TRY_COMPILE(COMPILE_SSE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_MODULE_PATH}/compileTestSse.cpp COMPILE_DEFINITIONS "${CMAKE_CXX_FLAGS} -msse3")
TRY_COMPILE(COMPILE_SSE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_MODULE_PATH}/compileTestSse.cpp COMPILE_DEFINITIONS "${CMAKE_CXX_FLAGS} -msse4.2")
IF(${COMPILE_SSE})
TRY_COMPILE(COMPILE_RESULT_VAR ${CMAKE_CURRENT_BINARY_DIR}
......@@ -240,7 +240,7 @@ if( ScalFMM_USE_SSE )
ENDIF()
MESSAGE(WARNING "INTEL SSE CXX FLAGS: ${CMAKE_CXX_FLAGS} ")
ELSE()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2 -msse3 -mfpmath=sse")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2 -mfpmath=sse")
ENDIF()
ELSE()
MESSAGE(FATAL_ERROR "SSE NOT SUPPORTED ; Set ScalFMM_USE_SSE to OFF")
......
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