summaryrefslogtreecommitdiff
path: root/loop_lt.cl
blob: d9b7aecb97db169c597f6e573bbfe4a7fda9b660 (plain)
1
2
3
4
5
6
7
8
9
__kernel void loop_lt(__global int * out, unsigned iterations)
{
  unsigned i;
  unsigned base = get_global_id(0) * iterations;
  for (i = 0; i < iterations; i++) {
    unsigned id = (base + i);
    out[id] = id;
  }
}