mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-11 13:30:35 +00:00
ggml : make n_threads_cur atomic_int
This commit is contained in:
parent
1b28061400
commit
d7c042d1ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user