]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : fix arch check in bf16_to_fp32 (llama/10164)
authorDiego Devesa <redacted>
Mon, 4 Nov 2024 22:17:01 +0000 (23:17 +0100)
committerGeorgi Gerganov <redacted>
Fri, 15 Nov 2024 13:21:04 +0000 (15:21 +0200)
ggml/src/ggml.c

index 1ccf78d98412c34b59698491be4116a965a33fa1..e6a7824baa167a6f56b0d9abccd67644701a82fa 100644 (file)
@@ -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,