summaryrefslogtreecommitdiff
path: root/loop.cl
blob: f19c49d5621e8e0dba4fedce5bd849fb522a02a0 (plain)
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;
  }
}