1 2 3 4 5 6 7 8
__kernel void loop(__global int * out) { unsigned i; for (i = 0; i < 10; i++) { unsigned id = get_global_id(0) + i; out[id] = id; } }