Spaces:
Running
Running
slaren
commited on
Commit
·
c5ba1d1
1
Parent(s):
0f6c498
ggml : fix some build issues
Browse files- ggml/src/ggml.c +8 -0
ggml/src/ggml.c
CHANGED
|
@@ -49,6 +49,14 @@
|
|
| 49 |
|
| 50 |
#define UNUSED GGML_UNUSED
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
|
| 53 |
float ggml_table_f32_f16[1 << 16];
|
| 54 |
|
|
|
|
| 49 |
|
| 50 |
#define UNUSED GGML_UNUSED
|
| 51 |
|
| 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 |
+
|
| 60 |
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
|
| 61 |
float ggml_table_f32_f16[1 << 16];
|
| 62 |
|