Skip to content

Commit 453f76f

Browse files
AndreyPavlenkokurapov-peter
authored andcommitted
[GpuOclRuntime] Fixed createQueue()
The queue properties, passed to clCreateCommandQueueWithProperties() are not valid.
1 parent 27a7da6 commit 453f76f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/gc/ExecutionEngine/GPURuntime/ocl/GpuOclRuntime.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,10 @@ OclRuntime::createQueue(bool outOfOrder) const {
490490
cl_command_queue queue;
491491
#ifdef CL_VERSION_2_0
492492
cl_queue_properties properties[] = {
493-
CL_QUEUE_PROPERTIES, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE,
494-
static_cast<cl_queue_properties>(outOfOrder ? 1 : 0)};
493+
CL_QUEUE_PROPERTIES,
494+
static_cast<cl_queue_properties>(
495+
outOfOrder ? CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE : 0),
496+
0};
495497
queue = clCreateCommandQueueWithProperties(ext.context, ext.device,
496498
properties, &err);
497499
#else

0 commit comments

Comments
 (0)