Commit 946e6ff9 by Kai Westerkamp

neo device fix

parent 35e399a3
...@@ -90,7 +90,9 @@ bool CAssignmentBase::InitCLContext() ...@@ -90,7 +90,9 @@ bool CAssignmentBase::InitCLContext()
{ {
// Getting the available devices. // Getting the available devices.
cl_uint countDevices; cl_uint countDevices;
clGetDeviceIDs(platformIds[i], deviceType, 1, &deviceIds[countAllDevices], &countDevices); cl_int clError;
clError = clGetDeviceIDs(platformIds[i], deviceType, 1, &deviceIds[countAllDevices], &countDevices);
V_RETURN_FALSE_CL(clError, "Failed to create the command queue in the context");
for (size_t j = 0; j < countDevices; j++) for (size_t j = 0; j < countDevices; j++)
{ {
......
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