diff options
author | Homer Hsing <homer.xing@intel.com> | 2013-05-02 11:12:20 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-05-02 12:57:00 +0800 |
commit | 63e60ed2686b22c1a098ffec7f533a7e95f2c773 (patch) | |
tree | cd2a947973b007b811d3717f82bdfe6500f1e35a /kernels/compiler_global_constant.cl | |
parent | d0f10c38843b1f8f1e3a688b86a4139661816583 (diff) | |
download | beignet-63e60ed2686b22c1a098ffec7f533a7e95f2c773.tar.gz |
test cases for global constant arrays
version 4
Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'kernels/compiler_global_constant.cl')
-rw-r--r-- | kernels/compiler_global_constant.cl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernels/compiler_global_constant.cl b/kernels/compiler_global_constant.cl new file mode 100644 index 00000000..af3c7b1d --- /dev/null +++ b/kernels/compiler_global_constant.cl @@ -0,0 +1,8 @@ +constant int m[3] = {71,72,73}; + +__kernel void +compiler_global_constant(__global int *dst, int e, int r) +{ + int id = (int)get_global_id(0); + dst[id] = m[id%3] + e + r; +} |