diff options
author | Luo Xionghu <xionghu.luo@intel.com> | 2016-04-21 18:50:40 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-04-22 18:13:12 +0800 |
commit | 830d3c32d00669f7eec5d80a083b3a0a88b39d11 (patch) | |
tree | 7e5ae3183877cb3e404ee9cc9ba08305b78726cd /utests/compiler_popcount.cpp | |
parent | 0eebe2536c8e76cd20867d1ca00ba4735736f629 (diff) | |
download | beignet-830d3c32d00669f7eec5d80a083b3a0a88b39d11.tar.gz |
fix failed cases for stand alone utest;
1. use clEnqueueMapBuffer/Image instead of clEnqueueReadBuffer/Image;
2. add sanity check for clEnqueueMapImage;
v2: disable OpenCL 2.0 specific builtin cases for stand alone utest.
v3: don't hide failed cases. fix utest build warnings.
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_popcount.cpp')
-rw-r--r-- | utests/compiler_popcount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/compiler_popcount.cpp b/utests/compiler_popcount.cpp index c960ae6b..c1496904 100644 --- a/utests/compiler_popcount.cpp +++ b/utests/compiler_popcount.cpp @@ -51,7 +51,7 @@ void test(const char *kernel_name, int s_type) OCL_MAP_BUFFER(1); OCL_ASSERT(((T*)buf_data[1])[0] == 0); for (int i = 1; i < n; ++i){ - OCL_ASSERT(((T*)buf_data[1])[i] == n-i-s_type); + OCL_ASSERT(((T*)buf_data[1])[i] == (T)n-i-s_type); } OCL_UNMAP_BUFFER(1); } |