From 8726605ea77b5633c1f31c71e5a20aadcc38ed44 Mon Sep 17 00:00:00 2001 From: Pan Xiuli Date: Tue, 24 Jan 2017 16:47:58 +0800 Subject: 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 Signed-off-by: Pan Xiuli Reviewed-by: Yang Rong --- utests/runtime_pipe_query.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utests/runtime_pipe_query.cpp') 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 #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; -- cgit v1.2.1