aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/opencl_kernel.cl
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/lib/opencl_kernel.cl')
-rw-r--r--gdb/testsuite/lib/opencl_kernel.cl5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/opencl_kernel.cl b/gdb/testsuite/lib/opencl_kernel.cl
new file mode 100644
index 0000000..32cba64
--- /dev/null
+++ b/gdb/testsuite/lib/opencl_kernel.cl
@@ -0,0 +1,5 @@
+/* OpenCL kernel for testing purposes. */
+__kernel void testkernel (__global int *data)
+{
+ data[get_global_id(0)] = 0x1;
+}