From ddba0ad6f55551324332278a48c5a5a5ac5bae8b Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Tue, 22 Apr 2014 13:01:49 -0500 Subject: [PATCH] Fix typo in get_devices empty fix --- src/wrapper/wrap_cl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrapper/wrap_cl.hpp b/src/wrapper/wrap_cl.hpp index 02ba206d..f17ee69c 100644 --- a/src/wrapper/wrap_cl.hpp +++ b/src/wrapper/wrap_cl.hpp @@ -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); -- GitLab