[Beignet] [PATCH] utest: write to dst buffer to fix utest failure
xionghu.luo at intel.com
xionghu.luo at intel.com
Mon Nov 23 05:42:18 PST 2015
From: Ruiling Song <ruiling.song at intel.com>
the utest will check on this.
Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
kernels/compiler_double_div.cl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernels/compiler_double_div.cl b/kernels/compiler_double_div.cl
index 4eada2d..3022f51 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) {
--
2.4.1
More information about the Beignet
mailing list