Open
Description
MWE:
$ python -c "import pyopencl; print(pyopencl.get_platforms())"
[<pyopencl.Platform 'NVIDIA CUDA' at 0x5b7c78be31c0>]
$ clinfo -l
Platform #0: Intel(R) FPGA Emulation Platform for OpenCL(TM)
`-- Device #0: Intel(R) FPGA Emulation Device
Platform #1: Intel(R) OpenCL
`-- Device #0: Intel(R) Xeon(R) W-2245 CPU @ 3.90GHz
Platform #2: NVIDIA CUDA
`-- Device #0: Quadro P400
So pyopencl does not find platforms whose shared objects are found in the OCL_ICD_FILENAMES
environment variable. I'm not sure why since get_platforms
simply wraps clGetPlatformIDs
, doesn't it?