Score:0

Installing nvidia-520 on ubuntu 22.04 crashes

vi flag

Ive tried different versions of cuda drivers to get GPU to work with tensorflow 2.13. It doesnt work with the latest nvidia driver version 12.2.

I was able find cuda 11.8, python 3.10 to recognize the GPU, but nvidia-smi say cuda 11.8 and nvidia driver 12.2. So the python script gave an error.

Googling i found that cuda 11.8 goes with nvidia-driver 520. I had installed default which was 535. When I installed 520 it gave an error. So I uninstalled the driver and rebooted. Ubuntu didnt restart.

Im only able to reboot choosing an older kernel. So I have 2 questions:

  1. which nvidia-driver can I install with cuda 11.8 that will work on ubuntu 22.04?
  2. How can I recover my kernel? I think the latest kernel is 6.32-generic. I have previously recovered the kernel by uninstalling the nvidia-drivers. But that didnt work this time. I suspect the error I got installing 520 has corrupted something else in the kernel.
cc flag
You mean kernel 6.2.0-31? Set your 22.04 system up with the latest Nvidia drivers from the standard repos (535.86.05), then reject any offer of video drivers from the CUDA install. CUDA and video driver are pretty independent, the Nvidia hardware limits driver and CUDA release. See answers 1077061, 1219761 for various methods for CUDA installs that don't mess up a running system.
karel avatar
sa flag
Does this answer your question? [How do I install NVIDIA and CUDA drivers into Ubuntu?](https://askubuntu.com/questions/1077061/how-do-i-install-nvidia-and-cuda-drivers-into-ubuntu)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.