opencl-template/saxpy.cl

6 lines
125 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);
2019-03-11 21:58:38 +01:00
y[i] += a * x[i];
2018-04-23 12:56:24 +02:00
}