CUDA10+PyTorch1.0+RTX2080

RTX2080 + DRIVER410 + CUDA10 + CUDNN7.4 + PYTORCH1.0

  1. install driver
$ sudo apt-get purge nvidia*
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update
$ sudo apt-get install nvidia-driver-410
  1. Install cuda10

Then add PATH to ~/.bashrc

export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}$ 
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

Then,

$ source ~/.bashrc
  1. Install cudnn

  2. Install anaconda 5.3

  3. Install pytorch 1.0

$ sudo ~/anaconda3/bin/pip install torch torchvision
  1. Check
import torch
print(torch.cuda.is_available())
  1. Set Fan Speed

Refer to https://www.jianshu.com/p/ab956df5e40c
https://superuser.com/questions/1429412/ubuntu-control-fan-speed-on-multiple-nvidia-gpus

(1) Run nvidia-xconfig --enable-all-gpus

(2) Edit /etc/X11/xorg.cong
sudo nano /etc/X11/xorg.conf
Copy and paste the following codes to xorg.conf

Section "Device"
        Identifier      "Device0"
        Driver          "nvidia"
        VendorName      "NVIDIA"
        Option          "Coolbits" "28"
EndSection

Section "Device"
        Identifier      "Device1"
        Driver          "nvidia"
        VendorName      "NVIDIA"
        Option          "Coolbits" "28"
EndSection

(3) Reboot, edit /etc/X11/xorg.cong
change Screen 1 "Screen1" RightOf "Screen0" under “ServerLayout” section to Screen 1 "Screen1" LeftOf "Screen0" so that the cursor can’t go further to the right.

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值