From: rankaiyx Date: Wed, 17 May 2023 14:47:58 +0000 (+0800) Subject: benchmark-matmul: Print the average of the test results (#1490) X-Git-Tag: gguf-v0.4.0~748 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c238b5873a1ea496db03ffcfe124c9d0d83afbc6;p=pkg%2Fggml%2Fsources%2Fllama.cpp benchmark-matmul: Print the average of the test results (#1490) --- diff --git a/examples/benchmark/benchmark-matmult.cpp b/examples/benchmark/benchmark-matmult.cpp index 7d237be0..446b8e8f 100644 --- a/examples/benchmark/benchmark-matmult.cpp +++ b/examples/benchmark/benchmark-matmult.cpp @@ -211,6 +211,7 @@ int main(int argc, char ** argv) { printf("Iteration;NThreads; SizeX; SizeY; SizeZ; Required_FLOPS; Elapsed_u_Seconds; gigaFLOPS\n"); printf("=====================================================================================\n"); + double gflops_sum = 0; for (int i=0;i