Skip to content

Commit 32a3533

Browse files
committed
ggml-cpu: move ggml_table_f32_f16 back to ggml-base due to ci failures
Signed-off-by: Aaron Teo <[email protected]>
1 parent 9e40d98 commit 32a3533

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ggml/src/ggml-cpu/simd-mappings.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@
137137
}
138138
#endif
139139

140-
// precomputed f32 table for f16 (256 KB)
141-
// defined in ggml.c, initialized in ggml_init()
142-
GGML_API float ggml_table_f32_f16[1 << 16];
143-
144140
// On ARM NEON, it's quicker to directly convert x -> x instead of calling into ggml_lookup_fp16_to_fp32,
145141
// so we define GGML_CPU_FP16_TO_FP32 and GGML_CPU_FP32_TO_FP16 elsewhere for NEON.
146142
// This is also true for POWER9.

ggml/src/ggml-impl.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ static inline ggml_fp16_t ggml_compute_fp32_to_fp16(float f) {
393393
#define GGML_FP16_TO_FP32(x) GGML_COMPUTE_FP16_TO_FP32(x)
394394
#define GGML_FP32_TO_FP16(x) GGML_COMPUTE_FP32_TO_FP16(x)
395395

396+
// precomputed f32 table for f16 (256 KB)
397+
// defined in ggml.c, initialized in ggml_init()
398+
GGML_API float ggml_table_f32_f16[1 << 16];
399+
396400
/**
397401
* Converts brain16 to float32.
398402
*

0 commit comments

Comments
 (0)