本文主要是介绍Ubuntu 18.04 安装 GeForce RTX 3090,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Ubuntu 18.04 安装 GeForce RTX 3090
- 1,查看显卡型号
- 2,驱动安装
- 3,禁用nouveau
- 4,卸载显卡驱动重新安装
- 5,卸载nvidia cuda驱动
- 安装驱动 ubuntu-drivers
1,查看显卡型号
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
- 更新PCI ID数据库
update-pciids
# lspci | grep -i nvidia
0a:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] (rev a1)
0a:00.1 Audio device: NVIDIA Corporation Device 1aef (rev a1)
2,驱动安装
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/455.23.04/NVIDIA-Linux-x86_64-455.23.04.run
# echo $TMPDIR
/tmp
- 安装驱动
bash NVIDIA-Linux-x86_64-455.23.04.run
3,禁用nouveau
# lsmod | grep nouveau
nouveau 1708032 0
mxm_wmi 16384 1 nouveau
video 45056 2 asus_wmi,nouveau
i2c_algo_bit 16384 1 nouveau
ttm 106496 1 nouveau
drm_kms_helper 172032 2 nvidia_drm,nouveau
drm 401408 5 drm_kms_helper,nvidia_drm,ttm,nouveau
wmi 24576 4 asus_wmi,wmi_bmof,mxm_wmi,nouveau
vim /etc/modprobe.d/blacklist.conf
添加
blacklist nouveau
# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.15.0-118-generic
I: The initramfs will attempt to resume from /dev/nvme1n1p3
I: (UUID=204fe6d9-3a1d-4e1c-8110-bca0a46fd38e)
I: Set the RESUME variable to override this.
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
reboot
4,卸载显卡驱动重新安装
dpkg -l | grep -i nvidia
apt purge nvidia* -y
bash NVIDIA-Linux-x86_64-455.23.04.run
5,卸载nvidia cuda驱动
apt-get --purge remove nvidia*
apt-get --purge remove "*nvidia*"
apt-get --purge remove "*cublas*" "cuda*"
安装驱动 ubuntu-drivers
apt install ubuntu-drivers-common
ubuntu-drivers devices
ubuntu-drivers autoinstall
reboot
# nvidia-smi
Thu Mar 18 17:29:47 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| 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 GeForce RTX 3090 Off | 00000000:01:00.0 Off | N/A |
| 30% 32C P0 102W / 350W | 0MiB / 24268MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 1 GeForce RTX 3090 Off | 00000000:21:00.0 Off | N/A |
| 30% 31C P0 52W / 350W | 0MiB / 24268MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------++-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
参考:
- 455.23 - WHQL 驱动下载
- Ubuntu卸载nvidia驱动的方法
这篇关于Ubuntu 18.04 安装 GeForce RTX 3090的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!