GPU显卡驱动重装

显卡驱动重装

1. 打开终端

在盒子上插上显示器键盘之后,打开终端,快捷点为***Ctrl+Alt+T***,或者右击屏幕选择***打开终端***

2. 查看状态

执行命令:nvidia-smi ,查看显卡驱动状态

显卡驱动未运行状态

newtranx@mossbox:~/$ 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.

当有上面报错时,需要重装显卡驱动

显卡驱动正常运行状态

newtranx@mossbox:~/doc-soa/mt_soft$ nvidia-smi
Wed Oct 23 16:47:00 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.14       Driver Version: 430.14       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1070    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   42C    P0    28W /  N/A |      0MiB /  8119MiB |      3%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
(base) newtranx@mossbox:~/doc-soa/mt_soft$ 

3. 重装驱动

卸载驱动

执行命令,进入驱动所在目录

cd ~/doc-soa/mt_soft/

卸载驱动,根据提示,一直回车:

sudo ./NVIDIA-Linux-x86_64-430.14.run  --uninstall --no-questions

安装驱动

安装驱动,根据提示,一直回车:

sudo ./NVIDIA-Linux-x86_64-430.14.run --no-opengl-files --no-questions --no-cc-version-check
                                                                   NVIDIA Accelerated Graphics Driver for Linux-x86_64 (430.14)                                                                    










                                                                                                                                                                                                    
  WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be          
   installed; if you wish to install them, re-run the installation and set a valid directory with the --compat32-libdir option.                                                            
                                                                                                                                                                                                    
                                                                                                 OK  #回车                                                                                               
                                                                                                                                                                                                    








  NVIDIA Software Installer for Unix/Linux www.nvidia.com 
                                                                   NVIDIA Accelerated Graphics Driver for Linux-x86_64 (430.14)                                                                    










                                                                                                                                                                                                    
  Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 430.14) is now complete.  Please update your xorg.conf file as appropriate; see the file                        
  /usr/share/doc/NVIDIA_GLX-1.0/README.txt for details.                                                                                                                                            
                                                                                                                                                                                                    
                                                                                                 OK     #回车                                                                                            
                                                                                                                                                                                                    













  NVIDIA Software Installer for Unix/Linux www.nvidia.com 

4. 验证

验证,执行命令:nvidia-smi,查看显卡驱动状态,说明驱动已经安装成功

5. 重启操作系统

然后重启服务器即可

sudo reboot
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

kuku123465

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值