Skip to content

Instantly share code, notes, and snippets.

@redroc
redroc / HelloWorld.cl
Last active Jan 11, 2019
opencl_HelloWorld
View HelloWorld.cl
__kernel void hello_kernel(__global const float *a,
__global const float *b,
__global float *result)
{
int gid = get_global_id(0);
result[gid] = a[gid] + b[gid];
}
You can’t perform that action at this time.