(base) root@node13:~# cat /etc/modprobe.d/blacklist.conf 
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac
blacklist nouveau
options nouveau modeset=0

 (base) root@node13:~# nvidia-smi
Tue Mar 18 14:42:42 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.15              Driver Version: 550.54.15      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| 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  Tesla T4                       Off |   00000000:02:00.0 Off |                    0 |
| N/A   30C    P8             10W /   70W |       5MiB /  15360MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  Tesla T4                       Off |   00000000:81:00.0 Off |                    0 |
| N/A   28C    P8             10W /   70W |       5MiB /  15360MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1553      G   /usr/lib/xorg/Xorg                              4MiB |
|    1   N/A  N/A      1553      G   /usr/lib/xorg/Xorg                              4MiB |
+-----------------------------------------------------------------------------------------+

apt update && sudo apt upgrade -y
apt install libvulkan1 mesa-vulkan-drivers vulkan-utils vulkan-tools 

vulkaninfo | grep "GPU" 执行上面的三条指令之后出现了下面的错误提示。

ERROR: [Loader Message] Code 0 : libGLX_nvidia.so.0: cannot open shared object file: No such file or directory
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
        GPU id     : 0 (llvmpipe (LLVM 12.0.0, 256 bits))
        GPU id     : 0 (llvmpipe (LLVM 12.0.0, 256 bits))
        GPU id     : 0 (llvmpipe (LLVM 12.0.0, 256 bits))
        GPU id     : 0 (llvmpipe (LLVM 12.0.0, 256 bits))
GPU id : 0 (llvmpipe (LLVM 12.0.0, 256 bits)):
GPU0:
问题解答:

Vulkan 仍在使用 llvmpipe(CPU软件渲染器),而未正确绑定到 NVIDIA GPU。
此外,错误信息 libGLX_nvidia.so.0: cannot open shared object file 表示 NVIDIA OpenGL 相关库文件缺失或未正确配置。

显卡安装的时候少安装了OpenGL 文件,处理办法:重装显卡驱动。

apt purge nvidia-*
apt autoremove
reboot
./NVIDIA-Linux-x86_64-550.54.15.run 
reboot


root用户下执行会报如下错误:
(base) root@node13:~# vulkaninfo|grep GPU
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
XCB failed to connect to the X server due to error:1.
/build/vulkan-tools-KEbD_A/vulkan-tools-1.2.131.1+dfsg1/vulkaninfo/vulkaninfo.h:612: failed with ERROR_INITIALIZATION_FAILED
(base) root@node13:~# 

改到普通用户下执行正常:

su - omnisky
(base) root@node13:~# su - omnisky 
omnisky@node13:~$ vulkaninfo|grep GPU
'DISPLAY' environment variable not set... skipping surface info
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
                GPU id  : 0 (Tesla T4)
                GPU id  : 1 (llvmpipe (LLVM 12.0.0, 256 bits))
                GPU id  : 2 (Tesla T4)
                GPU id  : 0 (Tesla T4)
                GPU id  : 1 (llvmpipe (LLVM 12.0.0, 256 bits))
                GPU id  : 2 (Tesla T4)
                GPU id  : 0 (Tesla T4)
                GPU id  : 1 (llvmpipe (LLVM 12.0.0, 256 bits))
                GPU id  : 2 (Tesla T4)
                GPU id  : 0 (Tesla T4)
                GPU id  : 1 (llvmpipe (LLVM 12.0.0, 256 bits))
                GPU id  : 2 (Tesla T4)
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
                GPU id  : 0 (Tesla T4)
                GPU id  : 1 (llvmpipe (LLVM 12.0.0, 256 bits))
                GPU id  : 2 (Tesla T4)
GPU0:
        deviceType     = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
GPU1:
GPU2:
        deviceType     = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU

相关参考:ttps://blog.csdn.net/weixin_43501408/article/details/146163278

更多推荐