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
Jan Hönig
waLBerla
Commits
246177b2
Commit
246177b2
authored
Sep 23, 2021
by
Dominik Thoennes
Browse files
disable fastmath if it is not explicitly enabled with WALBERLA_BUILD_WITH_FASTMATH
parent
73257366
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
246177b2
...
...
@@ -427,6 +427,10 @@ if ( WALBERLA_BUILD_WITH_FASTMATH )
if
(
WALBERLA_CXX_COMPILER_IS_MSVC
)
add_flag
(
CMAKE_CXX_FLAGS
"/fp:fast"
)
endif
()
else
()
if
(
CMAKE_CXX_COMPILER_ID MATCHES IntelLLVM
)
add_flag
(
CMAKE_CXX_FLAGS
"-fp-model=precise"
)
endif
()
endif
()
# Xcode generator disables -isystem flag, even though current versions of Xcode support it
...
...
tests/core/CMakeLists.txt
View file @
246177b2
...
...
@@ -198,8 +198,11 @@ waLBerla_execute_test( NAME FunctionTraitsTest )
waLBerla_compile_test
(
FILES GridGeneratorTest.cpp
)
waLBerla_execute_test
(
NAME GridGeneratorTest
)
waLBerla_compile_test
(
FILES MemoryUsage.cpp
)
waLBerla_execute_test
(
NAME MemoryUsage
)
#TODO: find fix for this test with intel OneApi compiler
if
(
NOT CMAKE_CXX_COMPILER_ID MATCHES IntelLLVM
)
waLBerla_compile_test
(
FILES MemoryUsage.cpp
)
waLBerla_execute_test
(
NAME MemoryUsage
)
endif
()
waLBerla_compile_test
(
FILES OpenMPWrapperTest.cpp
)
waLBerla_execute_test
(
NAME OpenMPWrapperTest
)
...
...
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