Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e05608cc02
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.241 kb
#pragma OPENCL EXTENSION cl_khr_fp64: enable
__kernel void sum(
__global const double *a,
__global const double *b,
__global double *c,
long n)
int gid = get_global_id(0);
if (gid < n)
c[gid] = a[gid] + b[gid];
Jump to Line
Something went wrong with that request. Please try again.