mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
Update kernel source.
Change-Id: I2985f35eefc799d9c322ebd96dd1ace4ef9aee72
This commit is contained in:
@@ -47,6 +47,9 @@ __kernel void simple_kernel_4() {
|
|||||||
|
|
||||||
__kernel void simple_kernel_5(__global uint *dst) {
|
__kernel void simple_kernel_5(__global uint *dst) {
|
||||||
atomic_inc(dst);
|
atomic_inc(dst);
|
||||||
|
uint groupIdX = get_group_id(0);
|
||||||
|
__global uint* groupCounters = dst+1;
|
||||||
|
atomic_inc(&groupCounters[groupIdX]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SIMPLE_KERNEL_6_ARRAY_SIZE 256
|
#define SIMPLE_KERNEL_6_ARRAY_SIZE 256
|
||||||
|
|||||||
Reference in New Issue
Block a user