From 48b820d05fd0d39fe09a36818560f43bf58c7d7e Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Sat, 21 Jun 2025 14:50:33 +0800 Subject: [PATCH] ggml-cpu: add debugging prints to see if dlf16 is correct Signed-off-by: Aaron Teo --- ggml/src/ggml-cpu/simd-mappings.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ggml/src/ggml-cpu/simd-mappings.h b/ggml/src/ggml-cpu/simd-mappings.h index 773ed3de4..fcbecf9bf 100644 --- a/ggml/src/ggml-cpu/simd-mappings.h +++ b/ggml/src/ggml-cpu/simd-mappings.h @@ -1,6 +1,7 @@ #pragma once #include "ggml-cpu-impl.h" +#include // // simd mappings @@ -964,9 +965,12 @@ static inline void __lsx_f16x4_store(ggml_fp16_t * x, __m128 y) { static inline float32x4_t __lzs_f16cx4_load(const ggml_fp16_t * x) { #ifdef __NNPA__ + print("%s: %8d %8d %8d %8d\n", __func__, x[0], x[1], x[2], x[3]); uint16x8_t v_x = vec_xl(0, (const ggml_fp16_t *)x); uint16x8_t nnpa_dlf16 = vec_convert_from_fp16(v_x, 0); - return vec_extend_to_fp32_hi(nnpa_dlf16, 0); + float32x4_t result = vec_extend_to_fp32_hi(nnpa_dlf16, 0); + print("%s: %8d %8d %8d %8d\n", __func__, result[0], result[1], result[2], result[3]); + return result; #else float tmp[4];