文章目录
- 前言
- 1. 前置安装
前言
版本:ubuntu20.04 桌面版 normal安装
第一件事,切换源:换成阿里源 https://blog.csdn.net/u010092716/article/details/125832062
第二件事输入法安装,指引在这里
https://blog.csdn.net/q544344318/article/details/127759799
安装wx:https://blog.csdn.net/m0_50502579/article/details/126096484
1. 前置安装
invidia 显卡驱动
:NVIDIA-Linux-x86_64-525.116.04.run
环境安装参考:
https://blog.csdn.net/sxj731533730/article/details/115064903?spm=1001.2014.3001.5501
66 sudo apt-get install ubuntu-make
67 which make
68 sudo apt-get install make
sudo ./NVIDIA-Linux-x86_64-525.116.04.run -no-x-check -no-nouveau-check -no-opengl-files
nvidia-smi -l
ubuntu@ubuntu:~$ nvidia-smi
Sun May 28 14:31:23 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.116.04 Driver Version: 525.116.04 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 48C P0 30W / 80W | 0MiB / 8192MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
安装cuda
https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=runfile_local
这里的wget 下不下来,放到浏览器地址栏能下载下来, 换成阿里的cdn就可以了。
cuda_11.8.0_520.61.05_linux.run
===========
= Summary =
===========
Driver: Installed
Toolkit: Installed in /usr/local/cuda-11.8/
Please make sure that
- PATH includes /usr/local/cuda-11.8/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-11.8/lib64, or, add /usr/local/cuda-11.8/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-11.8/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall
Logfile is /var/log/cuda-installer.log
ubuntu@ubuntu:~$ sudo gedit ~/.bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64
export PATH=$PATH:/usr/local/cuda-11.8/bin
export CUDA_HOME=/usr/local/cuda-11.8
ubuntu@ubuntu:~$ source ~/.bashrc
测试版本
nvcc -V
ubuntu@ubuntu:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0