ggml : remove sched_yield() call in ggml_graph_compute_thread() (#2134)

This commit is contained in:
Georgi Gerganov 2023-07-07 18:36:37 +03:00
parent 3e08ae99ce
commit 7242140283

2
ggml.c
View file

@ -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);
}