From 48d68c65d24703d7c049b6dbf024a6df3dd563ac Mon Sep 17 00:00:00 2001 From: rankaiyx Date: Wed, 17 May 2023 09:38:01 +0800 Subject: [PATCH] benchmark-matmul: Print the average of the test results --- examples/benchmark/benchmark-matmult.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/benchmark/benchmark-matmult.cpp b/examples/benchmark/benchmark-matmult.cpp index 7d237be02112b..446b8e8fb5ef2 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