After struggling for two days to get OpenCL and Cuda working on my new shiny Kubuntu 15.04 and none of the usual tricks working, here are my notes:
- Do the bumblebee dance
- Check that
/etc/OpenCL/vendors/nvidia.icd
containslibnvidia-opencl.so.1
- Maybe
sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so
to enable standard OpenCL programs like darktable - Check that
/etc/bumblebee/bumblebee.conf
and/etc/modprobe.d/nvidia-*-bumblebee.conf
both contain the right driver version - Run the following commands before executing any GPU code:
optirun fish # or bash, gives you an NVIDIA-enabled prompt
sudo clinfo # prime the device nodes
clinfo # should succeed now
All in all really easy, but pretty confusing, since under Kubuntu 14 optirun clinfo
sufficed...