]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
metal : fix event synchronization in cpy_tensor_async (llama/19402)
authorGeorgi Gerganov <redacted>
Sat, 7 Feb 2026 05:37:15 +0000 (07:37 +0200)
committerGeorgi Gerganov <redacted>
Sat, 7 Feb 2026 08:37:38 +0000 (10:37 +0200)
src/ggml-metal/ggml-metal-context.m

index c7e8ebd3f32e70600b7c5989aa62985c9dfa3957..5d3a8ce412ac57aa82bcb2a64a82b9fd7538190a 100644 (file)
@@ -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];