diff options
author | Luo Xionghu <xionghu.luo at intel.com> | 2016-03-01 07:46:09 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-11-08 20:38:21 +0800 |
commit | 75953841661a2c78eb03383def08f8395dfa671f (patch) | |
tree | c40c541c260657722b3431d45e303642a2a0e1ab /utests/profiling_exec.cpp | |
parent | 8703f4e22ed7e01f23b641eaf57efab7d90c7e80 (diff) | |
download | beignet-75953841661a2c78eb03383def08f8395dfa671f.tar.gz |
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/profiling_exec.cpp')
-rw-r--r-- | utests/profiling_exec.cpp | 3 |
1 files changed, 2 insertions, 1 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"); |