In non-interactive mode, create_some_context currently always chooses the first device of the first platform. This fails if this has no devices (eg. it is the wrong one for the available hardware), and will be slow if if is the CPU. This patch makes it search through the platforms for a device, preferring a GPU if available. As discussed earlier, this will allow making OpenCL just work (at least for hardware that has a free ICD) by defaulting to installing all ICDs. This requires the "Make get_devices() return an empty list instead of erroring out" fix you just sent upstream.
Thanks for the patch. I'll first upload fixed PyOpenCL to main, and then work on it. Probably I'll first want to have some discussion on mailing list - as I do not use GPGPUs now, I'd like to have opinion of users of PyOpenCL before introducing such a change. Best regards.
Dear submitter, as the package pyopencl has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/748785 The version of this package that was in Debian prior to this removal can still be found using http://snapshot.debian.org/. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Scott Kitterman (the ftpmaster behind the curtain)