0

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.
Endre Moen
  • 101
  • 2
  • 1
    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. – ubfan1 Sep 02 '23 at 21:30
  • 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) – karel Sep 03 '23 at 04:04

0 Answers0