From 48d74f439440979696fd0e81d17551687ebd1881 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 16 Jan 2024 15:36:26 +0200 Subject: [PATCH] Update ggml-metal.m --- ggml-metal.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-metal.m b/ggml-metal.m index 20c85a03d..9bc610189 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -734,7 +734,7 @@ 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, ^(size_t cb_idx) { + dispatch_apply(n_cb, ctx->d_queue, ^(int cb_idx) { size_t offs_src0 = 0; size_t offs_src1 = 0; size_t offs_dst = 0;