![无法在使用 NVidia 的 Ubuntu 18.04 上运行 Vulkan](https://linux22.com/image/906358/%E6%97%A0%E6%B3%95%E5%9C%A8%E4%BD%BF%E7%94%A8%20NVidia%20%E7%9A%84%20Ubuntu%2018.04%20%E4%B8%8A%E8%BF%90%E8%A1%8C%20Vulkan.png)
运行时vulkaninfo
出现以下错误。
我已经尝试了数周时间,希望它能在 Ubuntu 上正确运行(而在 Mac 上则需要 15 分钟才能完美运行),尝试了几乎所有我遇到的解决方案。任何帮助都将不胜感激。
Vulkan 实例版本:1.1.85
vulkan/1.1.85.0/examples/vulkaninfo.c:3357:失败,出现 VK_ERROR_INITIALIZATION_FAILED
遵循的步骤:
以下是我为了达到这个目的所遵循的步骤。
我检查了推荐的 NVidia 驱动程序
sudo ubuntu-drivers devices
我按照建议安装了 NVidia-driver-390
sudo apt-get install nvidia-driver-390
我重新启动后发现它
nvidia-prime
未被使用sudo apt-get install nvidia-prime
Nvidia X Server Settings 中仍然没有 nvidia Prime 选项卡,让我们尝试一下。
下载 Vulkan SDK 并按照以下步骤操作
添加
~/.profile
。export VULKAN_SDK=/home/mies/vulkan/1.1.85.0/x86_64 export PATH=$VULKAN_SDK/bin:$PATH export LD_LIBRARY_PATH=$VULKAN_SDK/lib export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d
构建示例。均不起作用,我收到此错误。
vulkan/1.1.85.0/examples/cube.c:3155: demo_init_vk: Assertion `!err' failed. [1] 31349 abort (core dumped) ./cube
运行时
vulkaninfo
出现错误VK_ERROR_INITIALIZATION_FAILED.
我是否遗漏了什么?
上下文是:
驾驶员检查:
lspci -k | grep -A 2 -i "VGA"
01:00.0 VGA compatible controller: NVIDIA Corporation GF106GL [Quadro 2000] (rev a1)
Subsystem: NVIDIA Corporation Quadro 2000D
Kernel driver in use: nvidia
配置:
/usr/share/vulkan/icd.d/nvidia_icd.json
:
{
"file_format_version" : "1.0.0",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.0.65"
}
}
跑步via
dpkg-query: no packages found matching lunarg-vulkan-sdk
VIA_ERROR: Vulkan failed to find a compatible driver.
运行dpkg-query -l "nvidia*"
(zsh 带引号)
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
un nvidia-304 <none> <none> (no description available)
un nvidia-340 <none> <none> (no description available)
un nvidia-384 <none> <none> (no description available)
un nvidia-390 <none> <none> (no description available)
un nvidia-common <none> <none> (no description available)
ii nvidia-compute-utils-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA compute utilities
ii nvidia-dkms-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA DKMS package
un nvidia-dkms-kernel <none> <none> (no description available)
ii nvidia-driver-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA driver metapackage
un nvidia-driver-binary <none> <none> (no description available)
un nvidia-kernel-common <none> <none> (no description available)
ii nvidia-kernel-common-390 390.77-0ubuntu0.18.04.1 amd64 Shared files used with the kernel module
un nvidia-kernel-source <none> <none> (no description available)
ii nvidia-kernel-source-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA kernel source package
un nvidia-legacy-340xx-vdpau-driver <none> <none> (no description available)
un nvidia-opencl-icd <none> <none> (no description available)
un nvidia-persistenced <none> <none> (no description available)
ii nvidia-prime 0.8.8.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 390.77-0ubuntu0.18.04.1 amd64 Tool for configuring the NVIDIA graphics driver
un nvidia-settings-binary <none> <none> (no description available)
un nvidia-smi <none> <none> (no description available)
un nvidia-utils <none> <none> (no description available)
ii nvidia-utils-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA driver support binaries
un nvidia-vdpau-driver <none> <none> (no description available)
我没什么主意了。
我的 NVidia Quadro 2000D 应该受支持,对吗?