Syllo / nvtop

GPU & Accelerator process monitoring for AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm
Other
8.1k stars 293 forks source link

after installing nvidia-smi stops working #125

Closed avnerbarr closed 2 years ago

avnerbarr commented 2 years ago

I installed per instructions; apt install nvtop

tried to run:

~$ nvtop
Impossible to initialize nvidia nvml : Driver/library version mismatch

now drivers are broken:

nvidia-smi
Failed to initialize NVML: Driver/library version mismatch

How do I fix this????

Syllo commented 2 years ago

If you are using Ubuntu, it is likely that another version of the driver got installed at the same time due to a dependency that only exists there. Don't use the package on Ubuntu, use the manual install instead.

The easiest way to fix that is reboot your computer to load the right driver again. The complex way is to use modprobe to unload the current driver and load the new one.

NickLucche commented 2 years ago

Same problem here, I solved with a hammer approach by uninstalling previous nvidia drivers sudo apt purge "nvidia*" and then selecting the desidered driver in Software&Updates->Additional Drivers

alexmelekhin commented 2 years ago

@Syllo

If you are using Ubuntu, it is likely that another version of the driver got installed at the same time due to a dependency that only exists there. Don't use the package on Ubuntu, use the manual install instead.

I guess it is a good idea to mention this issue in README to prevent new users from the same headache with re-loading nvidia drivers.

concrete13377 commented 2 years ago

just got the same problem

Syllo commented 2 years ago

Please follow the manual installation for Ubuntu if you are on anything < Ubuntu 22.04. They have an extra dependency to the Nvidia driver that is not present on other distributions (e.g. Debian). Similar to https://github.com/Syllo/nvtop/issues/51