diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-05-26 18:48:30 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-05-26 18:52:28 +0400 |
commit | b33d83bf51e8a7ecbecde4cc8392c3c7767bc87c (patch) | |
tree | 023842c93133c24d7d22101060412aacd794b136 | |
parent | 033b4ffdddab9aa70aada408941e463b023a76f6 (diff) |
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.
-rw-r--r-- | intern/cycles/kernel/SConscript | 2 |
1 files changed, 1 insertions, 1 deletions
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) |