[Bf-blender-cvs] [7ea7c2a] master: Cycles: Fix inconsistent command line used for runtime kernel compilation
Sergey Sharybin
noreply at git.blender.org
Mon Feb 2 11:01:23 CET 2015
Commit: 7ea7c2aab27776d458504d9c8d8cdeff8d219210
Author: Sergey Sharybin
Date: Mon Feb 2 15:00:21 2015 +0500
Branches: master
https://developer.blender.org/rB7ea7c2aab27776d458504d9c8d8cdeff8d219210
Cycles: Fix inconsistent command line used for runtime kernel compilation
Basically build-time compiled kernels were using --fast-math (which is correct)
but run-time compiled did not.
===================================================================
M intern/cycles/device/device_cuda.cpp
===================================================================
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index f6ad6c0..79a1a2b 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -276,7 +276,8 @@ public:
path_create_directories(cubin);
string command = string_printf("\"%s\" -arch=sm_%d%d -m%d --cubin \"%s\" "
- "-o \"%s\" --ptxas-options=\"-v\" -I\"%s\" -DNVCC -D__KERNEL_CUDA_VERSION__=%d",
+ "-o \"%s\" --ptxas-options=\"-v\" --use_fast_math -I\"%s\" "
+ "-DNVCC -D__KERNEL_CUDA_VERSION__=%d",
nvcc, major, minor, machine, kernel.c_str(), cubin.c_str(), include.c_str(), cuda_version);
if(experimental)
More information about the Bf-blender-cvs
mailing list