summaryrefslogtreecommitdiff
path: root/utests/builtin_kernel_block_motion_estimate_intel.cpp
diff options
context:
space:
mode:
authorRebecca N. Palmer <rebecca_palmer@zoho.com>2016-10-12 23:38:03 +0100
committerYang Rong <rong.r.yang@intel.com>2016-10-20 13:31:37 +0800
commit76f892abb0e8fa1e8ab60a926b84ba6fb14a5a7e (patch)
treeac5c95bab96d782e1fac4b003ccb9f7da1dea80d /utests/builtin_kernel_block_motion_estimate_intel.cpp
parent26f23c2a73ff08ba0f64333972bb15ce1d7ec155 (diff)
downloadbeignet-76f892abb0e8fa1e8ab60a926b84ba6fb14a5a7e.tar.gz
Utests: Allow testing cl_intel_accelerator via ICD
v3: Use extension check, not beignet check. Treat claiming to have the extension but not having the kernel as a failure. v4: Make extension check a function, use stderr. Signed-off-by: Rebecca N. Palmer <rebecca_palmer@zoho.com> Reviewed-by: Chuanbo Weng <chuanbo.weng@intel.com>
Diffstat (limited to 'utests/builtin_kernel_block_motion_estimate_intel.cpp')
-rw-r--r--utests/builtin_kernel_block_motion_estimate_intel.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/utests/builtin_kernel_block_motion_estimate_intel.cpp b/utests/builtin_kernel_block_motion_estimate_intel.cpp
index 15bf7611..092b1d52 100644
--- a/utests/builtin_kernel_block_motion_estimate_intel.cpp
+++ b/utests/builtin_kernel_block_motion_estimate_intel.cpp
@@ -8,6 +8,9 @@ OCLRELEASEACCELERATORINTEL * oclReleaseAcceleratorIntel = NULL;
void builtin_kernel_block_motion_estimate_intel(void)
{
+ if (!cl_check_motion_estimation()) {
+ return;
+ }
char* built_in_kernel_names;
size_t built_in_kernels_size;
cl_int err = CL_SUCCESS;
@@ -21,7 +24,8 @@ void builtin_kernel_block_motion_estimate_intel(void)
if (strstr(built_in_kernel_names, "block_motion_estimate_intel") == NULL)
{
free(built_in_kernel_names);
- return;
+ fprintf(stderr, "Can't find block_motion_estimate_intel built-in kernel");
+ OCL_ASSERT(0);
}
cl_program built_in_prog = clCreateProgramWithBuiltInKernels(ctx, 1, &device, built_in_kernel_names, &err);