记录GeForce RTX 2080 GPU安装遇到的问题及解决方案

在conda安装完成cuda、cudnn、tensorflow-gpu之后,运行测试代码,出现:

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
问题可以看出是GPU的问题,没找到。

接着命令行输入:nvidia-smi竟然不能打印出GPU 的信息。

问题原因:2080 GPU 的显卡驱动默认是没安装的,需要手动安装,解决过程:

Automatic Install using PPA repository to install Nvidia Beta drivers

Using graphics-drivers PPA repository allows us to install bleeding edge Nvidia beta drivers at the risk of unstable system.
 

  1.  To proceed first add the ppa:graphics-drivers/ppa repository into your system:
    $ sudo add-apt-repository ppa:graphics-drivers/ppa
    $ sudo apt update
  2. Next, identify your graphic card model and recommended driver:
    $ ubuntu-drivers devices
    == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
    modalias : pci:v000010DEd00001C03sv00001043sd000085ABbc03sc00i00
    vendor   : NVIDIA Corporation
    model    : GP106 [GeForce GTX 1060 6GB]
    driver   : nvidia-driver-390 - third-party free
    driver   : nvidia-driver-410 - third-party free recommended
    driver   : nvidia-driver-396 - third-party free
    driver   : xserver-xorg-video-nouveau - distro free builtin
    
  3. Same as with the above standard Ubuntu repository example, either install all recommended drivers automatically:
    $ sudo ubuntu-drivers autoinstall
    
    or selectively using the apt command. Example:
    $ sudo apt install nvidia-410
    
  4. Once done, reboot your system.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值