Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Max Krasnyansky
6b0248c29a
Update ggml/src/ggml.c 2024-09-18 09:00:26 -07:00
slaren
f9196c9174 ggml : fix n_threads_cur initialization with one thread 2024-09-18 14:58:49 +02:00

View file

@ -20239,6 +20239,7 @@ enum ggml_status ggml_graph_compute(struct ggml_cgraph * cgraph, struct ggml_cpl
ggml_graph_compute_thread(&threadpool->workers[omp_get_thread_num()]); ggml_graph_compute_thread(&threadpool->workers[omp_get_thread_num()]);
} }
} else { } else {
atomic_store_explicit(&threadpool->n_threads_cur, 1, memory_order_relaxed);
ggml_graph_compute_thread(&threadpool->workers[0]); ggml_graph_compute_thread(&threadpool->workers[0]);
} }
#else #else