Skip to content

Commit 76ea1c1

Browse files
authored
metal : fix capture_compute counter logic (ggml-org#20410)
1 parent bd1ec81 commit 76ea1c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ enum ggml_status ggml_metal_graph_compute(ggml_metal_t ctx, struct ggml_cgraph *
465465

466466
ctx->n_nodes_per_cb = (ctx->n_nodes_1 + ctx->n_cb - 1) / ctx->n_cb;
467467

468-
if (ctx->capture_compute > 0) {
468+
if (ctx->capture_compute >= 0) {
469469
ctx->capture_compute--;
470470
}
471471

0 commit comments

Comments
 (0)