diff options
Diffstat (limited to 't/test.cl')
-rw-r--r-- | t/test.cl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/test.cl b/t/test.cl new file mode 100644 index 0000000..89ed7eb --- /dev/null +++ b/t/test.cl @@ -0,0 +1,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]; + } +} |