diff options
author | Thomas Albers <thomas@thomaslabs.org> | 2023-03-04 22:47:28 +0100 |
---|---|---|
committer | Thomas Albers <thomas@thomaslabs.org> | 2023-03-04 22:47:28 +0100 |
commit | 6fe823a614279cceb2d48507bd8e93b0efd87f94 (patch) | |
tree | 579e3c5db456667ce2aeda94f909703513179ce1 /t/test.cl |
Initial commit
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]; + } +} |