From: Diego Devesa Date: Mon, 4 Nov 2024 22:17:01 +0000 (+0100) Subject: ggml : fix arch check in bf16_to_fp32 (llama/10164) X-Git-Tag: upstream/0.0.1642~230 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=2585ed441c2c7bbd12e5d13ff66b663bfda449db;p=pkg%2Fggml%2Fsources%2Fggml ggml : fix arch check in bf16_to_fp32 (llama/10164) --- diff --git a/src/ggml.c b/src/ggml.c index 1ccf78d9..e6a7824b 100644 --- a/src/ggml.c +++ b/src/ggml.c @@ -395,6 +395,8 @@ void ggml_bf16_to_fp32_row(const ggml_bf16_t * x, float * y, int64_t n) { 16))); } } +#endif +#if defined(__AVX2__) if (ggml_cpu_has_avx2()) { for (; i + 8 <= n; i += 8) { _mm256_storeu_ps(y + i,