llama: fix GGML_METAL=ON build - missing ggml-metal.h include in llama-dflash.cpp (#2134)

llama-dflash.cpp calls ggml_backend_is_metal() and
ggml_backend_metal_set_n_cb() inside an #ifdef GGML_USE_METAL block but
never includes ggml-metal.h, so any Metal-enabled build fails to
compile. Add the same guarded include llama.cpp already uses.
This commit is contained in:
hchengit
2026-07-15 09:11:59 +03:00
committed by GitHub
parent 6d78a87c4c
commit 5596a41a38
+4
View File
@@ -9,6 +9,10 @@
#include "ggml.h"
#include "ggml-backend.h"
#ifdef GGML_USE_METAL
# include "ggml-metal.h"
#endif
#include <algorithm>
#include <cmath>
#include <cstring>