summaryrefslogtreecommitdiff
path: root/kernels/compiler_double.cl
blob: a84f1428162209cec61a76e123ef208bcf7b887f (plain)
1
2
3
4
5
6
7
8
9
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
kernel void compiler_double(global double *src, global double *dst) {
  int i = get_global_id(0);
  double d = 1.234567890123456789;
  if (i < 14)
    dst[i] = d * (src[i] + d);
  else
    dst[i] = 14;
}