Skip to content

Commit bc92bd6

Browse files
authored
Enable sched_yield
Removing it caused a big performance regression for my system
1 parent 5941514 commit bc92bd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16080,7 +16080,7 @@ static thread_ret_t ggml_graph_compute_thread(void * data) {
1608016080
// wait for other threads to finish
1608116081
const int last = node_n;
1608216082
do {
16083-
//sched_yield();
16083+
sched_yield();
1608416084
node_n = atomic_load(&state->shared->node_n);
1608516085
} while (node_n == last);
1608616086
}
@@ -18395,4 +18395,4 @@ int ggml_cpu_has_vsx(void) {
1839518395
#endif
1839618396
}
1839718397

18398-
////////////////////////////////////////////////////////////////////////////////
18398+
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)