RTX2080 + DRIVER410 + CUDA10 + CUDNN7.4 + PYTORCH1.0
- 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
- 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
-
Install cudnn
-
Install anaconda 5.3
-
Install pytorch 1.0
$ sudo ~/anaconda3/bin/pip install torch torchvision
- Check
import torch
print(torch.cuda.is_available())
- 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.