Skip to content

Commit

Permalink
Fix typo in get_devices empty fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Apr 22, 2014
1 parent 5e5ff5f commit ddba0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrapper/wrap_cl.hpp
Expand Up @@ -852,7 +852,7 @@ namespace pyopencl
{
cl_int status_code;
status_code = clGetDeviceIDs(m_platform, devtype, 0, 0, &num_devices);
if (status_code != CL_DEVICE_NOT_FOUND)
if (status_code == CL_DEVICE_NOT_FOUND)
num_devices = 0;
else if (status_code != CL_SUCCESS) \
throw pyopencl::error("clGetDeviceIDs", status_code);
Expand Down

0 comments on commit ddba0ad

Please sign in to comment.