Change implementation of simple_kernel_9.

Change-Id: I22686ac1f17b5b01d991e16c7e690a2fb109088f
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-07-05 11:50:18 +02:00
parent 1022ad4aac
commit 931bd04a99

View File

@@ -125,5 +125,6 @@ __kernel void simple_kernel_8(__global uint *dst, uint incrementationsCount) {
}
__kernel void simple_kernel_9(__global uint *dst) {
dst[get_sub_group_id()]++;
uint offset = get_max_sub_group_size() * get_sub_group_id();
dst[get_sub_group_local_id() + offset] = get_local_id(0);
}