From: Ron Jailall Date: Thu, 4 May 2023 15:05:59 +0000 (-0400) Subject: ggml : change immintrin.h to intrin.h for compatibility (#1307) X-Git-Tag: gguf-v0.4.0~802 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=20fbf2a2a08d8edefe9b3435fa86f8b2f63f8588;p=pkg%2Fggml%2Fsources%2Fllama.cpp ggml : change immintrin.h to intrin.h for compatibility (#1307) * change immintrin.h to intrin.h for compatibility Building on windows11 arm throws an error on this line. Seems like using intrin.h covers x86 and and arm * conditional def of intrin.h * fix typo in ggml.c --- diff --git a/ggml.c b/ggml.c index 0bcb5f61..4d49242a 100644 --- a/ggml.c +++ b/ggml.c @@ -180,9 +180,13 @@ typedef double ggml_float; #undef bool #define bool _Bool #else +#if defined(_MSC_VER) || defined(__MINGW32__) +#include +#else #include #endif #endif +#endif #ifdef __F16C__