之前一直使用apt方式安装Nvidia驱动,但这种方式有个缺点时cuda只安装了runtime version,没有cuda.h等文件,在需要编译新库时比较不方便,从官网下载安装经常遇到问题,现在汇总一下并给出解决方案,因为解决方案在别人的帖子里,我就只给链接了。
问题:
1. 安装最后出现 nvidia-drm 模块问题 Unable to load the “nvidia-drm” kernel module
2. 运行 `nvidia-smi` 命令提示出错 NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
这两个问题在下面这篇博文里有详细解决方案,mark一下
https://onlycaptain.github.io/2018/08/18/Ubuntu%E4%B8%8BNvidia%E9%A9%B1%E5%8A%A8%E5%AE%89%E8%A3%85/