Could not load nvidia-uvm

I want to use CUDA on my pc (using bumblebee), but whenever I want to start a cuda-driven program, I get the error modprobe: FATAL: Module nvidia-uvm not found. I already installed nvidia-337-uvm via apt-get, but nvidia-modprobe can not find the module. So, what am I doing wrong? System is Ubuntu 14.04.
Thank you!


Solution 1:

I got the same problem on my machine, I find the solution here:

Edit the file /etc/modprobe.d/bumblebee.conf or create a new file if you are not using bumblebee and add a line to it:

alias nvidia-uvm nvidia-340-uvm

You should replace nvidia-340-uvm into the version you are using. You can find it by

sudo updatedb
locate --regex nvidia-.*-uvm.ko

Solution 2:

Thank you! But my string differs:

alias nvidia-uvm nvidia_352_uvm

Because:

$ locate --regex nvidia.*uvm.ko
/lib/modules/3.19.0-39-generic/updates/dkms/nvidia_352_uvm.ko
/var/lib/dkms/nvidia-352/352.63/3.19.0-39-generic/x86_64/module/nvidia_352_uvm.ko

Maybe it will help anybody more.