Skip to content

Commit

Permalink
ggml : make n_threads_cur atomic_int
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Sep 11, 2024
1 parent 1b28061 commit d7c042d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml/src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d7c042d

Please sign in to comment.