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:
Ron Jailall 2023-05-04 11:05:59 -04:00 committed by GitHub
parent db1080876a
commit 20fbf2a2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
ggml.c
View File

@ -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__