我已将 Windows 10 和 Ubuntu 21.04 配置为双启动。在使用 Ubuntu 20.04 时遇到很多问题,之后我按照此问题设置了当前运行 Ubuntu 21.04 的计算机NVIDIA RTX 3080 GPU 无法与 Ubuntu 20.04、内核 5.8.0-50-generic 配合使用
我目前面临的问题是,Ubuntu 将此 GPU 检测为 RTX 3070,而实际上它是 RTX 3080。我将使用这台笔记本电脑进行机器学习,使用 TensorFlow、cuDNN 和许多其他库,这些库因版本不匹配和兼容性矩阵不宽容而闻名。
以下是一些可能相关的信息
笔记本电脑:华硕 ROG Zephyrus G15
固件版本 GA503QS.405
显卡:
- Nvidia Geforce RTX 3080 笔记本电脑 GPU(通过 MyAsus 工具、Windows 任务管理器、Nvidia 控制面板和 BIOS 确认)
- AMD Radeon 显卡
我已从 BIOS 中禁用以下功能:
- 安全启动
- 快速启动
- Asus Erp(关闭独立 GPU 的电源管理实用程序)
- Asus Armory Crate(在集成 GPU 和独立 GPU 之间切换的工具)
ubuntu-drivers 设备输出
$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0 ==
modalias : pci:v000010DEd0000249Csv00001043sd00001622bc03sc00i00
vendor : NVIDIA Corporation
model : GA104M [GeForce RTX 3070 Mobile / Max-Q 8GB/16GB]
driver : nvidia-driver-460-server - distro non-free
driver : nvidia-driver-460 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
nvidia-smi 输出
$ nvidia-smi
Fri May 28 16:57:28 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.73.01 Driver Version: 460.73.01 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 308... Off | 00000000:01:00.0 Off | N/A |
| N/A 50C P0 21W / N/A | 5MiB / 7982MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1099 G /usr/lib/xorg/Xorg 4MiB |
+-----------------------------------------------------------------------------+
请告诉我如何帮助您。提前致谢。
更新
lshw -C 显示输出
$ sudo lshw -C display
[sudo] password for ahmed:
*-display
description: VGA compatible controller
product: GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
logical name: /dev/fb0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=nvidia latency=0 mode=2560x1440 visual=truecolor xres=2560 yres=1440
resources: iomemory:f80-f7f iomemory:fc0-fbf irq:122 memory:fb000000-fbffffff memory:f800000000-fbffffffff memory:fc00000000-fc01ffffff ioport:e000(size=128) memory:fc000000-fc07ffff
*-display
description: VGA compatible controller
product: Cezanne
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:07:00.0
version: c4
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix vga_controller bus_master cap_list
configuration: driver=amdgpu latency=0
resources: iomemory:fc0-fbf iomemory:fc0-fbf irq:55 memory:fc10000000-fc1fffffff memory:fc20000000-fc201fffff ioport:c000(size=256) memory:fc500000-fc57ffff
lspci | grep -i vga 输出
$ sudo lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB] (rev a1)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev c4)
有趣的是,两者都显示 RTX 3080,我将继续忽略这一点,直到出现相关问题并进行相应更新。