Commit 183feec3 authored by COULAUD Olivier's avatar COULAUD Olivier

Change Flag name for opertors +=, -= if we use Intel compiler (To check on Linux)

parent b16a0225
......@@ -209,8 +209,14 @@ ENDIF()
MESSAGE( STATUS "ScalFMM_USE_SSE = ${ScalFMM_USE_SSE}" )
if( ScalFMM_USE_SSE )
IF(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -vec -axSSE4.2")
# Set flag for old intel compiler TODO
MESSAGE(STATUS "INTEL COMPILER IS ${INTEL_VERSION} ")
if( ${INTEL_VERSION} LESS "15.0.0")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__OLD_INTEL_COMPILER")
MESSAGE(STATUS "INTEL COMPILER LOWER 15.0.0")
ENDIF()
ELSE()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2 -msse3 -mfpmath=sse")
ENDIF()
......@@ -222,7 +228,10 @@ endif()
MESSAGE(STATUS "ScalFMM_USE_AVX = ${ScalFMM_USE_AVX}")
if(ScalFMM_USE_AVX)
IF(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ")
if( ${INTEL_VERSION} LESS "15.0.0")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__OLD_INTEL_COMPILER")
MESSAGE(STATUS "INTEL COMPILER LOWER 15.0.0")
ENDIF()
ELSE()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2 -msse3 -mfpmath=sse -mavx")
ENDIF()
......
......@@ -3,7 +3,7 @@
#include "immintrin.h"
#ifdef __INTEL_COMPILER
#ifdef __OLD_INTEL_COMPILER
//Side effect operators DOUBLE
inline __m256d& operator+=(__m256d & a, const __m256d & b){
......
......@@ -11,7 +11,7 @@
#include <smmintrin.h> // SSE4
#endif
#ifdef __INTEL_COMPILER
#ifdef __OLD_INTEL_COMPILER
inline __m128d& operator+=(__m128d& v1, const __m128d& v2){
return (v1 = _mm_add_pd(v1, v2));
......
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