summaryrefslogtreecommitdiff
path: root/utests/utest_helper.hpp
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2017-01-24 16:47:58 +0800
committerYang Rong <rong.r.yang@intel.com>2017-02-10 14:22:05 +0800
commit8726605ea77b5633c1f31c71e5a20aadcc38ed44 (patch)
tree582ebf0dc1b9228a0aab149eda78ff655e27330c /utests/utest_helper.hpp
parent85b948d174d404d5a3af097b8b216442f3e2931b (diff)
downloadbeignet-8726605ea77b5633c1f31c71e5a20aadcc38ed44.tar.gz
Utest: Add OCL20 into utest and check version in runtime
The utest should always be built and we can check ocl version at the test begin. Contributor: Rebecca N. Palmer <rebecca_palmer@zoho.com> 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.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp
index a7613258..1bc810cf 100644
--- a/utests/utest_helper.hpp
+++ b/utests/utest_helper.hpp
@@ -310,8 +310,8 @@ extern clGetKernelSubGroupInfoKHR_cb* utestclGetKernelSubGroupInfoKHR;
/* Check if cl_intel_motion_estimation enabled. */
extern int cl_check_motion_estimation(void);
-/* Check is cl version 2.0. */
-extern int cl_check_ocl20(void);
+/* Check is cl version 2.0 or Beignet extension. */
+extern int cl_check_ocl20(bool or_beignet = true);
/* Check is FP16 enabled. */
extern int cl_check_half(void);