-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Nvidia: driver/library version mismatch #138943
Comments
In my experience this means "time to reboot". This happens when your running kernel is using a different nvidia driver than the driver you have most recently done a nixos-rebuild with. Alternatively we could make nvidia-smi pick up the cuda driver from /run/opengl-driver/lib using addOpenGLRunpath. I am not sure if this is the correct behavior in this case, as nvidia-smi ships with the driver. Note that this is not NixOS-specific, and is the same as what you'd get on any other distro. If you apt-get upgrade, the nvidia-smi executable updates to use the new driver, but the kernel (and nvidia driver) are still the old one until you reboot. So nvidia-smi fails with the same message. |
No, it's not.
|
I marked this as stale due to inactivity. → More info |
To clarify, unless I'm mistaken the message "driver/library version mismatch" means there's a divergence between
This is usually accessed through Have you had any luck with this issue so far? |
Closing this as stale. If you're able to provide a minimum reproducer, please re-open it! |
Just for posterity: I ran into this problem due to having the equivalent of this: environment.systemPackages = [
pkgs.linuxPackages_latest.nvidia_x11
]; Removing this package made it so the correct version could be found. In hindsight, I suppose it should be obvious this was the wrong thing to do. I'm not sure if I'd found some advice stating I should do this, or just mistranslated something. This was causing a host of issues for building I was able to find this out by doing an
This put me close enough to try removing the If it's helpful for reconstruction, my kernel module version is |
@LoganBarnett We should update the manual to re-iterate that referencing specific versions of |
It seems I have collision between two different versions of nvidia-x11 derivation:
Kernel module is from nvidia-x11-470.57.02-5.13.18 but nvidia-smi is symlinked from nvidia-x11-460.73.01-5.11.21
My config:
How can I debug this problem?
The text was updated successfully, but these errors were encountered: