diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2016-11-28 15:47:50 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-11-30 18:19:55 +0800 |
commit | cfc24a2bd6e878901c92137ea6d565a7a7e80944 (patch) | |
tree | dc149271afa41a48e556a1fdb87215be7532ba6c /utests/utest_helper.cpp | |
parent | 6114cb3aa531fb393890668079aa4e1ab9e59c79 (diff) | |
download | beignet-cfc24a2bd6e878901c92137ea6d565a7a7e80944.tar.gz |
revert clCreateCommandQueue* from ocl2.0 back to 1.2 in utests
since utests is designed to be a general stand-alone application,
it is better to use ocl1.2 version API, otherwise, link error on
some platforms with only ocl1.2.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest_helper.cpp')
-rw-r--r-- | utests/utest_helper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp index b713b79a..f1a4bdd0 100644 --- a/utests/utest_helper.cpp +++ b/utests/utest_helper.cpp @@ -511,9 +511,9 @@ cl_ocl_init(void) cl_test_channel_type_string(fmt[i].image_channel_data_type)); /* We are going to push NDRange kernels here */ - queue = clCreateCommandQueueWithProperties(ctx, device, 0, &status); + queue = clCreateCommandQueue(ctx, device, 0, &status); if (status != CL_SUCCESS) { - fprintf(stderr, "error calling clCreateCommandQueueWithProperties\n"); + fprintf(stderr, "error calling clCreateCommandQueue\n"); goto error; } |