summaryrefslogtreecommitdiff
path: root/kernels/compiler_private_const.cl
blob: 7fad369d06a7a600ed5e9b3d103fdde5d3e39bf4 (plain)
1
2
3
4
5
6
7
8
9
constant int x[16] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
__kernel void
compiler_private_const( __global int *dst)
{
  const int array0[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};

  dst[get_global_id(0)] = array0[get_global_id(0)] + x[get_global_id(0)];
}