无法升级 Vulkan

无法升级 Vulkan

我在 Ubuntu 16.04 上,配备 AMD Radeon R9 390 gpu。图形驱动程序:AMD gpu-pro 17.10(最新驱动程序是 17.40)

我之前安装过 Vulkan。但每当我尝试安装新版本时,它都不会更新。

我刚刚下载并安装了 LunarG Vulkan sdk 1.0.61.1

但是当我提示“vulkaninfo”时,我得到以下信息:

Vulkan API Version: 1.0.42

INFO: [loader] Code 0 : Found manifest file /home/simon/.local/share/vulkan/implicit_layer.d/steamoverlay_i386.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/simon/.local/share/vulkan/implicit_layer.d/steamoverlay_x86_64.json, version "1.0.0"
INFO: [loader] Code 0 : Found ICD manifest file /etc/vulkan/icd.d/amd_icd64.json, version "1.0.0"
WARNING: [loader] Code 0 : loader_icd_scan: ICD JSON /etc/vulkan/icd.d/amd_icd64.json does not have an 'api_version' field.
INFO: [loader] Code 0 : Found ICD manifest file /etc/vulkan/icd.d/amd_icd32.json, version "1.0.0"
WARNING: [loader] Code 0 : loader_icd_scan: ICD JSON /etc/vulkan/icd.d/amd_icd32.json does not have an 'api_version' field.
ERROR: [loader] Code 0 : /opt/amdgpu-pro/lib/i386-linux-gnu/amdvlk32.so: wrong ELF class: ELFCLASS32

为什么它说 1.0.42 - 我从来没有下载过该版本。

我尝试了几次并尝试卸载。遵循以下两个指南:

http://support.amd.com/en-us/kb-articles/Pages/Install-LunarG-Vulkan-SDK.aspx

https://vulkan.lunarg.com/doc/view/latest/linux/getting_started.html

答案1

您的环境变量~/.bashrc可能未设置。以下是它们对于 SDK 1.0.65.0 的工作方式:

export VULKAN_SDK=~/Downloads/VulkanSDK/1.0.65.0/x86_64
export PATH=$VULKAN_SDK/bin:$PATH
export LD_LIBRARY_PATH=$VULKAN_SDK/lib:$LD_LIBRARY_PATH
export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d

添加这些行后,重新启动终端并vulkaninfo再次运行。

相关内容