From 72421402834141df6cbdcf595fe46dbd11874dce Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 7 Jul 2023 18:36:37 +0300 Subject: [PATCH] ggml : remove sched_yield() call in ggml_graph_compute_thread() (#2134) --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index d257c3d65..4ba7ac931 100644 --- a/ggml.c +++ b/ggml.c @@ -16042,7 +16042,7 @@ static thread_ret_t ggml_graph_compute_thread(void * data) { // wait for other threads to finish const int last = node_n; do { - sched_yield(); + //sched_yield(); node_n = atomic_load(&state->shared->node_n); } while (node_n == last); }