summaryrefslogtreecommitdiff
path: root/kernels/compiler_function_argument.cl
diff options
context:
space:
mode:
authorBenjamin Segovia <segovia.benjamin@gmail.com>2012-05-17 17:41:49 +0000
committerKeith Packard <keithp@keithp.com>2012-08-10 16:17:39 -0700
commit065319efdb2ffdfcb0f599452570ee3fcaaf4cde (patch)
treec99cf713443b64a40c3eb169dcc02e633df9d94f /kernels/compiler_function_argument.cl
parent277f7a6b26901b089bbc4a4a53dbd88787653108 (diff)
Added more tests for function arguments
Diffstat (limited to 'kernels/compiler_function_argument.cl')
-rw-r--r--kernels/compiler_function_argument.cl7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernels/compiler_function_argument.cl b/kernels/compiler_function_argument.cl
new file mode 100644
index 00000000..fe6de28f
--- /dev/null
+++ b/kernels/compiler_function_argument.cl
@@ -0,0 +1,7 @@
+__kernel void
+compiler_function_argument(__global int *dst, int value)
+{
+ int id = (int)get_global_id(0);
+ dst[id] = value;
+}
+