summaryrefslogtreecommitdiff
path: root/src/tuning/tuning.cpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-07-29 10:26:34 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2018-07-29 10:26:34 +0200
commit5903820ba2736ec4a5f338c2325f59f511b4a0e8 (patch)
tree08eaca8cde2e45682807dcfa6db8252ee520d1bf /src/tuning/tuning.cpp
parent1c9a74147073234da953b84f0bbafefbcf5ffb4f (diff)
parentdda1e567f872d3d89f2f7cd890fb5b29ff98537c (diff)
Merge branch 'master' into CLBlast-267-convgemm
Diffstat (limited to 'src/tuning/tuning.cpp')
-rw-r--r--src/tuning/tuning.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tuning/tuning.cpp b/src/tuning/tuning.cpp
index 216f4b31..822f8851 100644
--- a/src/tuning/tuning.cpp
+++ b/src/tuning/tuning.cpp
@@ -342,8 +342,17 @@ void Tuner(int argc, char* argv[], const int V,
const auto best_time_ms = best_configuration->score;
if (best_time_ms == 0.0) { return; }
- // Also prints the performance of the best-case in terms of GB/s or GFLOPS
+ // Computes and prints some other statistics
+ auto average_ms = 0.0;
+ for (const auto result : results) { average_ms += result.score; }
+ average_ms /= results.size();
printf("\n");
+ printf("* Got average result of %.2lf ms", average_ms);
+ printf(": %.1lf %s\n", settings.metric_amount / (average_ms * 1.0e6),
+ settings.performance_unit.c_str());
+
+
+ // Also prints the performance of the best-case in terms of GB/s or GFLOPS
printf("* Found best result %.2lf ms", best_time_ms);
printf(": %.1lf %s\n", settings.metric_amount / (best_time_ms * 1.0e6),
settings.performance_unit.c_str());