-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access secondary GPU - error: Could not load GPU driver #604
Comments
What are the LibraryPath and XorgModulePath set to in bumblebee.conf ? Can you manually load nvidia-current with modprobe? |
Thanks for the quick reply! Before I go further, I'll assert that the nvidia driver and bumblebee are installed via dkms. Here are the stats from my bumblebee.conf:
I was able to load nvidia-current using That, however, is when I remembered a certain issue I've had for many months, where Blender would be unable to use CUDA, stating that it was unable to load nvidia-uvm - the very same module that was next to nvidia-current in the output of When I finally found a way to brute force nvidia-uvm to load (modprobe was not working), I could not turn off the GPU any more with Bumblebee should have been able to find the modules in |
Does For issues around unloading nvidia-uvm, see 1ada79f |
Sorry for the late reply.
Just to be certain, I ran |
As per #623, the problem might be that nvidia need nvidia-uvm but is unable to load it. Need to look at this. |
I absolutely needed OpenCL to work with Darktable so I created a quick fix :
#/bin/sh
gksudo modprobe nvidia_352_uvm && # Because I run nvidia-352 but replace with your correct driver version and module
darktable
exit
optirun sh opencl-program.sh It's not optimal but it works. Notice you have to load nvidia_***_uvm through optirun command and in the same console than your program call to make it work. Be careful to be sure that the script ended properly and the "exit" command was reached to close the Bumblebee process after your program, or kill it the hard way if something went wrong in your script. Otherwise, if you load another program with optirun, your system will crash. As soon as the script is finished or the console closed, the uvm module is unloaded so you will have to redo the modprobe command if you whish to load another program with the GPU. You can check the loaded modules with : optirun lsmod Notice that the latest Nvidia drivers seem to name the uvm module with underscore _ instead of dash -. You can check your actual modules names with the command : ls /lib/modules/$(uname -r)/updates/dkms/ |
Well this means will also need to take care of loading nvidia_uvm (and possible nvidia_modeset) if they don’t on they own. |
I'm just going to post my recent troubles, in case anyone might benefit: It seems that the The error I was getting from My solution was to upgrade my In terms of OpenCL, the solution might, just maybe, be similar on Debian-based distributions (from my limited understanding, OpenCL seems to load the same way as CUDA) - though this is a completely untested claim 😃 Cheers! Specs for Reference:
|
Here are my proposed solutions as promised in #762:
Partial content of
|
OK, so that’s a packaging issue. I suppose that everyone should try to get this accepted in its distro nvidia package if facing this. Changing to Documentation. |
The error above happens when I try to optirun something, glxgears or otherwise. I work with Blender 3D, making not being able to access my GPU extremely frustrating.
When I run optirun -vvv glxgears, I get this (just the important bit):
My bumblebee.conf has Driver=nvidia and KernelDriver=nvidia-current (which I determined by running find
/lib/modules/$(uname -r) -name 'nvidia*.ko*'
as per the troubleshooting instructions in the wiki).Here are my system specs:
Thank you in advance!
The text was updated successfully, but these errors were encountered: