summaryrefslogtreecommitdiff
path: root/kernels/compiler_function_constant.cl
blob: ca7e8743668e58230b14d813558c13f0a2ed3209 (plain)
1
2
3
4
5
6
__kernel void
compiler_function_constant(__constant short *c, __global int *dst, int value)
{
  int id = (int)get_global_id(0);
  dst[id] = value + c[id%69];
}