Cycles: Support multithreaded compilation of kernels
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 15 Feb 2019 07:18:38 +0000 (08:18 +0100)
committerJeroen Bakker <j.bakker@atmind.nl>
Fri, 15 Feb 2019 07:49:25 +0000 (08:49 +0100)
commit4ce9785e01587638ae26256fe23315e436c658ff
tree338144aec436dc68a6fdd9240786988dd3f8705e
parentd17a0270344101c4cd6e5026ea8239240868d24f
Cycles: Support multithreaded compilation of kernels

This patch implements a workaround to get the multithreaded compilation from D2231 working.
So far, it only works for Blender, not for Cycles Standalone. Also, I have only tested the Linux codepath in the helper function.
Depends on D2231.

Reviewers: brecht, dingto, sergey, juicyfruit, lukasstockner97

Reviewed By: brecht

Subscribers: Loner, jbakker, candreacchio, 3dLuver, LazyDodo, bliblubli

Differential Revision: https://developer.blender.org/D2264
12 files changed:
intern/cycles/blender/CMakeLists.txt
intern/cycles/blender/blender_python.cpp
intern/cycles/device/device_intern.h
intern/cycles/device/opencl/opencl.h
intern/cycles/device/opencl/opencl_base.cpp
intern/cycles/device/opencl/opencl_mega.cpp
intern/cycles/device/opencl/opencl_split.cpp
intern/cycles/device/opencl/opencl_util.cpp
intern/cycles/kernel/CMakeLists.txt
intern/cycles/kernel/kernels/opencl/kernel_split_bundle.cl [new file with mode: 0644]
intern/cycles/util/util_system.cpp
intern/cycles/util/util_system.h