You are not logged in.
Pages: 1
I'm trying to install pyopencl on my machine to play around with it and have run into what seems to be a very common bug with all sorts of ways it can crop up.
>>> import pyopencl
>>> pyopencl.create_some_context()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.5/site-packages/pyopencl/__init__.py", line 1350, in create_some_context
platforms = get_platforms()
File "/usr/lib/python3.5/site-packages/pyopencl/cffi_cl.py", line 585, in get_platforms
_handle_error(_lib.get_platforms(platforms.ptr, platforms.size))
File "/usr/lib/python3.5/site-packages/pyopencl/cffi_cl.py", line 561, in _handle_error
raise e
pyopencl.cffi_cl.LogicError: clgetplatformids failed: PLATFORM_NOT_FOUND_KHRI tried everything suggested in This SO post to no avail. I've installed the all the recommended packages, including opencl-nvidia, ocl-icd, and cuda. Pyopencl was installed through pip. I've tried running as root, so I know it isn't a permissions issue. Any help would be much appreciated
Offline
Pages: 1