opencl-template/saxpy.cl

6 lines
127 B
Common Lisp
Raw Normal View History

2018-04-23 12:56:24 +02:00
__kernel void SAXPY (__global float* x, __global float* y, float a)
{
const int i = get_global_id (0);
y [i] += a * x [i];
}