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

Configure finds Vulkan but target.has_gpu_feature() returns false #8375

Open
yurivict opened this issue Aug 7, 2024 · 3 comments
Open

Configure finds Vulkan but target.has_gpu_feature() returns false #8375

yurivict opened this issue Aug 7, 2024 · 3 comments

Comments

@yurivict
Copy link

yurivict commented Aug 7, 2024

Configure prints this:

-- Enabling Vulkan target

but this code evaluates to false:

        find_gpu_target().has_gpu_feature();

Binaries aren't linked with vulkan libraries.

Version: 18.0.0
clang-18
FreeBSD 14.1

@abadams
Copy link
Member

abadams commented Aug 7, 2024

It's correct that the binaries aren't linked with vulkan libraries. They dlopen them instead.

find_gpu_target in tutorial lesson 12 doesn't consider Vulkan as a possibility. I'm hesitant to enable it, because we don't currently test vulkan on the bots due to some outstanding bugs (see https://github.com/halide/Halide/issues?q=is%3Aissue+is%3Aopen+vulkan)

@yurivict
Copy link
Author

yurivict commented Aug 7, 2024

So how to use it then if I just want to see whether it works?

@abadams
Copy link
Member

abadams commented Aug 7, 2024

Change find_gpu_target to just return Target{"host-vulkan-vk_int8-vk_int16-vk_int64-vk_float16-vk_float64-vk_v13"}

Or just Target{"host-vulkan"} if you want to go with the minimum supported feature set.

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