Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
7c153db4
Commit
7c153db4
authored
Feb 16, 2015
by
BRAMAS Berenger
Browse files
Move -D sse avx operator choice to cmakedefine in config file
parent
f43f7b03
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
7c153db4
...
...
@@ -310,7 +310,7 @@ if( ScalFMM_USE_SSE )
TRY_COMPILE
(
COMPILE_RESULT_VAR
${
CMAKE_CURRENT_BINARY_DIR
}
${
CMAKE_MODULE_PATH
}
/checkSSEpe.cpp COMPILE_DEFINITIONS
"
${
CMAKE_CXX_FLAGS
}
${
SSE_FLAGS
}
"
)
IF
(
NOT
${
COMPILE_RESULT_VAR
}
)
SET
(
ScaLFMM_CXX_FLAGS
"
${
ScaLFMM_CXX_FLAGS
}
-D
__SSEPE_INTEL_COMPILER
"
)
SET
(
__SSEPE_INTEL_COMPILER
ON
)
ENDIF
()
# SET(ScalFMM_USE_AVX OFF)
ELSE
(
${
COMPILE_SSE
}
)
...
...
@@ -335,7 +335,7 @@ if(ScalFMM_USE_AVX)
TRY_COMPILE
(
COMPILE_RESULT_AVSPE
${
CMAKE_CURRENT_BINARY_DIR
}
${
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
"
)
SET
(
__AVXPE_INTEL_COMPILER
ON
)
ENDIF
()
MESSAGE
(
STATUS
${
CMAKE_CXX_FLAGS
}
)
...
...
Src/ScalFmmConfig.h.cmake
View file @
7c153db4
...
...
@@ -71,12 +71,14 @@
///////////////////////////////////////////////////////
#cmakedefine ScalFMM_USE_SSE
#cmakedefine __AVXPE_INTEL_COMPILER
///////////////////////////////////////////////////////
// AVX
///////////////////////////////////////////////////////
#cmakedefine ScalFMM_USE_AVX
#cmakedefine __SSEPE_INTEL_COMPILER
///////////////////////////////////////////////////////
// STARPU
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment