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
Show more breadcrumbs
solverstack
ScalFMM
Commits
3caff9c3
Commit
3caff9c3
authored
11 years ago
by
Olivier COULAUD
Browse files
Options
Downloads
Patches
Plain Diff
Modifications pour MacOs X 10.8.4 et gcc 4.8.1
parent
eb160204
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+20
-10
20 additions, 10 deletions
CMakeLists.txt
with
20 additions
and
10 deletions
CMakeLists.txt
+
20
−
10
View file @
3caff9c3
...
...
@@ -39,12 +39,12 @@ OPTION( ScalFMM_USE_BLAS "Set to ON to build ScaFMM with BLAS" OFF )
OPTION
(
ScalFMM_USE_TRACE
"Set to ON to print trace or use itac trace"
OFF
)
OPTION
(
ScalFMM_BUILD_TESTS
"Set to ON to build fonctionnalities Tests"
OFF
)
OPTION
(
ScalFMM_BUILD_UTESTS
"Set to ON to build UTests"
OFF
)
OPTION
(
ScalFMM_BUILD_DEBUG
"Set to ON to build in Debug"
OFF
)
OPTION
(
ScalFMM_USE_MEM_STATS
"Set to ON to profile memory"
OFF
)
OPTION
(
ScalFMM_USE_DOUBLE_PRECISION
"Set to ON to compile in double precision"
ON
)
OPTION
(
ScalFMM_ATTACHE_SOURCE
"Set to ON to compile with -g"
OFF
)
OPTION
(
ScalFMM_USE_ADDONS
"Set to ON to compile add ons"
OFF
)
OPTION
(
ScalFMM_USE_SSE
"Set to ON to compile with sse support"
ON
)
OPTION
(
ScalFMM_BUILD_DEBUG
"Set to ON to build in Debug"
OFF
)
OPTION
(
ScalFMM_USE_MEM_STATS
"Set to ON to profile memory"
OFF
)
OPTION
(
ScalFMM_USE_DOUBLE_PRECISION
"Set to ON to compile in double precision"
ON
)
OPTION
(
ScalFMM_ATTACHE_SOURCE
"Set to ON to compile with -g"
OFF
)
OPTION
(
ScalFMM_USE_ADDONS
"Set to ON to compile add ons"
OFF
)
OPTION
(
ScalFMM_USE_SSE
"Set to ON to compile with sse support"
ON
)
#
SET
(
SCALFMM_LIBRARIES
""
)
...
...
@@ -64,7 +64,7 @@ if( ScalfMM_BUILD_DEBUG )
# Compile optimization
IF
(
APPLE
)
SET
(
SCALFMM_FLAGS_OPTI_DEBUG
"-m64
-march=native
-funroll-loops"
CACHE STRING
"Set your optimization flags for debug mode."
)
SET
(
SCALFMM_FLAGS_OPTI_DEBUG
"-m64 -funroll-loops"
CACHE STRING
"Set your optimization flags for debug mode."
)
ELSE
()
# Test if not apple and 64bits
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
...
...
@@ -86,7 +86,7 @@ else()
# Compile optimization
IF
(
APPLE
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-m64 -Ofast
-march=native
-funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-m64 -Ofast -funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
ELSE
()
# Test if not apple and 64bits
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
...
...
@@ -131,7 +131,13 @@ if( ScalFMM_USE_BLAS )
endif
()
# Compile option
ADD_DEFINITIONS
(
-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -fpic -std=c++11
)
ADD_DEFINITIONS
(
-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -fpic
)
#
# C++ 2011
ADD_DEFINITIONS
(
-std=c++11
)
IF
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Intel"
AND APPLE
)
ADD_DEFINITIONS
(
-stdlib=libstdc++
)
endif
()
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/Src/ScalFmmConfig.h.cmake
${
CMAKE_BINARY_DIR
}
/Src/ScalFmmConfig.h
)
...
...
@@ -140,7 +146,11 @@ CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/Src/ScalFmmConfig.h.cmake
# Use SSE
MESSAGE
(
STATUS
"ScalFMM_USE_SSE =
${
ScalFMM_USE_SSE
}
"
)
if
(
ScalFMM_USE_SSE
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-msse -msse2 -msse3 -mfpmath=sse"
)
IF
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Intel"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-axAVX"
)
ELSE
()
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-msse -msse2 -msse3 -mfpmath=sse"
)
ENDIF
()
endif
()
# Use Mem stats
...
...
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