From 21a5b8bd2820c097c1aa03d85cb83658609c7a12 Mon Sep 17 00:00:00 2001 From: Kawrakow Date: Tue, 1 Apr 2025 13:48:20 +0200 Subject: Fix ARM_NEON build failure due to q8_2 (#303) Co-authored-by: Iwan Kawrakow --- ggml/src/ggml-alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ggml/src/ggml-alloc.c') diff --git a/ggml/src/ggml-alloc.c b/ggml/src/ggml-alloc.c index d811dee6..3f2d2023 100644 --- a/ggml/src/ggml-alloc.c +++ b/ggml/src/ggml-alloc.c @@ -174,8 +174,8 @@ static size_t ggml_dyn_tallocr_alloc(struct ggml_dyn_tallocr * alloc, size_t siz // this should never happen fprintf(stderr, "%s: not enough space in the buffer to allocate %zu bytes, largest block available %zu bytes\n", __func__, size, max_avail); - fprintf(stderr, "%s: tensor was %s with %zu elements and %zu bytes\n", __func__, tensor->name, - ggml_nelements(tensor), ggml_nbytes(tensor)); + fprintf(stderr, "%s: tensor was %s with %g elements and %zu bytes\n", __func__, tensor->name, + 1.*ggml_nelements(tensor), ggml_nbytes(tensor)); GGML_ABORT("not enough space in the buffer"); } } -- cgit v1.2.3