Hey folks, I appear to have the same situation: Nvidia GT 1030 on Ubuntu 18.04. This card ran perfectly when the same machine was running 16.04. Now, running 18.04, I am only getting CPU work and finding this message in the logs: "NVidia device (or driver) doesn't support OpenCL". Since this very same card ran fine before, I know it's not a matter of the GT 1030 not supporting OpenCL.

The nvidia driver version is 410, which came out on Oct 16. This is definitely a newer driver than the one I was running on Ubuntu 16.04, which could be the issue. But I'm wondering if there's something else going on here regarding the OpenCL support. Do the nvidia drivers provide that themselves, or is there a separate library that is needed? Thoughts?

Yes (I believe). I've never used Ubuntu so I have no knowledge of exactly what package, though.

I've seen output like yours reported many times and the answer has always been to find and install the appropriate compute libs. Did you get the driver from nvidia or from some repository? I imagine you will need to find the libs package at the same place. If it came directly from nvidia, you might have more success if you get both driver and libs from a Ubuntu repository. The 1030 is hardly the latest and greatest GPU so going with the very latest driver (likely optimised for the newest hardware) could even give you worse results than a somewhat older repo version.

Well everyone, I solved this problem and hope this helps others. As a refresher, I upgraded my machine from ubuntu 16.04 to ubuntu 18.04, and boinc suddenly didn't think that my nvidia GT 1030 GPU was OpenCL-capable. Since I had been crunching for the last six months with it, I knew this wasn't true.

I don't know which of the above two installs did the trick, or if they're both needed together, or if any driver but the 390 driver would have worked with these two installs, but boinc now recognizes that my nvidia GT 1030 supports OpenCL. It immediately downloaded a bunch of GPU work and started crunching.

Note that the installs are not version-specific, and that the original article was about getting nvidia drivers to run OpenCL apps on a much older nvidia driver version (331). So opencl-dev and modprobe seem to be necessary for all nvidia drivers to work properly for OpenCL apps. I'm guessing that maybe my original ubuntu 16.04 setup had these two libraries already installed, while 18.04 did not.

Many thanks to Gary Roberts and Mmonnin who responded to my original post and reassured me that this was a solve-able problem.

So opencl-dev and modprobe seem to be necessary for all nvidia drivers to work properly for OpenCL apps.

I think the dev package is not necessary. Maybe that advice originates from the time when a soft link that BOINC relied on to detect OpenCL capability was moved from the main package to dev, but this has since been addressed in BOINC. What could have happened here, however, is that OpenCL was installed by dependencies. On my Debian systems I routinely install nvidia-opencl-icd for that purpose:

Interesting, when I have some time (or am reinstalling ubuntu) I'll try installing nvidia-opencl-icd and see if that does the trick right out of the gate. I know for a fact that on my ubuntu 16.04 machine I never had this issue and did not install anything other then the nvidia driver itself. Curious about what changed for 18.04.

Interesting, when I have some time (or am reinstalling ubuntu) I'll try installing nvidia-opencl-icd

Oh, please ignore that. It seems Ubuntu's packaging scheme has changed and there's no such package any more. I guess libnvidia-compute is what you'll want now, but without any personal experience don't take my word.