From 3b6e00006f0e47fecae3111fba3260e48f7628d3 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Thu, 26 Apr 2018 07:34:30 +0000
Subject: [PATCH] Task #0: Use 10 iterations for better statistics

---
 RTCP/Cobalt/GPUProc/src/gpu_load.cc | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/RTCP/Cobalt/GPUProc/src/gpu_load.cc b/RTCP/Cobalt/GPUProc/src/gpu_load.cc
index b1721d8e0f1..bd77798a6e9 100644
--- a/RTCP/Cobalt/GPUProc/src/gpu_load.cc
+++ b/RTCP/Cobalt/GPUProc/src/gpu_load.cc
@@ -113,18 +113,21 @@ int main(int argc, char **argv) {
 
   // Initialize subbands partitioning administration (struct BlockID). We only
   // do the 1st block of whatever.
-  in.blockID.block = 0;
-  in.blockID.globalSubbandIdx = 0;
-  in.blockID.localSubbandIdx = 0;
-  in.blockID.subbandProcSubbandIdx = 0;
-
-  size_t block(0);
-
   LOG_INFO("Processing ...");
-  for (block = 0; block < nrBlocksPerIntegration && !out.emit_correlatedData; block++) {
-    LOG_DEBUG_STR("Processing block #" << block);
-    cwq.processSubband(in, out);
-    cwq.postprocessSubband(out);
+  for(size_t iteration = 0; iteration < 10; iteration++) {
+    in.blockID.block = 0;
+    in.blockID.globalSubbandIdx = 0;
+    in.blockID.localSubbandIdx = 0;
+    in.blockID.subbandProcSubbandIdx = 0;
+    out.emit_correlatedData = false;
+
+    size_t block(0);
+
+    for (block = 0; block < nrBlocksPerIntegration && !out.emit_correlatedData; block++) {
+      LOG_DEBUG_STR("Processing block #" << block);
+      cwq.processSubband(in, out);
+      cwq.postprocessSubband(out);
+    }
   }
 
   return 0;
-- 
GitLab