在 Ubuntu 18.04 服务器上安装 vulkun

在 Ubuntu 18.04 服务器上安装 vulkun

我已经在 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                                                 |
+-----------------------------------------------------------------------------+

答案1

nvidia_layers.json不应该在 中/usr/share/vulkan/icd.d。该 JSON 文件描述的是层,而不是驱动程序。它属于/usr/share/vulkan/implicit_layer.d。但加载程序似乎正在寻找 ICD,因为它尝试从 加载函数地址libGLX.nvidia.so,即驱动程序。这看起来像是驱动程序安装不正确,或者有人移动了 JSON 文件。我会继续移动nvidia_layers.jsonimplicit_layer.d目录,看看是否有帮助,以防加载程序因该文件在 中而感到困惑icd.d。除此之外,请尝试重新安装驱动程序,并确保您拥有最新的 Vulkan 加载程序。最后,如果问题仍然存在,您可能会在 提交问题时获得更好的牵引力加载器 GitHub

相关内容