Skip to content
Snippets Groups Projects
Commit bf85ec98 authored by Martin Bauer's avatar Martin Bauer
Browse files

CMake use CUDA fast-math if WALBERLA_BUILD_WITH_FASTMATH

parent 2049c5bf
No related merge requests found
......@@ -1102,6 +1102,9 @@ if ( WALBERLA_BUILD_WITH_CUDA )
list ( APPEND CUDA_NVCC_FLAGS "-g -G" )
endif()
if( WALBERLA_BUILD_WITH_FASTMATH )
list ( APPEND CUDA_NVCC_FLAGS "-use_fast_math" )
endif()
# Bug with gcc5 and cuda7.5:
#list( APPEND CUDA_NVCC_FLAGS "-D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__")
......
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