summaryrefslogtreecommitdiff
path: root/kernels/compiler_vote_all.cl
blob: 1918c1cd02fd94ccb3ce67684f59160434e2b82b (plain)
1
2
3
4
5
6
7
8
9
10
__kernel void
compiler_vote_all(__global uint *src, __global uint *dst)
{
  int id = (int)get_global_id(0);
  if (__gen_ocl_all(id > 8))
    dst[id] = src[id];
  else
    dst[id] = 0;
}