mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	OpenCL: Add release memory (#1741)
* Add opencl release memory * Rename function name
This commit is contained in:
		 Robert Sung-wook Shin
					Robert Sung-wook Shin
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							ae9663f188
						
					
				
				
					commit
					98ed165574
				
			| @@ -210,7 +210,11 @@ struct llama_model { | ||||
|         for (size_t i = 0; i < tensors_by_name.size(); ++i) { | ||||
|             ggml_cuda_free_data(tensors_by_name[i].second); | ||||
|         } | ||||
| #endif // GGML_USE_CUBLAS | ||||
| #elif defined(GGML_USE_CLBLAST) | ||||
|         for (size_t i = 0; i < tensors_by_name.size(); ++i) { | ||||
|             ggml_cl_free_data(tensors_by_name[i].second); | ||||
|         } | ||||
| #endif | ||||
|     } | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user