openaccel-lab
aien-dev/openaccel-lab
Brought by drakestapleton
openaccel-lab / workloads / vecadd / kernel.cl
| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | __kernel void vecadd(__global const float *a, __global const float *b, __global float *y, const int n) |
| 3 | { |
| 4 | int i = get_global_id(0); |
| 5 | if (i < n) |
| 6 | y[i] = a[i] + b[i]; |
| 7 | } |