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