From cd1e78f1b705c4fff3152d349534d25617877b9f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 6 Dec 2011 12:29:54 +0000 Subject: Cycles: scons cuda kernel compile now does one kernel at a time, to reduce memory usage. --- intern/cycles/kernel/SConscript | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'intern/cycles') 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') -- cgit v1.2.3