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
3caff9c3
Commit
3caff9c3
authored
Sep 10, 2013
by
COULAUD Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modifications pour MacOs X 10.8.4 et gcc 4.8.1
parent
eb160204
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
CMakeLists.txt
CMakeLists.txt
+20
-10
No files found.
CMakeLists.txt
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
...
...
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