I'm trying to disable -use_fast_math for a single .cu file in my project but I'm having no luck in my cmake file.
-use_fast_math is the whole project default, set via
SET(CMAKE_CUDA_FLAGS_RELEASE "-O3 -use_fast_math")
but I can't figure out how to not set -use_fast_math for subsequent individual files. I have seen
set_source_files_properties(${slow_math_files} PROPERTIES COMPILE_FLAGS "-use_fast_math=false " )
but of course -use_fast_math doesn't take a parameter, and I can't find a way to remove a cuda flag. Also I'm uncertain if the above method sets the correct cuda flag correctly too.
Any advice?