summaryrefslogtreecommitdiff
path: root/utests
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo at intel.com>2016-03-01 07:46:09 +0800
committerYang Rong <rong.r.yang@intel.com>2016-11-08 20:38:21 +0800
commit75953841661a2c78eb03383def08f8395dfa671f (patch)
treec40c541c260657722b3431d45e303642a2a0e1ab /utests
parent8703f4e22ed7e01f23b641eaf57efab7d90c7e80 (diff)
Runtime: Add API clCreateCommandQueueWithProperties
Contributor: Luo Xionghu <xionghu.luo at intel.com> Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests')
-rw-r--r--utests/profiling_exec.cpp3
-rw-r--r--utests/utest_helper.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/utests/profiling_exec.cpp b/utests/profiling_exec.cpp
index 437a6285..1859134f 100644
--- a/utests/profiling_exec.cpp
+++ b/utests/profiling_exec.cpp
@@ -52,7 +52,8 @@ static void profiling_exec(void)
/* Because the profiling prop, we can not use default queue. */
- profiling_queue = clCreateCommandQueue(ctx, device, CL_QUEUE_PROFILING_ENABLE, &status);
+ const cl_queue_properties properties[] = {CL_QUEUE_PROPERTIES, CL_QUEUE_PROFILING_ENABLE, 0};
+ profiling_queue = clCreateCommandQueueWithProperties(ctx, device, properties, &status);
OCL_ASSERT(status == CL_SUCCESS);
OCL_CREATE_KERNEL("compiler_fabs");
diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp
index 65c97bb8..f9adbc66 100644
--- a/utests/utest_helper.cpp
+++ b/utests/utest_helper.cpp
@@ -509,9 +509,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 = clCreateCommandQueue(ctx, device, 0, &status);
+ queue = clCreateCommandQueueWithProperties(ctx, device, 0, &status);
if (status != CL_SUCCESS) {
- fprintf(stderr, "error calling clCreateCommandQueue\n");
+ fprintf(stderr, "error calling clCreateCommandQueueWithProperties\n");
goto error;
}