Commit 89816af2 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille

Change in CMakList in order to try to compile checkAVXpe with avx flags (was...

Change in CMakList in order to try to compile checkAVXpe with avx flags (was working with gcc >= 4.9, but not with gcc 4.8.*)
parent c93d2bb7
......@@ -66,7 +66,7 @@ OPTION( ScalFMM_USE_MIC_NATIVE "Set to ON to compile in native mode for MI
OPTION( ScalFMM_BUILD_ONLY_LIB "Set to ON to compile only the lib (examples are not compiled) " OFF )
OPTION( ScalFMM_ONLY_DEVEL "Set to ON to compile Development tools (only scalfmm team)" ON )
if( ScalFMM_ONLY_DEVEL )
OPTION( ScalFMM_USE_STARPU "Set to ON to build ScaFMM with StarPU" OFF )
OPTION( ScalFMM_USE_STARPU "Set to ON to build ScaFMM with StarPU" OFF )
endif()
# Set scalfmm to default libraries
SET(SCALFMM_LIBRARIES "")
......@@ -319,7 +319,7 @@ if(ScalFMM_USE_AVX)
SET(ScaLFMM_CXX_FLAGS "${ScaLFMM_CXX_FLAGS} ${AVX_FLAGS}")
# SET( ScalFMM_USE_SSE OFF FORCE) # ne marche pas
TRY_COMPILE(COMPILE_RESULT_AVSPE ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_MODULE_PATH}/checkAVXpe.cpp COMPILE_DEFINITIONS "${CMAKE_CXX_FLAGS} ")
${CMAKE_MODULE_PATH}/checkAVXpe.cpp COMPILE_DEFINITIONS "${CMAKE_CXX_FLAGS} ${AVX_FLAGS}")
IF( NOT ${COMPILE_RESULT_AVSPE})
SET(ScaLFMM_CXX_FLAGS "${ScaLFMM_CXX_FLAGS} -D__AVXPE_INTEL_COMPILER")
ENDIF()
......@@ -521,4 +521,3 @@ MESSAGE(STATUS "SCALFMM_INCLUDES = ${SCALFMM_INCLUDES}")
##################################################################
# END #
##################################################################
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