From b33d83bf51e8a7ecbecde4cc8392c3c7767bc87c Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 26 May 2014 16:48:30 +0200 Subject: [PATCH] Attempted fix for T40363: CUDA 30% slowdown in testbuilds compared to 2.70. CMake had this --fast-math flag but scons not, makes a big difference on some files. Slightly slower rendering might still happen though, but it should not be this much. --- intern/cycles/kernel/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/kernel/SConscript b/intern/cycles/kernel/SConscript index 04e1bad7538..ef28f7b6d91 100644 --- a/intern/cycles/kernel/SConscript +++ b/intern/cycles/kernel/SConscript @@ -74,7 +74,7 @@ if env['WITH_BF_CYCLES_CUDA_BINARIES']: # nvcc flags nvcc_flags = "-m%s" % (bits) - nvcc_flags += " --cubin --ptxas-options=\"-v\"" + nvcc_flags += " --cubin --ptxas-options=\"-v\" --use_fast_math" nvcc_flags += " -D__KERNEL_CUDA_VERSION__=%d" % (cuda_version) nvcc_flags += " -DCCL_NAMESPACE_BEGIN= -DCCL_NAMESPACE_END= -DNVCC" nvcc_flags += " -I \"%s\" -I \"%s\" -I \"%s\" -I \"%s\"" % (util_dir, svm_dir, geom_dir, closure_dir)