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; }