summaryrefslogtreecommitdiff
path: root/t/test.cl
blob: 89ed7eb44022d5b67d5b42297555aa842db2d2ae (plain)
1
2
3
4
5
6
7
8
9
10
kernel void vecAdd(global float *a,
                   global float *b,
                   global float *c,
                   const unsigned int n)
{
    int id = get_global_id(0);
    if(id < n) {
        c[id] = a[id] + b[id];
    }
}