From b7649ea7578e90a15a0584142c9a2720731eedfe Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Tue, 6 Dec 2011 16:00:57 +0000 Subject: 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. --- intern/cycles/kernel/SConscript | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'intern/cycles') 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') -- cgit v1.2.3