From 5ff70bc69a93b2aa6cbd8b55142d23391b21742b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 27 Nov 2026 08:22:58 +0000 Subject: automatic import of llama.cpp --- ...ix-guard-arm-only-code-for-non-arm-builds.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 0012-fix-guard-arm-only-code-for-non-arm-builds.patch (limited to '0012-fix-guard-arm-only-code-for-non-arm-builds.patch') diff --git a/0012-fix-guard-arm-only-code-for-non-arm-builds.patch b/0012-fix-guard-arm-only-code-for-non-arm-builds.patch new file mode 100644 index 0000000..c923d6a --- /dev/null +++ b/0012-fix-guard-arm-only-code-for-non-arm-builds.patch @@ -0,0 +1,30 @@ +--- a/ggml/src/ggml.c ++++ b/ggml/src/ggml.c +@@ -76,7 +76,9 @@ + #include + #endif + ++#if defined(__ARM_FEATURE_SVE) + #include ++#endif + + #if defined(__ANDROID__) + #include +--- a/ggml/src/ggml-cpu/ops.cpp ++++ b/ggml/src/ggml-cpu/ops.cpp +@@ -7206,6 +7206,7 @@ + } + } + ++#if defined(GGML_USE_FUSED_CPP_SDPA) + static void ggml_compute_forward_fused_cpp_sdpa_ext_impl( + const float * q, + const float * k, +@@ -7258,6 +7259,7 @@ + GGML_ABORT("fused_cpp fp32_packqkv sdpa failed with code %d", ret); + } + } ++#endif // GGML_USE_FUSED_CPP_SDPA + + void ggml_compute_forward_fused_cpp_sdpa_ext( + const ggml_compute_params * params, -- cgit v1.2.3