Skip to content

Distribute and run LLMs with a single file.

862 B
Raw Blame
diff --git a/ggml/src/ggml-metal/ggml-metal-fusion.h b/ggml/src/ggml-metal/ggml-metal-fusion.h
--- a/llama.cpp/ggml/src/ggml-metal/ggml-metal-fusion.h
+++ b/llama.cpp/ggml/src/ggml-metal/ggml-metal-fusion.h
@@ -9,6 +9,7 @@
 #pragma once
 
 #include "ggml-impl.h"
+#include "ggml-backend.h"
 
 #include <stdbool.h>
 
@@ -55,7 +56,7 @@ ggml_metal_fusion_id ggml_metal_fusion_get_id(const struct ggml_metal_fusion * f
 // apply any alloc-dependencies required by the fused kernels during graph optimize
 void ggml_metal_fusion_add_alloc_deps(
         void * user_data,
-        void (*add_alloc_dep)(void *, struct ggml_tensor *, struct ggml_tensor *),
+        void (GGML_CALL *add_alloc_dep)(void *, struct ggml_tensor *, struct ggml_tensor *),
         struct ggml_cgraph * gf);
 
 // ---- shared fusion info ---------------------------------------------------