From ef834b00700aeb13221f6721e08c415d5f33cc23 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 16 Jan 2024 15:40:22 +0200 Subject: [PATCH] minor : fix build --- ggml-metal.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ggml-metal.m b/ggml-metal.m index 9bc610189..fbab47aa4 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -734,7 +734,9 @@ static bool ggml_metal_graph_compute( } const int n_nodes_per_cb = (n_nodes + n_cb - 1) / n_cb; - dispatch_apply(n_cb, ctx->d_queue, ^(int cb_idx) { + dispatch_apply(n_cb, ctx->d_queue, ^(size_t iter) { + const int cb_idx = iter; + size_t offs_src0 = 0; size_t offs_src1 = 0; size_t offs_dst = 0;