Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
63680e00
Commit
63680e00
authored
Mar 12, 2014
by
Olivier Coulaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add floating point arithmetic options
parent
bb3e769b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+2
-2
Tests/Kernels/testNewCompareKernels.cpp
Tests/Kernels/testNewCompareKernels.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
63680e00
...
...
@@ -88,7 +88,7 @@ if( ScalFMM_BUILD_DEBUG )
IF
(
APPLE
)
SET
(
SCALFMM_FLAGS_OPTI_DEBUG
"-m64 -funroll-loops"
CACHE STRING
"Set your optimization flags for debug mode."
)
ELSE
(
APPLE
)
SET
(
SCALFMM_FLAGS_OPTI_DEBUG
"
${
FLAGS_64bits
}
-march=native -funroll-loops"
CACHE STRING
"Set your optimization flags for debug mode."
)
SET
(
SCALFMM_FLAGS_OPTI_DEBUG
"
${
FLAGS_64bits
}
-fp-model strict
-march=native -funroll-loops"
CACHE STRING
"Set your optimization flags for debug mode."
)
ENDIF
(
APPLE
)
# ADD_DEFINITIONS(${SCALFMM_FLAGS_OPTI_DEBUG})
SET
(
ScaLFMM_CXX_FLAGS
"
${
ScaLFMM_CXX_FLAGS
}
${
SCALFMM_FLAGS_OPTI_DEBUG
}
"
)
...
...
@@ -111,7 +111,7 @@ else()
ELSE
(
APPLE
)
# Not apple system - Check the compilater flags
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Intel"
)
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"
${
FLAGS_64bits
}
-march=native -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
-march=native -funroll-loops -ftree-vectorize"
CACHE STRING
"Set your optimization flags for release mode."
)
else
()
SET
(
SCALFMM_FLAGS_OPTI_RELEASE
"
${
FLAGS_64bits
}
-ffast-math -flto -march=native -funroll-loops -ftree-vectorize"
CACHE STRING
"Set your optimization flags for release mode."
)
endif
()
...
...
Tests/Kernels/testNewCompareKernels.cpp
View file @
63680e00
...
...
@@ -372,7 +372,7 @@ int main(int argc, char* argv[])
#endif
{
const
static
int
P
=
7
;
const
static
int
P
=
8
;
typedef
FRotationCell
<
P
>
CellClass
;
typedef
FP2PParticleContainerIndexed
<>
ContainerClass
;
typedef
FSimpleLeaf
<
ContainerClass
>
LeafClass
;
...
...
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