diff options
author | Benjamin Segovia <benjamin.segovia@intel.com> | 2012-11-02 18:42:03 -0700 |
---|---|---|
committer | Benjamin Segovia <benjamin.segovia@intel.com> | 2012-11-02 18:42:03 -0700 |
commit | acf533c95233de265e127c60e3bbdc0f73d0439d (patch) | |
tree | 296ca223b8a549722796f9b6c6d11803e0b1e5df /kernels | |
parent | 4c5a0cfb128318adfdbc6d87cf77689584ee5bfb (diff) | |
download | beignet-acf533c95233de265e127c60e3bbdc0f73d0439d.tar.gz |
Add support for insertion into vector of constants
Diffstat (limited to 'kernels')
-rw-r--r-- | kernels/compiler_insert_to_constant.cl | 6 |
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; +} + |