diff options
Diffstat (limited to 'kernels/compiler_lower_return2.cl')
-rw-r--r-- | kernels/compiler_lower_return2.cl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernels/compiler_lower_return2.cl b/kernels/compiler_lower_return2.cl new file mode 100644 index 00000000..9fa8ad60 --- /dev/null +++ b/kernels/compiler_lower_return2.cl @@ -0,0 +1,11 @@ +__kernel void +compiler_lower_return2(__global int *src, __global int *dst) { + const int id = get_global_id(0); + dst[id] = id; + while (dst[id] > src[id]) { + if (dst[id] > 10) return; + dst[id]--; + } + dst[id] += 2; +} + |