mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
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
This commit is contained in:
parent
db1080876a
commit
20fbf2a2a0
1 changed files with 4 additions and 0 deletions
4
ggml.c
4
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__
|
||||
|
||||
|
|
Loading…
Reference in a new issue