Skip to content

Commit 6cebee2

Browse files
committed
ggml: move ggml_table_f32_f16 to ggml-cpu.c
Signed-off-by: Aaron Teo <[email protected]>
1 parent 59b48e4 commit 6cebee2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ggml/src/ggml-cpu/ggml-cpu.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
#define UNUSED GGML_UNUSED
7373
#define SWAP(x, y, T) do { T SWAP = x; (x) = y; (y) = SWAP; } while (0)
7474

75+
// precomputed f32 table for f16 (256 KB) (simd-mappings.h)
76+
float ggml_table_f32_f16[1 << 16];
77+
7578
#if defined(__ARM_ARCH)
7679
struct ggml_arm_arch_features_type {
7780
int sve_cnt;

ggml/src/ggml.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@
6161
#define m512i(p) (__m512i)(p)
6262
#endif
6363

64-
// precomputed f32 table for f16 (256 KB) (ggml-impl.h)
65-
float ggml_table_f32_f16[1 << 16];
66-
6764
#if defined(__linux__) || \
6865
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
6966
(defined(__APPLE__) && !TARGET_OS_TV && !TARGET_OS_WATCH)

0 commit comments

Comments
 (0)