Hi,
I'm able to compile and run OpenCL + NVIDIA + Ubuntu 18.04 under Lazarus.
This is what I did:
apt-get install nvidia-384 nvidia-opencl-icd-384 clinfo
After installing, reboot your machine.
I tried first to download drivers from nvidia website but my VM crashed hard when installing these drivers and I had to trash the VM. Therefore, I think that it's easier to just install plain ubuntu packages above.
Then, I did a hack:
cd /usr/lib/x86_64-linux-gnu
ln -s libOpenCL.so.1.0.0 libOpenCL.so
Question: is there a better alternative than the hack (ln -s) above?