summaryrefslogtreecommitdiff
path: root/utests/runtime_pipe_query.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/runtime_pipe_query.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/runtime_pipe_query.cpp')
-rw-r--r--utests/runtime_pipe_query.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/runtime_pipe_query.cpp b/utests/runtime_pipe_query.cpp
index 3ce82580..e46f5ff9 100644
--- a/utests/runtime_pipe_query.cpp
+++ b/utests/runtime_pipe_query.cpp
@@ -1,6 +1,8 @@
#include <string.h>
#include "utest_helper.hpp"
static void runtime_pipe_query(void) {
+ if(!cl_check_ocl20(false))
+ return;
const size_t w = 16;
const size_t sz = 8;
cl_uint retnum, retsz;