]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
bench : minor fixes
authorGeorgi Gerganov <redacted>
Wed, 18 Jan 2023 19:39:32 +0000 (21:39 +0200)
committerGeorgi Gerganov <redacted>
Wed, 18 Jan 2023 19:40:10 +0000 (21:40 +0200)
extra/bench-all.sh
whisper.cpp

index bfb37641632c0b6bb5520b60b394d5cd8d27e6fd..fbfc8772f7c9ff3f162ad716bcda2b1d0b3a2a87 100755 (executable)
@@ -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
index f408c79ca648d9134ac48a4f78bea61075eee8b3..8846b8266ddb97bb40356e5695f865effad535d4 100644 (file)
@@ -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);