我已经在 ubuntu 服务器上安装了vulkan 。但是,当我跑步时,vulkaninfo
我得到
WARNING: [Loader Message] Code 0 : loader_icd_scan: Can not find 'ICD' object in ICD JSON file /usr/share/vulkan/icd.d/nvidia_layers.json. Skipping ICD JSON
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /build/vulkan-tools-1.3.224.0~rc2-1lunarg18.04/vulkaninfo/vulkaninfo.h:672:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
的输出nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| 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 On | 00000000:00:1E.0 Off | 0 |
| N/A 43C P8 16W / 70W | 2MiB / 15360MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
nvidia_layers.json
不应该在/usr/share/vulkan/icd.d
. 该 JSON 文件描述的是层,而不是驱动程序。它属于/usr/share/vulkan/implicit_layer.d
. 但看起来加载器正在寻找 ICD,因为它试图从 加载函数地址libGLX.nvidia.so
,即驱动程序。看起来像是驱动程序安装错误或有人移动了 JSON 文件。我将继续移动nvidia_layers.json
到该implicit_layer.d
目录,看看是否有帮助,以防加载器因该文件在icd.d
. 除此之外,请尝试重新安装驱动程序并确保您拥有最新的 Vulkan 加载程序。最后,如果问题仍然存在,您可能会在加载程序 GitHub 上获得更好的牵引力。