summaryrefslogtreecommitdiff
path: root/backend/kernels/test_select.cl
blob: ff4284b01500f872dee356a372b30a228e2a982c (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "stdlib.h"
__kernel void test_select(__global int *dst, __global int *src)
{

  if (src[get_global_id(0)] > 1)
    dst[get_global_id(0)] = 1;
  else
    dst[get_global_id(0)] = 2;
}