因某些无关原因重装了系统。
DE: GNOME 45.1CPU: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)
离线
安装vulkan-radeon并将VK_ICD_FILENAMES改为/usr/share/vulkan/icd.d/radeon_icd.x86_64.json。
就能用正常用vulkan;尽管用的是集显....
-------------
但问题仍然未解决, 我希望能用独显
最近编辑记录 beginner (2023-11-18 13:54:46)
离线
奇怪,N 卡 A 卡 I 卡的 vulkan 驱动应该都是开箱即用的啊,不需要做额外的配置的
跑一下
pacman -Qs nvidia
pacman -Qs vulkan
看看装了些啥
离线
确实开箱即用。
我之前也重装过几次系统和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
离线
你没装 nvidia 的内核模块啊
离线
啊....确实是我一时疏忽。
我装了nvidia后确实能用
-------
很抱歉, nvidia以前我都是在安装系统的时候追加的。
现在居然忘了, 这就有点尴尬了。
离线
请问是如何解决的呢,我目前遇到了同样报错
离线