summaryrefslogtreecommitdiff
path: root/utests/compiler_program_global.cpp
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/compiler_program_global.cpp
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/compiler_program_global.cpp')
-rw-r--r--utests/compiler_program_global.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/compiler_program_global.cpp b/utests/compiler_program_global.cpp
index a583c60a..caadf8b8 100644
--- a/utests/compiler_program_global.cpp
+++ b/utests/compiler_program_global.cpp
@@ -21,6 +21,8 @@ static int init_program(const char* name, cl_context ctx, cl_program *pg )
void compiler_program_global()
{
+ if(!cl_check_ocl20(false))
+ return;
const int n = 16;
cl_int err;