Skip to content
Discussion options

You must be logged in to vote

No, it's not possible.

Vulkan gives vkEnumeratePhysicalDevices API that returns list of opaque handles (VkPhysicalDevice) for each device. We then query properties of each device for selection, based on name or type of gpu and so on. Next we this handle to create Vulkan context and what not. There is no way to get a VkPhysicalDevice "directly", as it's application job to select it.

Long story short, this is a driver / kernel bug where they should not wake up the device for sole purpose of enumerating them.

It's known issue, you can read related discussion here (it not only affects NVIDIA...):
#16218
https://gitlab.freedesktop.org/drm/amd/-/issues/2295
https://gitlab.freedesktop.org/mesa/m…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@szpak
Comment options

Answer selected by szpak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants