summaryrefslogtreecommitdiff
path: root/kernels
diff options
context:
space:
mode:
authorBenjamin Segovia <benjamin.segovia@intel.com>2012-11-02 18:42:03 -0700
committerBenjamin Segovia <benjamin.segovia@intel.com>2012-11-02 18:42:03 -0700
commitacf533c95233de265e127c60e3bbdc0f73d0439d (patch)
tree296ca223b8a549722796f9b6c6d11803e0b1e5df /kernels
parent4c5a0cfb128318adfdbc6d87cf77689584ee5bfb (diff)
downloadbeignet-acf533c95233de265e127c60e3bbdc0f73d0439d.tar.gz
Add support for insertion into vector of constants
Diffstat (limited to 'kernels')
-rw-r--r--kernels/compiler_insert_to_constant.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernels/compiler_insert_to_constant.cl b/kernels/compiler_insert_to_constant.cl
new file mode 100644
index 00000000..f94c5c30
--- /dev/null
+++ b/kernels/compiler_insert_to_constant.cl
@@ -0,0 +1,6 @@
+__kernel void compiler_insert_to_constant(__global int4 *dst) {
+ int4 value = (int4)(0,1,2,3);
+ value.z = get_global_id(0);
+ dst[get_global_id(0)] = value;
+}
+