安装版本高于 4.4 的 OpenGL / Nvidia OpenGL

安装版本高于 4.4 的 OpenGL / Nvidia OpenGL

很抱歉问这样的问题,但这个问题已经困扰我两个多星期了。所有信息均来自 GPU 服务器(4 个 NVIDIA 3090 GPU)。要检查 OpenGL 版本,sudo glxinfo | grep OpenGL以下是输出:

OpenGL renderer string: llvmpipe (LLVM 10.0.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 20.0.8
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 20.0.8
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

另外,我可以从 GUI、设置->详细信息->图形中获取一些信息:llvmpipe(LLVM 10.0.0, 256 bits)

当我输入时nvidia-smi,我可以获得正确的信息,但我不知道为什么会有5MiB的成本。

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.38       Driver Version: 455.38       CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| 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:1A:00.0 Off |                  N/A |
| 30%   24C    P8     6W / 350W |      5MiB / 24268MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  GeForce RTX 3090    Off  | 00000000:3E:00.0 Off |                  N/A |
| 30%   22C    P8    10W / 350W |      5MiB / 24268MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   2  GeForce RTX 3090    Off  | 00000000:89:00.0 Off |                  N/A |
| 30%   22C    P8     6W / 350W |      5MiB / 24268MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   3  GeForce RTX 3090    Off  | 00000000:B1:00.0 Off |                  N/A |
| 30%   23C    P8    10W / 350W |      5MiB / 24268MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2318      G   /usr/lib/xorg/Xorg                  4MiB |
|    1   N/A  N/A      2318      G   /usr/lib/xorg/Xorg                  4MiB |
|    2   N/A  N/A      2318      G   /usr/lib/xorg/Xorg                  4MiB |
|    3   N/A  N/A      2318      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

当我输入 时lspci -k | grep -A 2 -i "VGA",我不知道这是否正确。输出如下:

03:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
        Subsystem: ASPEED Technology, Inc. ASPEED Graphics Family
        Kernel driver in use: ast
--
1a:00.0 VGA compatible controller: NVIDIA Corporation Device 2204 (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3881
        Kernel driver in use: nvidia
--
3e:00.0 VGA compatible controller: NVIDIA Corporation Device 2204 (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3881
        Kernel driver in use: nvidia
--
89:00.0 VGA compatible controller: NVIDIA Corporation Device 2204 (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3881
        Kernel driver in use: nvidia
--
b1:00.0 VGA compatible controller: NVIDIA Corporation Device 2204 (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3881
        Kernel driver in use: nvidia

当我输入时prime-select query,输出是nvidia

当我输入nvidia-settings并访问 NVIDIA 设置 X 服务器时,我看不到prime profile,这意味着我无法切换 GPU。

我已经尝试了多种方式安装 nvidia 驱动程序。 (1) software and update:卸载当前驱动程序并从 GUI 安装或更新 nvidia 驱动程序,然后重新启动我的服务器。 (2) download the *.run files:已尝试sudo ./*.run使用/不使用--no_opengl_files。如果没有此命令,我会遇到login loop问题。 (3)sudo add-apt-repository ppa:graphics-drivers/ppasudo ubuntu-drivers autoinstall。以上所有方法都对我没有帮助。

我在一台4*1080Ti GPU服务器上也测试了上述方法。它们的情况是一样的。

如果有人能帮助我,我将非常感激。

相关内容