Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
9eed9d39
Commit
9eed9d39
authored
Sep 26, 2013
by
BRAMAS Berenger
Browse files
remove ofast and use fmath
parent
8e7b6b0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
9eed9d39
...
...
@@ -90,13 +90,13 @@ else()
# Compile optimization
IF
(
APPLE
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-m64 -
O
fast -funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-m64 -
f
fast
-math
-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
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-m64 -
O
fast -flto -march=native -funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-m64 -
f
fast
-math
-flto -march=native -funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
else
()
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-
O
fast -flto -march=native -funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"-
f
fast
-math
-flto -march=native -funroll-loops"
CACHE STRING
"Set your optimization flags for release mode."
)
endif
()
ENDIF
()
ADD_DEFINITIONS
(
${
SCALFMM_FLAGS_OPTI_RELEASE
}
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment