Spaces:
Running
Running
Diego Devesa
commited on
Commit
·
5c0b540
1
Parent(s):
82ee857
ggml : fix apple OS check in ggml_print_backtrace (ggml/1229)
Browse files- ggml/src/ggml.c +4 -2
ggml/src/ggml.c
CHANGED
|
@@ -64,8 +64,10 @@
|
|
| 64 |
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
|
| 65 |
float ggml_table_f32_f16[1 << 16];
|
| 66 |
|
| 67 |
-
#if
|
| 68 |
-
(
|
|
|
|
|
|
|
| 69 |
#include <unistd.h>
|
| 70 |
#include <sys/types.h>
|
| 71 |
#include <sys/stat.h>
|
|
|
|
| 64 |
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
|
| 65 |
float ggml_table_f32_f16[1 << 16];
|
| 66 |
|
| 67 |
+
#if defined(__linux__) || \
|
| 68 |
+
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
|
| 69 |
+
(defined(__APPLE__) && !TARGET_OS_TV && !TARGET_OS_WATCH)
|
| 70 |
+
|
| 71 |
#include <unistd.h>
|
| 72 |
#include <sys/types.h>
|
| 73 |
#include <sys/stat.h>
|