6 lines
127 B
Common Lisp
6 lines
127 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];
|
||
|
}
|