summaryrefslogtreecommitdiff
path: root/vec_load.cl
diff options
context:
space:
mode:
Diffstat (limited to 'vec_load.cl')
-rw-r--r--vec_load.cl11
1 files changed, 11 insertions, 0 deletions
diff --git a/vec_load.cl b/vec_load.cl
new file mode 100644
index 0000000..1b955a0
--- /dev/null
+++ b/vec_load.cl
@@ -0,0 +1,11 @@
+
+__kernel void vec_load(__global int * out, __global int4* in)
+{
+ int4 value = in[0];
+
+
+ out[0] = value.s0;
+ out[1] = value.s1;
+ out[2] = value.s2;
+ out[3] = value.s3;
+}