Cycles: Improve memory usage of CPU split kernel by using smaller global size

This commit is contained in:
Mai Lavelle
2017-03-17 01:31:11 -04:00
parent 60a344b43d
commit 2cae58524c
2 changed files with 2 additions and 2 deletions

View File

@@ -142,6 +142,7 @@ bool DeviceSplitKernel::path_trace(DeviceTask *task,
/* Number of elements in the global state buffer */
int num_global_elements = global_size[0] * global_size[1];
assert(num_global_elements % WORK_POOL_SIZE == 0);
/* Allocate all required global memory once. */
if(first_tile) {