Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bbguimaraes
books
Commits
96e043ae
Commit
96e043ae
authored
Jul 16, 2021
by
bbguimaraes
Browse files
hcwocl: replace deprecated OpenCL function
parent
6265dd82
Changes
1
Hide whitespace changes
Inline
Side-by-side
hcwocl/Common/DeviceUtils/DeviceUtilsCL.inl
View file @
96e043ae
...
...
@@ -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] = clCreateCommandQueue
WithProperties
(deviceData->m_contexts[i], deviceData->m_deviceIds[i],
&props
, NULL);
CLASSERT( status == CL_SUCCESS );
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment