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.
This commit is contained in:
2011-12-06 16:00:57 +00:00
parent fc72660bed
commit b7649ea757
2 changed files with 8 additions and 6 deletions

View File

@@ -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')