__kernel void loop_gt(__global int * out, int iterations) { unsigned i; unsigned base = get_global_id(0) * iterations; for (i = iterations; i > 0; i--) { unsigned id = (base + i); out[id] = id; } }