diff options
author | Luo Xionghu <xionghu.luo@intel.com> | 2016-04-23 00:37:18 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-04-22 18:13:01 +0800 |
commit | 0eebe2536c8e76cd20867d1ca00ba4735736f629 (patch) | |
tree | 97b06ecf8d59cd8994d89ddbfe78f82773cfa413 /utests/compiler_copy_image.cpp | |
parent | 2d5c0576f0bdf2ad739f3778623b85d15465ec83 (diff) |
standalone utest for unified OpenCL implementation.
use the variable NOT_BUILD_STAND_ALONE_UTEST to control the build type:
for beignet build, set it to 1; for stand alone build, do NOT need set
it.
remove all clXXXIntel extension call and such kind of tests since we
intend to provide the unit test independently for viariant OpenCL
implementation; replace the clMapBufferIntel/clMapBufferGTTIntel
with clEnqueueMapBuffer/clEnqueueMapImage; link the utest binary to
libOpenCL to follow the icd standard; remove the useless env in
setenv.sh since we need make install the package after build.
v2:
fix the indent error;
use function pointer for extesion case like vme and libva since we link to libOpenCL;
v3: builtin_kernel_block_motion_estimate_intel released kernel twice;
v4:
find OpenCL library for standalone utest and link to libcl for not
standalone utest;
check default variables in setenv.sh whether empty before use.
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_copy_image.cpp')
-rw-r--r-- | utests/compiler_copy_image.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utests/compiler_copy_image.cpp b/utests/compiler_copy_image.cpp index 150fd8a4..ca15cc67 100644 --- a/utests/compiler_copy_image.cpp +++ b/utests/compiler_copy_image.cpp @@ -44,13 +44,13 @@ static void compiler_copy_image(void) OCL_NDRANGE(2); // Check result - OCL_MAP_BUFFER(0); - OCL_MAP_BUFFER(1); + OCL_MAP_BUFFER_GTT(0); + OCL_MAP_BUFFER_GTT(1); for (uint32_t j = 0; j < h; ++j) for (uint32_t i = 0; i < w; i++) OCL_ASSERT(((uint32_t*)buf_data[0])[j * w + i] == ((uint32_t*)buf_data[1])[j * w + i]); - OCL_UNMAP_BUFFER(0); - OCL_UNMAP_BUFFER(1); + OCL_UNMAP_BUFFER_GTT(0); + OCL_UNMAP_BUFFER_GTT(1); OCL_CALL(clReleaseSampler, sampler); } |