llama.mak: support building Vulkan backend#325
llama.mak: support building Vulkan backend#325Peter0x44 wants to merge 1 commit intoskeeto:masterfrom
Conversation
Requires the Vulkan SDK installed to build. It can be downloaded from: https://vulkan.lunarg.com/
|
A good talk on what to expect regarding Vulkan in llama.cpp: https://fosdem.org/2026/schedule/event/CZSPSC-llama-cpp-vulkan/ I don't love depending on the Vulkan SDK, and nothing it does is really irreplaceable, but upstream expects it, so it's what I used. |
|
to give a bit more overview of what vulkan sdk provides, just in case something is unclear. glslc - compiler for glsl -> spir-v. Vulkan does not support text shaders, it instead consumes spir-v IR at runtime. vulkan library - vulkan-1.lib import lib for vulkan-1.dll Though I have not tried to, these components could all be built and provided separately, in theory (and likely practice). Here are the official vulkan build instructions, for reference. |
|
Thanks, @Peter0x44. I gave it a test drive and all seems to be in order, including a performance boost on my system when leveraging Vulkan. I'm happy to merge after sorting out a few details:
To check my understanding, I actively made these changes in 770df03. |
that's sensible, I was just thinking if anyone wanted to build/supply the components of the vulkan SDK independently.
Yeah, it can do that. It's sensible
You are right about this. It should be built with the host compiler. But, those people will have to still override
I think |
|
Another thing I was going to send a follow up patch for, is openmp. So if we switch this from a |
Requires the Vulkan SDK installed to build.
It can be downloaded from: https://vulkan.lunarg.com/