Skip to content

Commit

Permalink
ggml : remove sched_yield() call in ggml_graph_compute_thread() (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jul 7, 2023
1 parent 3e08ae9 commit 7242140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7242140

Please sign in to comment.