OpenCL with Nvidia 390 on Ubuntu 18.04

On 16.04, OpenCL worked with my Nvidia 840M running the latest Nvidia drivers in the Ubuntu repos.

I've done a fresh install for 18.04, however using the 390 Nvidia drivers from the Ubuntu repos (not from any PPA). Now none of my OpenCL compatible applications are able to use it.

Am I wrong that OpenCL should just work once the Nvidia drivers are installed?

6

1 Answer

Typical, after I resort to Askubuntu I manage to find the solution.

In 18.04 you need to manually install the ocl-icd-libopencl1 package. So a quick sudo apt install ocl-icd-libopencl1 fixed it.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like