vecadd
This commit is contained in:
8
benchmarks/opencl/vecadd/kernel.cl
Normal file
8
benchmarks/opencl/vecadd/kernel.cl
Normal 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];
|
||||
}
|
||||
Reference in New Issue
Block a user