aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Jailall <rojailal@gmail.com>2023-05-04 11:05:59 -0400
committerGitHub <noreply@github.com>2023-05-04 18:05:59 +0300
commit20fbf2a2a08d8edefe9b3435fa86f8b2f63f8588 (patch)
treed88b3e6eba3a7b4aeee0de700260925baeb2e560
parentdb1080876a62ec3bb4119d90b16e7dce7594b733 (diff)
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
-rw-r--r--ggml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ggml.c b/ggml.c
index 0bcb5f6..4d49242 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 <intrin.h>
+#else
#include <immintrin.h>
#endif
#endif
+#endif
#ifdef __F16C__