From cc2eb3f3fdef6ca4dd6f5781859dc47457e2857d Mon Sep 17 00:00:00 2001 From: rankaiyx Date: Wed, 17 May 2023 02:17:51 +0800 Subject: [PATCH] benchmark-matmul: Print the average of the test results --- examples/benchmark/benchmark-matmult.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/benchmark/benchmark-matmult.cpp b/examples/benchmark/benchmark-matmult.cpp index 7d237be02..85c2a77b1 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_average = 0; for (int i=0;i