opencl-template/saxpy.cl

6 lines
125 B
Common Lisp

__kernel void SAXPY (__global float* x, __global float* y, float a)
{
const int i = get_global_id (0);
y[i] += a * x[i];
}