hans

hans

【Linux】NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver


系统是 Ubuntu20,NVIDIA Quadro GP100 是服务器计算卡,和我们平时用的 gtx,rtx 卡不一样。正常卡我都是 apt 安装驱动,然后 nvidia 官网下载对应版本 cuda。但是我在这个卡上,怎么安装都失败,最基本的 nvidia-smi 都调不出来。

废话不多上正文,通过下面是另一种安装方法,驱动和 cuda 会一起安装最新版本的。

第一步:

检查

两个目录下是否有 blacklist-nvidia.conf 文件,有的话删掉。

第二步禁用 nouveau 驱动:

添加以下两行内容:

退出,然后运行:

可以通过命令 inxi -G 来看你是否禁用 nouveau 成功

第三步清除 nvidia 和 cuda 残余:

第四步:

第五步:

第六步设置环境变量:

重启之后就可以 nvidia-smi 了。

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.