Metal with Zig
#2264
Replies: 1 comment 3 replies
-
Did you ever figure out how to fix this? I'm considering checking to see if just having the build.zig explicitly call the Makefile and then link it in, rather than using the builtin C/C++ compilation, works. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure where to ask because it's not strictly an issue with llama.cpp but when I try to use llama.cpp with Zig (with metal enabled), I get a really weird bug in runtime, which looks like this:
When I compile llama.cpp using make, it works fine, it only fails with Zig, and what's especially interesting, it fails during runtime, when the metal shaders are compiled. I've checked that the metal file is the same, even the llama.cpp codebase is the same, everything is the same, except the compiler.
So I was thinking okay, maybe apple clang links something in a different way but even the
otool
andDYLD_PRINT_LIBRARIES
showed exactly the same thing.Any ideas would be welcome, thanks.
Beta Was this translation helpful? Give feedback.
All reactions