GTX 960, 378.13 driver.
HD4000 (i7 3770)
K Ubuntu 16.04
Well, this is a recurring problem. With different versions of Kubuntu/nvidia drivers, sometimes it has worked for me, and sometimes it does not work.
The thing is, I allways have CUDA available in Blender 3D if I have selected ‘nvidia’ in Prime from nvidia-settings GUI. So please bear this in mind: CUDA “works fine” with nvidia as the primary display.
But if I select ‘intel’, I stop having CUDA available in Blender 3D.
These are the packages installed from PPA:
$ sudo dpkg -l | grep -i nvidia
ii bbswitch-dkms 0.8-3ubuntu1 amd64 Interface for toggling the power on NVIDIA Optimus video cards
ii libcuda1-378 378.13-0ubuntu0~gpu16.04.3 amd64 NVIDIA CUDA runtime library
ii libcuinj64-7.5:amd64 7.5.18-0ubuntu1 amd64 NVIDIA CUINJ Library (64-bit)
ii nvidia-378 378.13-0ubuntu0~gpu16.04.3 amd64 NVIDIA binary driver - version 378.13
ii nvidia-modprobe 361.28-1 amd64 utility to load NVIDIA kernel modules and create device nodes
rc nvidia-opencl-icd-367 367.44-0ubuntu0~gpu16.04.1 amd64 NVIDIA OpenCL ICD
rc nvidia-opencl-icd-370 370.28-0ubuntu0~gpu16.04.1 amd64 NVIDIA OpenCL ICD
ii nvidia-opencl-icd-378 378.13-0ubuntu0~gpu16.04.3 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.2 amd64 Tools to enable NVIDIA’s Prime
ii nvidia-profiler 7.5.18-0ubuntu1 amd64 NVIDIA Profiler for CUDA and OpenCL
ii nvidia-settings 378.13-0ubuntu0~gpu14.04.1 amd64 Tool for configuring the NVIDIA graphics driver
And please, do not ask me to install the very unfriendly .run file. Every time I tried to do it I ended up breaking my system.
So, any solution that works long term for this recurring problem?