diff --git a/ggml-metal.m b/ggml-metal.m index 80c1e6193..52236651c 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -2229,9 +2229,9 @@ static bool ggml_metal_graph_compute( [encoder endEncoding]; [command_buffer commit]; - + [command_buffer waitUntilCompleted]; - + MTLCommandBufferStatus status = [command_buffer status]; if (status != MTLCommandBufferStatusCompleted) { all_buffers_succeeded = false;