summaryrefslogtreecommitdiff
path: root/kernels/compiler_array0.cl
blob: 3ab0fb8bc768b68970fc08388a28c0568c6c8dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
__kernel void
compiler_array0(__global int *src, __global int *dst)
{
  int i;
  int final[16];
  for (i = 0; i < 16; ++i) {
    int array[16], j;
    for (j = 0; j < 16; ++j)
      array[j] = get_global_id(0);
    for (j = 0; j < src[0]; ++j)
      array[j] = 1+src[j];
    final[i] = array[i];
  }
  dst[get_global_id(0)] = final[get_global_id(0)];
}