From a6cf6f4c4a023437f0be1b0c1b1c57357215d98f Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 18 Jan 2023 21:39:32 +0200 Subject: [PATCH] bench : minor fixes --- extra/bench-all.sh | 2 +- whisper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/bench-all.sh b/extra/bench-all.sh index bfb3764..fbfc877 100755 --- a/extra/bench-all.sh +++ b/extra/bench-all.sh @@ -19,7 +19,7 @@ printf "\n" ./bench -w 1 -t 1 2>&1 printf "\n" -printf "Running ggml_mul_mat benchmark with " $n_threads " threads\n" +printf "Running ggml_mul_mat benchmark with $n_threads threads\n" printf "\n" ./bench -w 2 -t $n_threads 2>&1 diff --git a/whisper.cpp b/whisper.cpp index f408c79..8846b82 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -4103,7 +4103,7 @@ WHISPER_API int whisper_bench_memcpy(int n_threads) { for (size_t i = 0; i < size; i++) sum += dst[i]; - fprintf(stderr, "sum: %s\n", sum == -536870910.00 ? "ok" : "error"); + fprintf(stderr, "sum: %s %f\n", sum == -536870910.00 ? "ok" : "error", sum); } free(src);