您尚未登录。

#1 2023-11-17 15:04:47

beginner
会员
注册时间: 2019-10-07
帖子: 269

[已解决]vulkaninfo报错:ERROR_INCOMPATIBLE_DRIVER

因某些无关原因重装了系统。
DE: GNOME 45.1
CPU:AMD Ryzen 7 5800H
GPU:NVIDIA GeForce RTX 3060
装系统时,安装了vulkan-devel
根据Vulkan:

  • 安装了nvidia-utils

  • 设置了环境变量:export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json

另:

      ls /usr/share/vulkan/icd.d
nvidia_icd.json
      cat ~/.zshrc|grep vulkan
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json

/etc/environment又设置了一次

    cat /etc/environment|grep vulkan
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json

到目前为止, 未手动安装过其他图形驱动

最后, 附上vulkaninfo的完整报错:

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 /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.269/vulkaninfo/./vulkaninfo.h:688:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER

最近编辑记录 beginner (2023-11-18 16:08:33)

离线

#2 2023-11-18 01:03:31

beginner
会员
注册时间: 2019-10-07
帖子: 269

Re: [已解决]vulkaninfo报错:ERROR_INCOMPATIBLE_DRIVER

安装vulkan-radeon并将VK_ICD_FILENAMES改为/usr/share/vulkan/icd.d/radeon_icd.x86_64.json
就能用正常用vulkan;尽管用的是集显....
-------------
但问题仍然未解决, 我希望能用独显

最近编辑记录 beginner (2023-11-18 13:54:46)

离线

#3 2023-11-18 10:17:02

Mr.I
路人丙
所在地: Kerbal
注册时间: 2015-08-29
帖子: 308

Re: [已解决]vulkaninfo报错:ERROR_INCOMPATIBLE_DRIVER

奇怪,N 卡 A 卡 I 卡的 vulkan 驱动应该都是开箱即用的啊,不需要做额外的配置的

跑一下

pacman -Qs nvidia
pacman -Qs vulkan

看看装了些啥

离线

#4 2023-11-18 13:37:34

beginner
会员
注册时间: 2019-10-07
帖子: 269

Re: [已解决]vulkaninfo报错:ERROR_INCOMPATIBLE_DRIVER

确实开箱即用。
我之前也重装过几次系统和vulkan, 并不需要这么麻烦。
wiki,把该装的都装上就行了。这次不知道为什么这样...
pacman -Qs nvidia

local/egl-wayland 2:1.1.13-1
    EGLStream-based Wayland external platform
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/nvidia-utils 545.29.02-2
    NVIDIA drivers utilities

pacman -Qs vulkan

local/nvidia-utils 545.29.02-2
    NVIDIA drivers utilities
local/renderdoc 1.29-1
    OpenGL and Vulkan debugging tool
local/spirv-tools 2022.4-1 (vulkan-devel)
    API and commands for processing SPIR-V modules
local/vulkan-extra-layers 1.3.250.0-1 (vulkan-devel)
    Extra layers for Vulkan development
local/vulkan-extra-tools 1.3.250.0-1 (vulkan-devel)
    Vulkan lunarg tools
local/vulkan-headers 1:1.3.269-1 (vulkan-devel)
    Vulkan header files
local/vulkan-html-docs 1:1.3.257-1 (vulkan-devel)
    Vulkan html documentation
local/vulkan-icd-loader 1.3.269-1
    Vulkan Installable Client Driver (ICD) Loader
local/vulkan-radeon 1:23.2.1-2
    Radeon's Vulkan mesa driver
local/vulkan-tools 1.3.269-1 (vulkan-devel)
    Vulkan Utilities and Tools
local/vulkan-utility-libraries 1.3.269-1 (vulkan-devel)
    Vulkan Utility Libraries
local/vulkan-validation-layers 1.3.268.0-1 (vulkan-devel)
    Vulkan Validation Layers

离线

#5 2023-11-18 15:47:38

Mr.I
路人丙
所在地: Kerbal
注册时间: 2015-08-29
帖子: 308

Re: [已解决]vulkaninfo报错:ERROR_INCOMPATIBLE_DRIVER

你没装 nvidia 的内核模块啊

离线

#6 2023-11-18 16:06:24

beginner
会员
注册时间: 2019-10-07
帖子: 269

Re: [已解决]vulkaninfo报错:ERROR_INCOMPATIBLE_DRIVER

啊....确实是我一时疏忽。
我装了nvidia后确实能用
-------
很抱歉, nvidia以前我都是在安装系统的时候追加的。
现在居然忘了, 这就有点尴尬了。

离线

#7 2024-11-19 19:14:15

evanfeng
会员
注册时间: 2024-11-19
帖子: 2

Re: [已解决]vulkaninfo报错:ERROR_INCOMPATIBLE_DRIVER

请问是如何解决的呢,我目前遇到了同样报错

离线

页脚