]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
abort if we see a multi buffer (#25276)
authorEve <redacted>
Sun, 5 Jul 2026 18:38:47 +0000 (18:38 +0000)
committerGitHub <redacted>
Sun, 5 Jul 2026 18:38:47 +0000 (20:38 +0200)
ggml/src/ggml-backend-meta.cpp

index 7bd32916480e1561059498ef02189963ed7ee8bf..1f29ec86712d07cc867f3d41745db0b012e784f9 100644 (file)
@@ -1144,6 +1144,11 @@ static enum ggml_status ggml_backend_meta_buffer_init_tensor_impl(ggml_backend_m
         ggml_context          * simple_ctx = stc.ctxs[j].get();
         ggml_backend_buffer_t   simple_buf = buf_ctx->bufs[j].get();
 
+        if ((simple_buf != nullptr) && ggml_backend_buffer_is_multi_buffer(simple_buf)) {
+            // see https://github.com/ggml-org/llama.cpp/issues/22197
+            GGML_ABORT("multi buffers are not supported by the meta backend");
+        }
+
         if (split_dim >= 0 && split_dim < GGML_MAX_DIMS) {
             // TODO: the following assert fails for llama-parallel even though the results are correct:
             // GGML_ASSERT(ggml_is_contiguously_allocated(tensor));