From 613e829897adf860b3a0082c43d6d7a70ddee5b6 Mon Sep 17 00:00:00 2001 From: Homer Hsing Date: Mon, 8 Jul 2013 15:50:40 +0800 Subject: [PATCH] test const-indexed global constant array A test case is updated, to test three feature: variable-indexed global constant array const-indexed global constant array global constant scalar Signed-off-by: Homer Hsing Reviewed-by: Yang, Rong R --- kernels/compiler_global_constant.cl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernels/compiler_global_constant.cl b/kernels/compiler_global_constant.cl index 5e2e0b4..5db58d6 100644 --- a/kernels/compiler_global_constant.cl +++ b/kernels/compiler_global_constant.cl @@ -1,9 +1,10 @@ constant int m[3] = {71,72,73}; constant int n = 1; +constant int o[3] = {1, 1, 1}; __kernel void compiler_global_constant(__global int *dst, int e, int r) { int id = (int)get_global_id(0); - dst[id] = m[id%3] * n + e + r; + dst[id] = m[id%3] * n * o[2] + e + r; } -- 2.7.4