nvidia-uvm is only loaded with
sudo. I'm using
nvidia-352 driver, so I added in my
/etc/modprobe.d/bumblebee.conf file the next line
alias nvidia-uvm nvidia_352_uvm
Thus, the optirun command should be able to load nvidia-uvm when using cuda or opencl. Then, I see my programs working only when using "sudo optirun", so in order to test if the module itselfs loads, I put the following line:
$ optirun modprobe nvidia-uvm modprobe: ERROR: could not insert 'nvidia_352_uvm': Operation not permitted
When I do
sudo optirun modprobe nvidia-uvm there's no error message and the module is loaded.
I can just imagine that Bumblebee doesn't have the right to access
nvidia_352_uvm without root, which is weird because it can access
nvidia_352 for openGL programs (
optirun glxspheres64 for example is working fine).