Skip to content

Trouble getting swiftshader/timeline semaphore layer working on Debian/Buster #1576

Closed

Description

@stellaraccident

Following a variant of instructions here, I'm running into problems: https://google.github.io/iree/GetStarted/LinuxVulkan

Note that I am using the vulkan loader from the Debian Buster repo (using this or another doesn't seem to make a difference):

$ apt search libvulkan1
libvulkan1/stable,now 1.1.97-2 amd64 [installed,automatic]
  Vulkan loader library

The main variation I did was to create a ~/bin/swiftshader directory and copy libs into it:

$ ls -l ~/bin/swiftshader/
total 24616
-rwxr-xr-x 1 stella stella 25199256 Apr 19 18:32 libvk_swiftshader.so
-rw-r--r-- 1 stella stella      126 Apr 19 18:32 vk_swiftshader_icd.json

And then also a ~/bin/vulkan_layers:

$ ls -l ~/bin/vulkan_layers/
total 328
-rwxr-xr-x 1 stella stella 328728 Apr 19 18:34 libVkLayer_khronos_timeline_semaphore.so
-rw-r--r-- 1 stella stella    504 Apr 19 18:44 VkLayer_khronos_timeline_semaphore.json

Then set env vars:

$ echo $VK_LOADER_DEBUG
all
$ echo $VK_ICD_FILENAMES 
/home/stella/bin/swiftshader/vk_swiftshader_icd.json
$ echo $VK_LAYER_PATH 
/home/stella/bin/vulkan_layers

Then I run the device creation test:

$ ./iree/hal/cts/iree_hal_cts_device_creation_test
(log file attached)

creation.log

It looks like it is finding the layer but the error seems to imply not. Any ideas? Prior to us requiring this layer, I used a variation of this procedure on my dev VM to get Vulkan support for testing (since it has no GPU).

Activity

  1. ScottTodd commented on Apr 20, 2020

    @ScottTodd
    Member

    That Vulkan loader (1.1.97-2) is too old to pick up the timeline semaphore functions from the extension layer. We should add 1.1.124 as the min version of the loader to the docs - you can get more recent versions by installing the Vulkan SDK or building the Vulkan loader from source.

    We're expecting our current use of the extension layer to be similarly blocked on Android, and have ideas on how to directly embed it or polyfill support for timeline semaphores without going through the loader / layers / extensions interfaces.

  2. ScottTodd commented on Jul 2, 2020

    @ScottTodd
    Member

    The extension layer is no longer required and we emulate timeline semaphore support internally as needed. I think this issue as stated is fixed.

  3. added
    bug 🐞
    runtime
    on Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐞runtime

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions