From 594a07a515e0ca0b440a332f8fbb2225373623e4 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 7 Oct 2024 14:40:28 +0300 Subject: [PATCH] Update ggml/src/ggml-metal.m --- ggml/src/ggml-metal.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml/src/ggml-metal.m b/ggml/src/ggml-metal.m index 923bcf0b4..db3fbbe48 100644 --- a/ggml/src/ggml-metal.m +++ b/ggml/src/ggml-metal.m @@ -3428,10 +3428,10 @@ static void ggml_backend_metal_set_n_cb(ggml_backend_t backend, int n_cb) { } } - if(ctx->encode_async) { + if (ctx->encode_async) { Block_release(ctx->encode_async); } - + ctx->encode_async = Block_copy(^(size_t iter) { const int cb_idx = iter; const int n_cb_l = ctx->n_cb;