You are not logged in.

#1 2016-08-18 20:19:20

billobob
Member
Registered: 2016-08-18
Posts: 1

Pyopencl fails to work with nvidia drivers

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_KHR

I 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

Board footer

Powered by FluxBB