Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create Vulkan instance on Ubuntu-16.04 host with nvidia-418 driver #131

Closed
edowson opened this issue Apr 13, 2019 · 3 comments
Closed

Comments

@edowson
Copy link

edowson commented Apr 13, 2019

I am encountering an issue with getting the vulkan drivers to work properly on a new Ubuntu-16.04 host with nvidia-418 drivers:

$ vulkaninfo
===========
VULKAN INFO
===========

Vulkan Instance Version: 1.1.73

ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Attempt to retrieve either 'vkGetInstanceProcAddr' or 'vk_icdGetInstanceProcAddr' from ICD libGL.so.1 failed.
Cannot create Vulkan instance.
/build/vulkan-ZsgAIG/vulkan-1.1.73+dfsg/demos/vulkaninfo.c:812: failed with VK_ERROR_INCOMPATIBLE_DRIVER
@edowson
Copy link
Author

edowson commented Apr 13, 2019

Edit /usr/share/vulkan/icd.d/nvidia_icd.json and rename the library path entry from libGL.so.1 to libGLX_nvidia.so.0

sudo nano /usr/share/vulkan/icd.d/nvidia_icd.json
{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "libGLX_nvidia.so.0",
        "api_version" : "1.1.95"
    }
}

Ref:
Vulkan does not work [closed] - Ask Ubuntu

@SimpleUAVs
Copy link

No.

@edowson
Copy link
Author

edowson commented Apr 14, 2019

I was able to figure out how to get vulkan drivers to work from within an Ubuntu-16.04 NVIDIA GPU accelerated docker container with two Titan-V GPUs connected to the host system.

The should should help fix issue #65.

In addition to creating the /usr/share/vulkan/icd.d/nvidia_icd.json file, you'll also need to download the nvidia drivers, extract the *.run package and manually extract the libnvidia-glvkspirv.so.418.56 file to /usr/lib/x86_64-linux-gnu/, inside the docker image.

This will allow vulcaninfo and vulkan-smoketest to run correctly.

Additionally, running rosrun flightgoggles FlightGoggles.x86_64 pops up the render window.

wget http://us.download.nvidia.com/XFree86/Linux-x86_64/418.56/NVIDIA-Linux-x86_64-418.56.run
NVIDIA-Linux-x86_64-418.56.run --extract-only
sudo cp NVIDIA-Linux-x86_64-418.56/libnvidia-glvkspirv.so.418.56 /usr/lib/x86_64-linux-gnu/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants