Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2011-12-06 20:00:57 +0400
committerThomas Dinges <blender@dingto.org>2011-12-06 20:00:57 +0400
commitb7649ea7578e90a15a0584142c9a2720731eedfe (patch)
treef5c5e579a96ff5060d49414864f3f5e99f4edc96 /intern/cycles/kernel/SConscript
parentfc72660bedf306aacbf32917a176a7714076aaf6 (diff)
Cycles / CUDA Kernel compile:
* Added option "WITH_BF_CYCLES_CUDA_THREADED_COMPILE" for the people who have much RAM (8 or more) and can compile several kernels at the same time. If enabled, it uses the general BF_NUMJOBS flag. * The option is off per default.
Diffstat (limited to 'intern/cycles/kernel/SConscript')
-rw-r--r--intern/cycles/kernel/SConscript11
1 files changed, 6 insertions, 5 deletions
diff --git a/intern/cycles/kernel/SConscript b/intern/cycles/kernel/SConscript
index 7749f94818e..eb99680efe4 100644
--- a/intern/cycles/kernel/SConscript
+++ b/intern/cycles/kernel/SConscript
@@ -46,11 +46,12 @@ if env['WITH_BF_CYCLES_CUDA_BINARIES']:
kernel.Depends(cubin_file, dependencies)
kernel_binaries.append(cubin_file)
-
- # trick to compile one kernel at a time to reduce memory usage
- if last_cubin_file:
- kernel.Depends(cubin_file, last_cubin_file)
- last_cubin_file = cubin_file
+
+ if not env['WITH_BF_CYCLES_CUDA_THREADED_COMPILE']:
+ # trick to compile one kernel at a time to reduce memory usage
+ if last_cubin_file:
+ kernel.Depends(cubin_file, last_cubin_file)
+ last_cubin_file = cubin_file
Return('kernel_binaries')