Ubuntu – How to make OpenCL work on 14.10 + Nvidia 331.89 drivers


Proprietary drivers 331.89 do not give me OpenCL. (tried both tested/updates)
for a while I had version 304.123 that worked – except I wanted the current drivers, and now are unable to downgrade.

Anyway – I could downgrade by workaround, but I wish 331.89 worked.

I used "darktable -d opencl" as test
alos added symbolic link to darktable, but that does not help with 331.89

Best Answer

I too was confounded by this perplexing problem until I found a series of forum posts bout Virtual Lighttable in which the participants do some debugging. It turns out that the NVIDIA drivers need a custom modprobe rule that is not installed by default with either nvidia-331 or the the opencl drivers. These rules are provided in the nvidia-modprobe package.

Here is a list of all of the packages you will need to get OpenCL working on Ubuntu 14.10 with NVIDIA drivers:

sudo apt-get install nvidia-331 nvidia-331-uvm nvidia-opencl-dev nvidia-modprobe

EDIT: In case anyone encounters a similar problem on Ubuntu 15.04 and the NVIDIA 346.59 drivers, the command to fix the issue is nearly identical:

sudo apt-get install nvidia-346 nvidia-346-uvm nvidia-opencl-dev nvidia-modprobe
Related Question