Skip to content

Commit 34ba7b5

Browse files
authored
metal : fix event synchronization in cpy_tensor_async (ggml-org#19402)
1 parent b831118 commit 34ba7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-metal/ggml-metal-context.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ bool ggml_metal_cpy_tensor_async(ggml_metal_t ctx_src, ggml_metal_t ctx_dst, con
394394
[encoder endEncoding];
395395

396396
ggml_metal_event_t ev_cpy = ggml_metal_get_ev_cpy(ctx_src);
397-
ggml_metal_event_record(ctx_src, ev_cpy);
397+
ggml_metal_event_encode_signal(ev_cpy, cmd_buf);
398398

399399
[cmd_buf commit];
400400

0 commit comments

Comments
 (0)