Skip to content

Commit 20fbf2a

Browse files
authored
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
1 parent db10808 commit 20fbf2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml.c

+4
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,13 @@ typedef double ggml_float;
180180
#undef bool
181181
#define bool _Bool
182182
#else
183+
#if defined(_MSC_VER) || defined(__MINGW32__)
184+
#include <intrin.h>
185+
#else
183186
#include <immintrin.h>
184187
#endif
185188
#endif
189+
#endif
186190

187191
#ifdef __F16C__
188192

0 commit comments

Comments
 (0)