]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : fix some build issues
authorslaren <redacted>
Fri, 15 Nov 2024 19:20:54 +0000 (20:20 +0100)
committerGeorgi Gerganov <redacted>
Wed, 20 Nov 2024 19:00:08 +0000 (21:00 +0200)
ggml/src/ggml.c

index 4a97bfc32b39cb6dba75a5bb777d0440200031c3..5cdf59f2560a15dfb91f88a1b8dfe48fc14ba02e 100644 (file)
 
 #define UNUSED GGML_UNUSED
 
+#if defined(_MSC_VER)
+#define m512bh(p) p
+#define m512i(p) p
+#else
+#define m512bh(p) (__m512bh)(p)
+#define m512i(p) (__m512i)(p)
+#endif
+
 // precomputed f32 table for f16 (256 KB) (ggml-impl.h)
 float ggml_table_f32_f16[1 << 16];