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
3aba6018
Commit
3aba6018
authored
Nov 12, 2013
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move to O3 opti
parent
8fc0a545
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
CMakeLists.txt
CMakeLists.txt
+5
-5
No files found.
CMakeLists.txt
View file @
3aba6018
...
...
@@ -80,9 +80,9 @@ if( ScalFMM_BUILD_DEBUG )
ADD_DEFINITIONS
(
${
SCALFMM_FLAGS_OPTI_DEBUG
}
)
else
()
SET
(
CMAKE_BUILD_TYPE Release
)
# force -O
2
in release
SET
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
-O
2
"
)
STRING
(
REPLACE
"-O
3
"
""
CMAKE_CXX_FLAGS_RELEASE
${
CMAKE_CXX_FLAGS_RELEASE
}
)
# force -O
3
in release
SET
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
-O
3
"
)
STRING
(
REPLACE
"-O
2
"
""
CMAKE_CXX_FLAGS_RELEASE
${
CMAKE_CXX_FLAGS_RELEASE
}
)
# if compiler is intel add -ip
IF
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Intel"
)
ADD_DEFINITIONS
(
-ip
)
...
...
@@ -94,9 +94,9 @@ else()
ELSE
()
# Test if not apple and 64bits
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-m64 -ffast-math -flto -march=native -funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-m64 -ffast-math -flto -march=native -funroll-loops
-ftree-vectorize
"
CACHE STRING
"Set your optimization flags for release mode."
)
else
()
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-ffast-math -flto -march=native -funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-ffast-math -flto -march=native -funroll-loops
-ftree-vectorize
"
CACHE STRING
"Set your optimization flags for release mode."
)
endif
()
ENDIF
()
ADD_DEFINITIONS
(
${
SCALFMM_FLAGS_OPTI_RELEASE
}
)
...
...
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