mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	ggml : Fix compilation issues on ARM platform when building without fp16 (#10811)
This commit is contained in:
		| @@ -468,7 +468,7 @@ const struct ggml_type_traits_cpu * ggml_get_type_traits_cpu(enum ggml_type type | |||||||
|     for (int i = 0; i < offset; ++i) {                  \ |     for (int i = 0; i < offset; ++i) {                  \ | ||||||
|         (x)[i] = vaddq_f32((x)[i], (x)[offset+i]);      \ |         (x)[i] = vaddq_f32((x)[i], (x)[offset+i]);      \ | ||||||
|     }                                                   \ |     }                                                   \ | ||||||
|     (res) = GGML_F32x4_REDUCE_ONE((x)[0]);         \ |     (res) = (ggml_float) GGML_F32x4_REDUCE_ONE((x)[0]); \ | ||||||
| } | } | ||||||
|  |  | ||||||
| #define GGML_F32_VEC        GGML_F32x4 | #define GGML_F32_VEC        GGML_F32x4 | ||||||
| @@ -2395,7 +2395,7 @@ static void ggml_init_arm_arch_features(void) { | |||||||
|     uint32_t hwcap2 = getauxval(AT_HWCAP2); |     uint32_t hwcap2 = getauxval(AT_HWCAP2); | ||||||
|  |  | ||||||
|     ggml_arm_arch_features.has_neon = !!(hwcap & HWCAP_ASIMD); |     ggml_arm_arch_features.has_neon = !!(hwcap & HWCAP_ASIMD); | ||||||
|     ggml_arm_arch_features.has_dotprod = !!(hwcap && HWCAP_ASIMDDP); |     ggml_arm_arch_features.has_dotprod = !!(hwcap & HWCAP_ASIMDDP); | ||||||
|     ggml_arm_arch_features.has_i8mm = !!(hwcap2 & HWCAP2_I8MM); |     ggml_arm_arch_features.has_i8mm = !!(hwcap2 & HWCAP2_I8MM); | ||||||
|     ggml_arm_arch_features.has_sve  = !!(hwcap & HWCAP_SVE); |     ggml_arm_arch_features.has_sve  = !!(hwcap & HWCAP_SVE); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Karol Kontny
					Karol Kontny