去官网 菜单列表下载,或者直接下载驱动
wget https://cn.download.nvidia.com/XFree86/Linux-x86_64/550.54.14/NVIDIA-Linux-x86_64-550.54.14.run
安装驱动
/data/install/NVIDIA-Linux-x86_64-550.54.14.run
==========================
执行命令,显示GPU情况
出错处理:
==============
问题:运行一段事件后,操作系统Ubuntu升级内核,或者怎样(不明)
nvidia-smi 运行
报错:Failed to initialize NVML: Driver/library version mismatch
解决办法:重新安装NVIDIA驱动
==============
问题:NVIDIA驱动安装报错
重新安装报错
ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for
details.
解决办法:
uname -r
5.15.0-112-generic
cat /proc/version
Linux version 5.15.0-112-generic (buildd@lcy02-amd64-051) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024
apt update
sudo apt install linux-headers-$(uname -r)
然后再次安装
/data/NVIDIA-Linux-x86_64-550.54.15.run