Home:ALL Converter>fail to run Vulkan on ubuntu

fail to run Vulkan on ubuntu

Ask Time:2019-09-16T14:24:01         Author:RlvC

Json Formatter

the code on github SaschaWillems/Vulkan runs smoothly on WIN10 with a VERY old GPU GT730, but when i wanna run it on ubuntu, i encounter a lot of problems. here is a breaf of my system: Operating System | Ubuntu 16.04.5 LTS Graphics Card | GeForce GTX 1080 Driver | 430.50 SDK Version | 1.1.121.0 but when i run Vulkan, it will return ERROR_INITIALIZATION_FAILED.

so i follow the guide of "Getting Started with the Vulkan SDK" on the lunarg website, i install the vulkan-sdk first:

      wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
      sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-xenial.list http://packages.lunarg.com/vulkan/lunarg-vulkan-xenial.list
      sudo apt update
      sudo apt install vulkan-sdk

then i run vkvia as told, the return error shows "Vulkan failed to find a compatible driver", so i follow the doc and then find "Vulkan Graphics Driver Problems". the doc tells that there are possiblely 4 kind of reasons:

     1. hardware not support Vulkan. but i found on nvidia website GEDORCE GTX 1080 is OK for vulkan1.1
     2. driver not support Vulkan. but i found on nvidia website driver 430.50 is OK for vulkan1.1
     3. no Vulkan driver with support for the OS. i am running on ubuntu 16.04.5 LTS, 
     4. driver failed to install properly. But i can use nvidia-smi to show the card, and i can run my other code on this GPU without VULKAN

if i run vulkaninfo, the error info is vulkaninfo.c:6155: failed with VK_ERROR_INITIALIZATION_FAILED

hope someone can help me! thanks!

Author:RlvC,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/57951371/fail-to-run-vulkan-on-ubuntu
Arthur Monteiro :

Try this :\n\nsudo apt-get install libvulkan1 libvulkan1:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386\n\n\nYou can test with vulkan tools:\n\nsudo apt-get install vulkan-tools\nvulkan-cube\n",
2019-09-17T17:31:05
yy