mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 13:27:29 -04:00
5 lines
138 B
Common Lisp
5 lines
138 B
Common Lisp
__kernel void saxpy(__global float *src, __global float *dst, float factor)
|
|
{
|
|
long i = get_global_id(0);
|
|
dst[i] += src[i] * factor;
|
|
}
|