Article Number
GPU-636

Follow the instructions below to install LunarG Vulkan SDK from the LunarG web site:

Download vulkansdk-linux-x86_64-1.0.37.0.run from https://vulkan.lunarg.com/  .( {version} is the version of SDK).

Installing the SDK

The LunarG Vulkan SDK For Linux is a self-extracting installer. It creates a local SDK install directory including Vulkan header files, libraries as well as several sample projects.

Create a work directory

$ mkdir vulkan

$ cd vulkan

Set the VK_VERSION

$ export VK_VERSION=1.0.61.0 /*Assuming the version of vulkan sdk downloaded is 1.0.61.0*/

Copy the self-extracting installer to your work directory. You may need to change the installer file permissions to include execute.

$ cp $HOME/Downloads/vulkansdk-linux-x86_64-$VK_VERSION.run ./

$ chmod ugo+x vulkansdk-linux-x86_64-$VK_VERSION.run

Run the self-extracting installer. The installer won't touch system directories.

Note: You may also be prompted for your sudo password for removal of a previously installed version of the vulkan-sdk-runtime.

$ ./vulkansdk-linux-x86_64-$VK_VERSION.run

Creating directory VulkanSDK

Verifying archive integrity... All good.

Uncompressing LunarG Vulkan SDK  100% 

Removing previously installed LunarG Vulkan SDK runtime; requires root access

[sudo] password for bill:

Running applications above the SDK

Since SDK installation doesn't copy any libraries to system directory, some environment variables must be setup as below before running vulkan application:

$export VULKAN_SDK=/your_path_to_vulkan_sdk/VulkanSDK/1.0.37.0/x86_64

$export PATH=$PATH:$VULKAN_SDK/bin

$export LD_LIBRARY_PATH=$VULKAN_SDK/

$export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d

FAQ

Q: Why does vulkaninfo report the error VK_ERROR_INITIALIZATION_FAILED? 

The following error has been observed when the user is not a member of the video group

ERROR: [loader] Code 0 : ICD ignored: failed to CreateInstance and find entrypoints with ICD

/home/bill/Development/LunarG/Vulkan/LinuxSDK/LoaderAndValidationLayers/demos/vulkaninfo.c:693: failed with VK_ERROR_INITIALIZATION_FAILED

A: To rectify please add the user to the video group with the following command

sudo usermod -a -G video $LOGNAME