diff options
Diffstat (limited to 'utests')
-rw-r--r-- | utests/profiling_exec.cpp | 3 | ||||
-rw-r--r-- | utests/utest_helper.cpp | 4 |
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; } |