]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
meta : Add missing `buffer` set in allreduce fallback !COMPUTE clear (#23480)
authorMatt Corallo <redacted>
Fri, 29 May 2026 03:30:24 +0000 (03:30 +0000)
committerGitHub <redacted>
Fri, 29 May 2026 03:30:24 +0000 (06:30 +0300)
Without this at least the vulkan backend will skip the `* 0` for
!COMPUTE tensors, causing corrupt output.

ggml/src/ggml-backend-meta.cpp

index d0d64523b4a96986e1e448aba364d509ab568df3..48b2027fac36d9de577f340cc8dcc1a0e7cb0b8d 100644 (file)
@@ -2076,6 +2076,7 @@ static enum ggml_status ggml_backend_meta_graph_compute(ggml_backend_t backend,
             node_zero->src[0] = node;
             ggml_set_op_params_f32(node_zero, 0, 0.0f);
             node_zero->data = node->data;
+            node_zero->buffer = node->buffer;
             node_zero->flags |= GGML_TENSOR_FLAG_COMPUTE;
 
             step_cgraphs[j] = get_cgraph_aux();