A new option has been added to Vkrunner (the Vulkan shader testing tool written by Neil Roberts) to allow selecting the Vulkan device for each shader test.
Usage:
1 |
vkrunner --device-id <number> [OPTION]... SCRIPT |
or
1 |
vkrunner --device-id=<number> [OPTION]... SCRIPT |
When the device id is not set, the default GPU is used. IDs start from 1 to match the convention of the VK-GL-CTS conformance tests by Khronos.
Also, Vkrunner now supports long options. You can use the options --help
or -h
to see them.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$ vkrunner --help usage: vkrunner [OPTION]... SCRIPT... Runs the shader test script SCRIPT Options: -h,--help Show this help message -i,--image IMG Write the final rendering to IMG as a PPM image -b,--buffer BUF Dump contents of a UBO or SSBO to BUF -B,--binding BINDING Select which buffer to dump using the -b option. Defaults to first buffer -d,--disasm Show the SPIR-V disassembly -D,--replace TOK=REPL Replace occurences of TOK with REPL in the scripts -q,--quiet Don’t print any non-error information to stdout --device-id DEVID Select the Vulkan device |
You can find more about Vkrunner and shader testing in the following Igalian blogs and posts:
[1] Neil Robert’s blog: https://blogs.igalia.com/nroberts/
[2] Samuel Iglesias Gonsálvez’s blog: https://blogs.igalia.com/siglesias/
[3] Older posts of mine that have the tag “vkrunner”: here and here.