Commit 96e043ae authored by bbguimaraes's avatar bbguimaraes
Browse files

hcwocl: replace deprecated OpenCL function

parent 6265dd82
......@@ -248,8 +248,8 @@ inline void DeviceUtilsCL::initDevice( DeviceDataBase* deviceDataBase, DriverTyp
CLASSERT( status == CL_SUCCESS );
debugPrintf("Using %s\n", buff);
deviceData->m_commandQueues[i] = clCreateCommandQueue( deviceData->m_contexts[i], deviceData->m_deviceIds[i], (enableProfiling)?CL_QUEUE_PROFILING_ENABLE:NULL, NULL );
const cl_command_queue_properties props = (enableProfiling)?CL_QUEUE_PROFILING_ENABLE:0;
deviceData->m_commandQueues[i] = clCreateCommandQueueWithProperties(deviceData->m_contexts[i], deviceData->m_deviceIds[i], &props, NULL);
CLASSERT( status == CL_SUCCESS );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment