From: Georgi Gerganov Date: Sat, 7 Feb 2026 05:37:15 +0000 (+0200) Subject: metal : fix event synchronization in cpy_tensor_async (llama/19402) X-Git-Tag: v0.9.7~39 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=90bda2ff42f03f3431202c97b889f85cfe9a1d23;p=pkg%2Fggml%2Fsources%2Fggml metal : fix event synchronization in cpy_tensor_async (llama/19402) --- diff --git a/src/ggml-metal/ggml-metal-context.m b/src/ggml-metal/ggml-metal-context.m index c7e8ebd3..5d3a8ce4 100644 --- a/src/ggml-metal/ggml-metal-context.m +++ b/src/ggml-metal/ggml-metal-context.m @@ -394,7 +394,7 @@ bool ggml_metal_cpy_tensor_async(ggml_metal_t ctx_src, ggml_metal_t ctx_dst, con [encoder endEncoding]; ggml_metal_event_t ev_cpy = ggml_metal_get_ev_cpy(ctx_src); - ggml_metal_event_record(ctx_src, ev_cpy); + ggml_metal_event_encode_signal(ev_cpy, cmd_buf); [cmd_buf commit];