diff options
Diffstat (limited to 'kernels/compiler_private_const.cl')
-rw-r--r-- | kernels/compiler_private_const.cl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernels/compiler_private_const.cl b/kernels/compiler_private_const.cl new file mode 100644 index 00000000..7fad369d --- /dev/null +++ b/kernels/compiler_private_const.cl @@ -0,0 +1,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)]; +} + |