summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuiling Song <ruiling.song@intel.com>2015-11-23 21:42:18 +0800
committerYang Rong <rong.r.yang@intel.com>2015-12-10 15:10:50 +0800
commit16b0d62bb01fcc229aa92bc55a0a1c783a8043d5 (patch)
treec6beed397a27b3e482d4549d7744563b10f7253c
parent8ce59f4005e29c06ca6dc561a0f136855537d535 (diff)
utest: write to dst buffer to fix utest failure
the utest will check on this. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--kernels/compiler_double_div.cl2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernels/compiler_double_div.cl b/kernels/compiler_double_div.cl
index 4eada2d8..3022f514 100644
--- a/kernels/compiler_double_div.cl
+++ b/kernels/compiler_double_div.cl
@@ -3,6 +3,8 @@ kernel void compiler_double_div(global double *src1, global double *src2, global
int i = get_global_id(0);
if (i % 3 != 0)
dst[i] = src1[i] / src2[i];
+ else
+ dst[i] = 0.0;
}
kernel void compiler_double_div_uniform(double src1, double src2, double tmp, global double *dst) {