Skip to content

Commit

Permalink
ggml : remove sched_yield() call in ggml_graph_compute_thread() (gger…
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored and ycros committed Jul 8, 2023
1 parent d5b51bc commit 40110b7
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 @@ -16057,7 +16057,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 40110b7

Please sign in to comment.