diff options
author | Ron Jailall <rojailal@gmail.com> | 2023-05-04 11:05:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 18:05:59 +0300 |
commit | 20fbf2a2a08d8edefe9b3435fa86f8b2f63f8588 (patch) | |
tree | d88b3e6eba3a7b4aeee0de700260925baeb2e560 | |
parent | db1080876a62ec3bb4119d90b16e7dce7594b733 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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__ |