diff options
author | Mai Lavelle <mai.lavelle@gmail.com> | 2017-04-06 12:08:35 +0300 |
---|---|---|
committer | Mai Lavelle <mai.lavelle@gmail.com> | 2017-04-07 13:06:08 +0300 |
commit | 91b9db07248c5b7061d8d0907629169e742002f7 (patch) | |
tree | e2d3882bd6b7a748e9de23f3f1690cf75cc3451f /intern/cycles/device/device_split_kernel.cpp | |
parent | 8f85ee2fc920c1ad82b5d465302bdfc3e5790b23 (diff) |
Cycles: Change work pool and global size of split CPU for easier debugging
Diffstat (limited to 'intern/cycles/device/device_split_kernel.cpp')
-rw-r--r-- | intern/cycles/device/device_split_kernel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/device/device_split_kernel.cpp b/intern/cycles/device/device_split_kernel.cpp index 30e7a58281c..fa641161c05 100644 --- a/intern/cycles/device/device_split_kernel.cpp +++ b/intern/cycles/device/device_split_kernel.cpp @@ -151,7 +151,8 @@ bool DeviceSplitKernel::path_trace(DeviceTask *task, /* Calculate max groups */ /* Denotes the maximum work groups possible w.r.t. current requested tile size. */ - unsigned int max_work_groups = num_global_elements / WORK_POOL_SIZE + 1; + unsigned int work_pool_size = (device->info.type == DEVICE_CPU) ? WORK_POOL_SIZE_CPU : WORK_POOL_SIZE_GPU; + unsigned int max_work_groups = num_global_elements / work_pool_size + 1; /* Allocate work_pool_wgs memory. */ work_pool_wgs.resize(max_work_groups * sizeof(unsigned int)); |