summaryrefslogtreecommitdiff
path: root/utests/utest_helper.hpp
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2016-07-19 10:55:32 +0800
committerYang Rong <rong.r.yang@intel.com>2016-07-20 17:35:52 +0800
commit8e5faaeba359bcfe0b9e7b2ee30c04c6a6c654f3 (patch)
tree8eeb7322d157a38fa9fc6c2b9a000629e83b8449 /utests/utest_helper.hpp
parentbe7edccf4378987b8f52aaea64e26180e1fb5472 (diff)
downloadbeignet-8e5faaeba359bcfe0b9e7b2ee30c04c6a6c654f3.tar.gz
Utest: Add check for OpenCL 2.0 extension
Beignet has some opencl2.0 builtin functions, add check for OpenCL 2.0 or Beignet for these test cases. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r--utests/utest_helper.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp
index 7d050569..421e356a 100644
--- a/utests/utest_helper.hpp
+++ b/utests/utest_helper.hpp
@@ -296,4 +296,7 @@ typedef cl_int(clGetKernelSubGroupInfoKHR_cb)(cl_kernel, cl_device_id,
const void *, size_t, void *,
size_t *);
extern clGetKernelSubGroupInfoKHR_cb* utestclGetKernelSubGroupInfoKHR;
+
+/* Check is cl version 2.0. */
+extern int cl_check_ocl20(void);
#endif /* __UTEST_HELPER_HPP__ */