mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	ggml : init time on first ggml_init() call
This commit is contained in:
		
							
								
								
									
										3
									
								
								ggml.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ggml.c
									
									
									
									
									
								
							| @@ -2748,6 +2748,9 @@ struct ggml_context * ggml_init(struct ggml_init_params params) { | ||||
|     static bool is_first_call = true; | ||||
|  | ||||
|     if (is_first_call) { | ||||
|         // initialize time system (required on Windows) | ||||
|         ggml_time_init(); | ||||
|  | ||||
|         // initialize GELU, SILU and EXP F32 tables | ||||
|         { | ||||
|             const uint64_t t_start = ggml_time_us(); UNUSED(t_start); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov