Browse Source

ggml : add support for the RISCV architecture (#1616)

apcameron 2 years ago
parent
commit
a6704643b6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ggml.c

+ 2 - 0
ggml.c

@@ -186,10 +186,12 @@ typedef double ggml_float;
 #if defined(_MSC_VER) || defined(__MINGW32__)
 #if defined(_MSC_VER) || defined(__MINGW32__)
 #include <intrin.h>
 #include <intrin.h>
 #else
 #else
+#if !defined(__riscv)
 #include <immintrin.h>
 #include <immintrin.h>
 #endif
 #endif
 #endif
 #endif
 #endif
 #endif
+#endif
 
 
 #ifdef __F16C__
 #ifdef __F16C__