From 43f6684f3d6c6e45eca72906828377f6d887b0fd Mon Sep 17 00:00:00 2001 From: aendk Date: Fri, 16 Jan 2026 10:43:56 +0100 Subject: [PATCH] Corrects initialization of ggml_backend_sync_mode in ggml_backend_sched_split initialization --- ggml/src/ggml-backend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ggml/src/ggml-backend.cpp b/ggml/src/ggml-backend.cpp index 8de584c906..aa922e6756 100644 --- a/ggml/src/ggml-backend.cpp +++ b/ggml/src/ggml-backend.cpp @@ -671,9 +671,9 @@ static bool ggml_is_view_op(enum ggml_op op) { #endif enum ggml_backend_sync_mode { - GGML_SPLIT_SYNC_MODE_IMPLICIT = 0, // splits which can rely on implicit sync mechanisms of its backend like a queue or stream + GGML_SPLIT_SYNC_MODE_EXPLICIT = 0, // splits which require explicit synchronization throughout (default) GGML_SPLIT_SYNC_MODE_WRITE_READ_BOUNDARY = 1, // splits which require only a single explicit sync between the last write and the first read - GGML_SPLIT_SYNC_MODE_EXPLICIT = 2 // splits which require explicit synchronization throughout (default) + GGML_SPLIT_SYNC_MODE_IMPLICIT = 2 // splits which can rely on implicit sync mechanisms of its backend like a queue or stream }; struct ggml_backend_sched_split { @@ -684,7 +684,7 @@ struct ggml_backend_sched_split { int n_inputs; // graph view of this split struct ggml_cgraph graph; - enum ggml_backend_sync_mode backend_sync_mode = GGML_SPLIT_SYNC_MODE_EXPLICIT; + enum ggml_backend_sync_mode backend_sync_mode; }; struct ggml_backend_sched {