深度学习服务器配置-ubuntu服务器离线安装对应版本nvidia显卡驱动

一.安装nvidia显卡驱动

1.查看服务器显卡型号,下载对应的驱动:

lspci | grep NVIDIA

输出:表示服务器上有两张编号为2504的显卡

2.通过显卡编号查看显卡型号,网址如下:

PCI devices (ucw.cz)

3.从英伟达官网下载与显卡型号对应的显卡驱动程序:英伟达驱动下载

离线安装:将run文件上传至服务器

 4.输入以下命令安装cuda驱动:

给驱动run文件赋予执行权限:

 sudo chmod  a+x NVIDIA-Linux-x86_64-470.74.run

安装:

sudo sh NVIDIA-Linux-x86_64-470.74.run --no-opengl-files –no-x-check –no-nouveau-check

–no-opengl-files 只安装驱动文件,不安装OpenGL文件。这个参数最重要
–no-x-check 安装驱动时不检查X服务
–no-nouveau-check 安装驱动时不检查nouveau
后面两个参数可不加。
如果在装的过程中出现以下信息,请选择:
The distribution-provided pre-install script failed! Are you sure you want to continue?
选择 yes 继续。
Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later?
选择 No 继续。
Nvidia’s 32-bit compatibility libraries?
选择 No 继续。
Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.
选择 no 继续

5.查看cuda是否安装成功:

nvidia-smi

安装成功:

  • 2
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值