summaryrefslogtreecommitdiff
path: root/global_id.cl
blob: 720bebb78810a81f9f47d4d88a77a8a42a89d846 (plain)
1
2
3
4
5
6
7

__kernel void global_id(__global int * out)
{
  unsigned id = get_global_id(0);
  out[id] = id;
}