aboutsummaryrefslogtreecommitdiff
path: root/test.cl
diff options
context:
space:
mode:
Diffstat (limited to 'test.cl')
-rw-r--r--test.cl5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.cl b/test.cl
new file mode 100644
index 0000000..cc587b4
--- /dev/null
+++ b/test.cl
@@ -0,0 +1,5 @@
+__kernel void test(__global float *a, __global float *b)
+{
+ unsigned int i = get_global_id(0);
+ b[i] = a[i] * 2.f;
+}