Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
e95ada35
Commit
e95ada35
authored
Sep 23, 2014
by
COULAUD Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check Intel compiler when using MPI.
parent
33db3f4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
CMakeLists.txt
CMakeLists.txt
+8
-1
CMakeModules/compileTestIntel.cpp
CMakeModules/compileTestIntel.cpp
+13
-0
No files found.
CMakeLists.txt
View file @
e95ada35
...
...
@@ -38,6 +38,12 @@ SET(ScalFMM_VERSION "${ScalFMM_MAJOR_VERSION}.${ScalFMM_MINOR_VERSION}.${ScalFM
# Active language
# -----------------------
ENABLE_LANGUAGE
(
CXX
)
if
(
ScalFMM_USE_MPI
)
TRY_COMPILE
(
COMPILE_INTEL
${
CMAKE_CURRENT_BINARY_DIR
}
${
CMAKE_MODULE_PATH
}
/compileTestIntel.cpp COMPILE_DEFINITIONS
"
${
CMAKE_CXX_FLAGS
}
"
)
if
(
COMPILE_INTEL
)
SET
(
CMAKE_CXX_COMPILER_ID
"Intel"
)
endif
()
endif
()
MESSAGE
(
STATUS
" CXX
${
CMAKE_CXX_COMPILER_ID
}
"
)
#
...
...
@@ -150,7 +156,7 @@ else()
ELSE
(
APPLE
)
# Not apple system - Check the compiler flags
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Intel"
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"
${
FLAGS_64bits
}
-
march=native -
fp-model precise -fp-model source -fimf-precision=low -funroll-loops -ftree-vectorize"
CACHE STRING
"Set your optimization flags for release mode."
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"
${
FLAGS_64bits
}
-fp-model precise -fp-model source -fimf-precision=low -funroll-loops -ftree-vectorize"
CACHE STRING
"Set your optimization flags for release mode."
)
else
()
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"
${
FLAGS_64bits
}
-ffast-math -funroll-loops -ftree-vectorize"
CACHE STRING
"Set your optimization flags for release mode."
)
endif
()
...
...
@@ -174,6 +180,7 @@ endif(ScalFMM_ATTACHE_SOURCE)
#
if
(
ScalFMM_USE_BLAS
)
OPTION
(
ScalFMM_USE_MKL_AS_BLAS
"Set to ON to use MKL CBLAS"
OFF
)
MESSAGE
(
STATUS
"CMAKE_CXX_COMPILER_ID STREQUAL
${
CMAKE_CXX_COMPILER_ID
}
"
)
if
(
ScalFMM_USE_MKL_AS_BLAS
)
IF
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Intel"
)
SET
(
BLAS_LIBRARIES
"-mkl=sequential"
CACHE STRING
"Set your MKL flags"
)
...
...
CMakeModules/compileTestIntel.cpp
0 → 100644
View file @
e95ada35
int
main
(){
int
i
;
#ifdef __INTEL_COMPILER
i
=
0
;
#else
#error 'Not Intel Compiler "
#endif
}
Write
Preview
Markdown
is supported
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