ggml : make n_threads_cur atomic_int
This commit is contained in:
parent
1b28061400
commit
d7c042d1ae
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue