ports/misc/koboldcpp/files/patch-otherarch_ggml__v2.c
Piotr Kubaj 600465f88b misc/koboldcpp: fix build on powerpc*
immintrin.h is not available on powerpc / powerpc64 and requires VSX on powerpc64le.
2024-12-11 18:29:01 +01:00

11 lines
333 B
C

--- otherarch/ggml_v2.c.orig 2024-12-11 11:02:17 UTC
+++ otherarch/ggml_v2.c
@@ -183,7 +183,7 @@ typedef double ggml_v2_float;
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <intrin.h>
#else
-#if !defined(__riscv)
+#if !defined(__riscv) && (defined(__amd64__) || defined(__i386__))
#include <immintrin.h>
#endif
#endif