Skip to content

Commit 37d8f4b

Browse files
slarenggerganov
authored andcommitted
ggml : fix some build issues
1 parent 5f5e4ce commit 37d8f4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ggml.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949

5050
#define UNUSED GGML_UNUSED
5151

52+
#if defined(_MSC_VER)
53+
#define m512bh(p) p
54+
#define m512i(p) p
55+
#else
56+
#define m512bh(p) (__m512bh)(p)
57+
#define m512i(p) (__m512i)(p)
58+
#endif
59+
5260
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
5361
float ggml_table_f32_f16[1 << 16];
5462

0 commit comments

Comments
 (0)