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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-06 16:29:54 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-06 16:29:54 +0400
commitcd1e78f1b705c4fff3152d349534d25617877b9f (patch)
treea74e6ab47de3b5c3fc696033d4f7ad87a1061577 /intern/cycles
parentfca9c231a0a798bbb0ba2f65c61adcc668f93eb1 (diff)
Cycles: scons cuda kernel compile now does one kernel at a time, to reduce memory
usage.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/kernel/SConscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/kernel/SConscript b/intern/cycles/kernel/SConscript
index c9beb3ad0ae..7749f94818e 100644
--- a/intern/cycles/kernel/SConscript
+++ b/intern/cycles/kernel/SConscript
@@ -34,6 +34,7 @@ if env['WITH_BF_CYCLES_CUDA_BINARIES']:
# dependencies
dependencies = ['kernel.cu'] + kernel.Glob('*.h') + kernel.Glob('../util/*.h') + kernel.Glob('svm/*.h')
+ last_cubin_file = None
# add command for each cuda architecture
for arch in cuda_archs:
@@ -46,5 +47,10 @@ if env['WITH_BF_CYCLES_CUDA_BINARIES']:
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
+
Return('kernel_binaries')