From: Georgi Gerganov Date: Wed, 11 Mar 2026 16:38:22 +0000 (+0200) Subject: metal : fix capture_compute counter logic (llama/20410) X-Git-Tag: upstream/1.8.4~50 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e2aa5c73f369d0b483375786c44647a6d8e53d4b;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp metal : fix capture_compute counter logic (llama/20410) --- diff --git a/ggml/src/ggml-metal/ggml-metal-context.m b/ggml/src/ggml-metal/ggml-metal-context.m index a345cb1f..855fd1ad 100644 --- a/ggml/src/ggml-metal/ggml-metal-context.m +++ b/ggml/src/ggml-metal/ggml-metal-context.m @@ -465,7 +465,7 @@ enum ggml_status ggml_metal_graph_compute(ggml_metal_t ctx, struct ggml_cgraph * ctx->n_nodes_per_cb = (ctx->n_nodes_1 + ctx->n_cb - 1) / ctx->n_cb; - if (ctx->capture_compute > 0) { + if (ctx->capture_compute >= 0) { ctx->capture_compute--; }