This commit is contained in:
Blaise Tine
2019-11-22 15:14:59 -05:00
parent 2b04203918
commit f3ea5820c1
14 changed files with 209 additions and 214 deletions

View File

@@ -0,0 +1,8 @@
kernel void
vecadd (__global const int *a,
__global const int *b,
__global int *c)
{
int gid = get_global_id(0);
c[gid] = a[gid] + b[gid];
}