mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	ggml : remove sched_yield() call in ggml_graph_compute_thread() (#2134)
This commit is contained in:
		
							
								
								
									
										2
									
								
								ggml.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ggml.c
									
									
									
									
									
								
							| @@ -16042,7 +16042,7 @@ static thread_ret_t ggml_graph_compute_thread(void * data) { | |||||||
|             // wait for other threads to finish |             // wait for other threads to finish | ||||||
|             const int last = node_n; |             const int last = node_n; | ||||||
|             do { |             do { | ||||||
|                 sched_yield(); |                 //sched_yield(); | ||||||
|                 node_n = atomic_load(&state->shared->node_n); |                 node_n = atomic_load(&state->shared->node_n); | ||||||
|             } while (node_n == last); |             } while (node_n == last); | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov