ggml : make n_threads_cur atomic_int

This commit is contained in:
Georgi Gerganov 2024-09-11 21:12:11 +03:00
parent 1b28061400
commit d7c042d1ae
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -1997,7 +1997,7 @@ struct ggml_threadpool {
struct ggml_compute_state * workers; // per thread state
int n_threads_max; // number of threads in the pool
int n_threads_cur; // number of threads used in the current graph
atomic_int n_threads_cur; // number of threads used in the current graph
int32_t prio; // Scheduling priority
uint32_t poll; // Polling level (0 - no polling)