]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : remove sched_yield() call in ggml_graph_compute_thread() (#2134)
authorGeorgi Gerganov <redacted>
Fri, 7 Jul 2023 15:36:37 +0000 (18:36 +0300)
committerGeorgi Gerganov <redacted>
Fri, 7 Jul 2023 15:37:10 +0000 (18:37 +0300)
ggml.c

diff --git a/ggml.c b/ggml.c
index d257c3d657b34681cce41893456a64e7fa5dbdee..4ba7ac9313820a1d5cd0398c2454c3859d3e583c 100644 (file)
--- 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);
         }