metal : fix capture_compute counter logic (#20410)

This commit is contained in:
Georgi Gerganov 2026-03-11 18:38:22 +02:00 committed by GitHub
parent bd1ec818e9
commit 76ea1c1c46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ enum ggml_status ggml_metal_graph_compute(ggml_metal_t ctx, struct ggml_cgraph *
ctx->n_nodes_per_cb = (ctx->n_nodes_1 + ctx->n_cb - 1) / ctx->n_cb;
if (ctx->capture_compute > 0) {
if (ctx->capture_compute >= 0) {
ctx->capture_compute--;
}