Blender Git Loki

Git Commits -> Revision e6099c7

Revision e6099c7 by Jeroen Bakker (master)
February 26, 2019, 11:45 (GMT)
T61576: Do Not (Re-)Compile OpenCL kernels

The goal of this patch is to have limit the number of times
kernels needs to be compiled and are reused as kernels with
different compile directives can lead to identical same
binaries.

The implementation does this by stripping the compile directives.
and reshuffling kernels so the output is more likely to be the
same.

We focussed on the kernels where it was easy to detect and maintain
(bundle, bake, displace, do_volume and background). More optimizations
could be done but they are probably less obvious.

Merged the data_init and state_buffer_size kernels to split_bundle.

This patch will also remove empty kernels for do_volume and bake
when their features are not enabled.

When using the benchmark files there are less background, bake and
do_volume kernels compiled.

Fix: T61576, T61501, T61466

Reviewed By: brecht, #cycles

Differential Revision: https://developer.blender.org/D4390

Commit Details:

Full Hash: e6099c7e46f6ca90dff3dc62d06db7fcb276e790
Parent Commit: 7e40a23
Lines Changed: +144, -86

4 Modified Paths:

/intern/cycles/device/device_split_kernel.cpp (+6, -2) (Diff)
/intern/cycles/device/opencl/opencl.h (+1, -14) (Diff)
/intern/cycles/device/opencl/opencl_split.cpp (+135, -70) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_split_bundle.cl (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021