summaryrefslogtreecommitdiff
path: root/kernels/runtime_use_host_ptr_buffer.cl
diff options
context:
space:
mode:
Diffstat (limited to 'kernels/runtime_use_host_ptr_buffer.cl')
-rw-r--r--kernels/runtime_use_host_ptr_buffer.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernels/runtime_use_host_ptr_buffer.cl b/kernels/runtime_use_host_ptr_buffer.cl
new file mode 100644
index 00000000..dbaadf87
--- /dev/null
+++ b/kernels/runtime_use_host_ptr_buffer.cl
@@ -0,0 +1,6 @@
+__kernel void
+runtime_use_host_ptr_buffer(__global int* buf)
+{
+ int id = (int)get_global_id(0);
+ buf[id] = buf[id] / 2;
+}