diff options
author | Pan Xiuli <xiuli.pan@intel.com> | 2017-01-24 16:47:58 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2017-02-10 14:22:05 +0800 |
commit | 8726605ea77b5633c1f31c71e5a20aadcc38ed44 (patch) | |
tree | 582ebf0dc1b9228a0aab149eda78ff655e27330c /utests/compiler_sampler.cpp | |
parent | 85b948d174d404d5a3af097b8b216442f3e2931b (diff) |
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_sampler.cpp')
-rw-r--r-- | utests/compiler_sampler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/compiler_sampler.cpp b/utests/compiler_sampler.cpp index f8bf622c..853e052c 100644 --- a/utests/compiler_sampler.cpp +++ b/utests/compiler_sampler.cpp @@ -3,6 +3,8 @@ void compiler_sampler(void) { + if(!cl_check_ocl20(false)) + return; OCL_CREATE_KERNEL("compiler_sampler"); OCL_ASSERT(ctx != 0); |