Skip to content
Snippets Groups Projects
Commit 246177b2 authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

disable fastmath if it is not explicitly enabled with WALBERLA_BUILD_WITH_FASTMATH

parent 73257366
No related merge requests found
......@@ -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
......
......@@ -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 )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment