auto rope scale adjustments, added sched yield fix for apple, adjust warning for mirostat

This commit is contained in:
Concedo 2023-07-19 16:44:44 +08:00
parent 0d7240b320
commit e9467f5a44
3 changed files with 6 additions and 2 deletions

4
ggml.c
View file

@ -16367,7 +16367,11 @@ static thread_ret_t ggml_graph_compute_thread(void * data) {
// wait for other threads to finish
const int last = node_n;
do {
#if defined(GGML_USE_ACCELERATE) || defined(GGML_USE_METAL)
//apple does nothing
#else
sched_yield();
#endif
node_n = atomic_load(&state->shared->node_n);
} while (node_n == last);
}