当前位置:网站首页>Deepin20.6 rtx3080 installing graphics card drivers 510.60.02, cuda11.6, pytorch1.11
Deepin20.6 rtx3080 installing graphics card drivers 510.60.02, cuda11.6, pytorch1.11
2022-06-12 15:09:00 【first_ Dance】
Deepin20.6 RTX3080 Install the video card driver 510.60.02、CUDA11.6、PyTorch1.11
0 Preface
Recently, there is a task of target detection , Need to use CUDA Training network models , The equipment used is RTX3080, stay Deepin Under the operating system , Installed 510.60.02 Version of the driver , Simply record the operation steps , For a rainy day
1 preparation
Many posts on the Internet are downloaded through NVIDIA's official website .run Format driver to install manually , But I tried many versions , Although it can be equipped with , But you can't start the machine after installation , therefore , At the beginning of installing the graphics card driver, you can CUDA Before Kit , It is recommended to back up the current operating system first
2 Clean up the environment
Uninstall the currently installed NVIDIA driver
sudo apt autoremove nvidia*
Shielding open source drivers
sudo vi /etc/modprobe.d/blacklist.conf
Press i Get into vi The editing mode of , Add the following lines , then ESC Enter command mode wq Preservation
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
If the boot card is blank , Or there are the following warnings when starting up
nvidiafb: cannot request PCI regions
You can add one more line to the above file
blacklist nvidiafb
After the file is saved successfully , Execute the following command , Complete the shielding of kernel modules
sudo update-initramfs -u
Restart the machine , Use the following command to check , Shielding is successful without output
lsmod | grep nouveau
3 Install the video card driver
I don't know. Deepin The system or my desktop , NVIDIA website .run I can't install the driver file in the form of , After installing the boot card, the screen will be blank , And then in Deepin It can be used directly in the official warehouse driver…
sudo apt search nvidia-driver
...
...
glx-alternative-nvidia/ Unknown ,now 1.2.0-1-1+eagle amd64 [ already installed , Automatically ]
allows the selection of NVIDIA as GLX provider
libegl-nvidia0/ Unknown ,now 510.60.02-1 amd64 [ already installed , Automatically ]
NVIDIA binary EGL library
...
...
Pleasantly surprised , direct install, A poker , success !
sudo apt install nvidia-driver
# After command execution Check for success If you succeed nvidia-smi There will be video card information output
nvidia-smi
4 install PyTorch & CudaToolKit
I installed 510.60.02 Version comes with CUDA The version is 11.6, stay pytorch Official website You can see , Current latest PyTorch Stable The version is 1.11.0, Support CUDA 11.3,CUDA11 Series downward compatible with lower versions , Choose your own installation method to install PyTorch 1.11.0 that will do , There will be installation commands below , Stick to the terminal and run for a while ,( Remember to replace conda perhaps pip To domestic sources , faster )
conda install
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
pip install
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113

5 Check
The input terminal python or python3, Get into python Interactive environment , Check PyTorch and CUDA Version of , as well as CUDA Is it available , thus ,Deepin20.6+RTX3080 Install the video card driver 、PyTorch、CUDA completion of jobs
>>> import torch
>>> torch.__version__
'1.11.0+cu113'
>>> torch.cuda.is_available()
True
>>> torch.version.cuda
'11.3'
>>>
边栏推荐
- MySQL index and view
- 【LDA】基础知识笔记——主要是AE、VAE
- Module yaml error: Unexpected key in data: static_ context [line 9 col 3]
- USART (rs232422485), I2C, SPI, can, USB bus
- Phpstudy indicates that the hosts file may not exist or be blocked from being opened. How to resolve the failure of synchronizing hosts
- C 操作符
- Industrial end: a new battlefield of 618
- Kinect2.0+ORBSLAM2_with_pointcloud_map
- [wp][beginner level] attack and defense world game
- Ali suggests that all POJO attributes use wrapper classes, but have you noticed these pits?
猜你喜欢

基于TensorRT的深度学习模型部署实战教程!

Energy chain smart electronics landed on NASDAQ: Bain is the shareholder to become the first share of charging services in China

亿纬锂能拟募资90亿:刘金成骆锦红夫妇合计认购60亿 布局光谷

ROS初学者编写小乌龟以一定速度旋转一定角度的server

Array related content

PTA:自测-2 素数对猜想 (20分)

Qiming cloud sharing | demonstrate the switch through an example of the matter protocol to control the light on and off through the matter protocol

机器人前行、旋转的service编写

Yiwei lithium energy plans to raise 9billion yuan: liujincheng and luojinhong jointly subscribe for 6billion yuan of layout Optical Valley

Mh32f103arpt6 hardware and software compatible alternative to stm32f103rct6
随机推荐
安凯微电子冲刺科创板:年营收5亿 小米产业基金是股东
Process abstraction of program construction and interpretation
JUnit test suite method sorting (method 2 is not easy to use)
NETCORE combined with cap event bus to realize distributed transaction -- Introduction (1)
学习是一件逆人性的事情(成为高手的内功心法)
ROS初学者编写小乌龟以一定速度旋转一定角度的server
FIRSTVT and LASTVT vernacular
Wild pointer understanding
IMU的学习记录
Error 1105: message:\“raft entry is too large
粒子滤波学习记录
IMU learning records
C 操作符
C constant, cannot be changed
C string
[LDA] LDA theme model notes - mainly Dirichlet
New关键字、引用&与指针的学习记录
ES6新特性
Function recursion example
Function related matters