1 2 3 4 5 6 7
__kernel void global_id(__global int * out) { unsigned id = get_global_id(0); out[id] = id; }