-
Notifications
You must be signed in to change notification settings - Fork 13.7k
fix: ggml: make GGML compatible with vulkan v1.2.162 #10450
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
Conversation
Add the option GGML_VULKAN_V1_2_162 to make GGML compatible with vulkan v1.2.162. This option is OFF by default. vulkan-header: v1.2.162 https://github.com/KhronosGroup/Vulkan-Headers/tree/v1.2.162
|
v1.2.162 is very old, can you describe why you need it? |
In the consumer electronics industry, some mid-range SoCs still use that version. |
And on those devices Vulkan makes a positive difference? I assume you are talking about phones and Android? |
Yes, right. The cpu and gpu might be very different performance results. Not only the phones, home appliances could be applied as well. And android is just one of various platforms. There are various platforms applied to the electronics. |
|
I'm just asking cause using the Vulkan backend on Android faces quite a few challenges that so far nobody has been willing to fix. See for example #10406 I'm not opposed to supporting an old API version, I'm just wondering if you have a device that runs well with this change or if this change only makes the library build on this device, and running it doesn't work yet. |
Yes, I understand. |
The Vulkan headers are backward compatible and you can build with a newer header and run it on an older driver. Did you choose 1.2.162 because that's the Vulkan version a driver is reporting, or because this is the version of the header distributed with the Android NDK or something? If there are build configurations that can't pick up a newer Vulkan SDK easily, then IMO we need to change the build to pull from https://github.com/KhronosGroup/Vulkan-Headers because #10206 will need it. |
Thanks for the comment. Looking at your #10206 code, it looks like you've already done a great job of branching for vulkan1.2 and 1.3, so I agree to make the necessary changes. For now, I'll just use my patch for communication purposes with other BSP engineers. |
|
@0cc4m , @jeffbolznv |
Add the option GGML_VULKAN_V1_2_162 to make GGML
compatible with vulkan v1.2.162.
This option is OFF by default.
vulkan-header: v1.2.162
https://github.com/KhronosGroup/Vulkan-Headers/tree/v1.2.162