Linux kernel升级导致英伟达显卡驱动失效
报错
nvidia-smi
NVIDIA-SMI has failed because it could not communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
# 或者
nvidia-smi
Nvidia NVML Driver/library version mismatch
解决
1. 使用gcc-12, g++-12
sudo apt install gcc-12 g++-12
2. 安装英伟达驱动
sudo apt install nvidia-driver-535