summaryrefslogtreecommitdiff
path: root/kernels/compiler_simd_all.cl
blob: 504710bbd44361dd3daaad76d5fc38be6564eeee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
__kernel void compiler_simd_all(global int *src, global int *dst)
{
  int i = get_global_id(0);
  if (i % 2 == 1) {
    if (__gen_ocl_simd_all((src[i] < 12) && (src[i] > 0)))
      dst[i] = 1;
    else
      dst[i] = 2;
  }
  else
    dst[i] = 3;
}