Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
solverstack
ScalFMM
Commits
e95ada35
Commit
e95ada35
authored
10 years ago
by
Olivier COULAUD
Browse files
Options
Downloads
Patches
Plain Diff
Check Intel compiler when using MPI.
parent
33db3f4c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+8
-1
8 additions, 1 deletion
CMakeLists.txt
CMakeModules/compileTestIntel.cpp
+13
-0
13 additions, 0 deletions
CMakeModules/compileTestIntel.cpp
with
21 additions
and
1 deletion
CMakeLists.txt
+
8
−
1
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"
)
...
...
This diff is collapsed.
Click to expand it.
CMakeModules/compileTestIntel.cpp
0 → 100644
+
13
−
0
View file @
e95ada35
int
main
(){
int
i
;
#ifdef __INTEL_COMPILER
i
=
0
;
#else
#error 'Not Intel Compiler "
#endif
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment