interplane.Get Omega
Read in your language

openaccel-lab

aien-dev/openaccel-lab

Brought by drakestapleton

branch main Branches Tags History

openaccel-lab / workloads / vecadd / kernel.cl

7 lines · 219 bytes Raw Blame History
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}