From efeb5ff1df37d9d3f444aca251c26524a33f991c Mon Sep 17 00:00:00 2001 From: Iwan Kawrakow Date: Sat, 23 Aug 2025 14:23:28 +0300 Subject: [PATCH] Log for debugging #721 --- ggml/src/iqk/iqk_mul_mat.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ggml/src/iqk/iqk_mul_mat.cpp b/ggml/src/iqk/iqk_mul_mat.cpp index 33bcfc0c..e9b09e1f 100644 --- a/ggml/src/iqk/iqk_mul_mat.cpp +++ b/ggml/src/iqk/iqk_mul_mat.cpp @@ -548,6 +548,11 @@ extern "C" IQK_API bool iqk_mul_mat(long Nx, long Ny, long ne00, //if (ith == 0) printf("%s: ne00 = %d, row_size_qx = %d, strideA = %d\n", __func__, int(ne00), int(row_size_qx), int(strideA)); auto num_rows = MulMat::num_rows(ggml_type(typeA)); + if (Nx%num_rows) { + fprintf(stderr, "%s: Nx = %d, Ny = %d, ne00 = %d, num_rows = %d, types = %s, %s\n", __func__, (int)Nx, (int)Ny, + (int)ne00, num_rows, ggml_type_name(ggml_type(typeA)), ggml_type_name(ggml_type(typeB))); + GGML_ASSERT(false); + } GGML_ASSERT(Nx%num_rows == 0); auto nrc_x = (Nx/num_rows + nth - 1)/nth; auto first_x = ith*nrc_x;