bench : minor fixes

This commit is contained in:
Georgi Gerganov 2023-01-18 21:39:32 +02:00
parent 472a473fd1
commit a6cf6f4c4a
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ printf "\n"
./bench -w 1 -t 1 2>&1 ./bench -w 1 -t 1 2>&1
printf "\n" 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" printf "\n"
./bench -w 2 -t $n_threads 2>&1 ./bench -w 2 -t $n_threads 2>&1

View 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]; 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); free(src);