mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	ggml : fix BLAS with unsupported types (#9775)
* ggml : do not use BLAS with types without to_float * ggml : return pointer from ggml_internal_get_type_traits to avoid unnecessary copies * ggml : rename ggml_internal_get_type_traits -> ggml_get_type_traits it's not really internal if everybody uses it
This commit is contained in:
		@@ -5287,9 +5287,9 @@ static void ggml_vk_dequantize_data(const void * from, float * to, size_t ne, gg
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    ggml_type_traits_t tt = ggml_internal_get_type_traits(quant);
 | 
			
		||||
    const auto * tt = ggml_get_type_traits(quant);
 | 
			
		||||
 | 
			
		||||
    ggml_to_float_t dequant_fn = tt.to_float;
 | 
			
		||||
    ggml_to_float_t dequant_fn = tt->to_float;
 | 
			
		||||
 | 
			
		||||
    dequant_fn(from, to, ne);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user