mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	ggml : make n_threads_cur atomic_int
This commit is contained in:
		| @@ -1997,7 +1997,7 @@ struct ggml_threadpool { | |||||||
|  |  | ||||||
|     struct ggml_compute_state * workers;   // per thread state |     struct ggml_compute_state * workers;   // per thread state | ||||||
|     int          n_threads_max; // number of threads in the pool |     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 |     int32_t      prio;        // Scheduling priority | ||||||
|     uint32_t     poll;        // Polling level (0 - no polling) |     uint32_t     poll;        // Polling level (0 - no polling) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov