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?