This commit is contained in:
Blaise Tine
2019-11-22 15:14:59 -05:00
parent 8db9e6bf9c
commit e284f4bc27
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];
}