summaryrefslogtreecommitdiff
path: root/utests/compiler_double_div.cpp
diff options
context:
space:
mode:
authorJunyan He <junyan.he@linux.intel.com>2015-11-05 16:15:45 +0800
committerYang Rong <rong.r.yang@intel.com>2015-11-06 14:30:49 +0800
commit82d6af448d46364d887a020ccc31ffd31cbb032a (patch)
tree8a23110fabdf991ef175240a450c393baffdd7e6 /utests/compiler_double_div.cpp
parent9e9937ca0f2c61b5a060a574e718d3bfdb9aadac (diff)
downloadbeignet-82d6af448d46364d887a020ccc31ffd31cbb032a.tar.gz
Utest: Fix a bug for double div.
Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_double_div.cpp')
-rw-r--r--utests/compiler_double_div.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utests/compiler_double_div.cpp b/utests/compiler_double_div.cpp
index db763e30..11578cf5 100644
--- a/utests/compiler_double_div.cpp
+++ b/utests/compiler_double_div.cpp
@@ -23,12 +23,15 @@ void compiler_double_div(void)
// Run random tests
OCL_MAP_BUFFER(0);
OCL_MAP_BUFFER(1);
+ OCL_MAP_BUFFER(2);
for (int32_t i = 0; i < (int32_t) n; ++i) {
cpu_src0[i] = ((double*)buf_data[0])[i] = ((double)(((i - 5)*1334) * 11105));
cpu_src1[i] = ((double*)buf_data[1])[i] = 499.13542123d*(i + 132.43d + 142.32*i);
+ ((double*)buf_data[2])[i] = 0.0d;
}
OCL_UNMAP_BUFFER(0);
OCL_UNMAP_BUFFER(1);
+ OCL_UNMAP_BUFFER(2);
// Run the kernel on GPU
OCL_NDRANGE(1);