changeset 1062:2fad0743f8ba

Synchronize before starting preprocessing.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 11 Dec 2008 22:25:59 +0100
parents 92705c83533a
children 8bca4980563f
files apps/benchmark.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Tue Dec 16 13:31:06 2008 +0100
+++ b/apps/benchmark.py	Thu Dec 11 22:25:59 2008 +0100
@@ -156,7 +156,15 @@
     def __init__(self, rt, operation):
         self.rt = rt
         self.operation = operation
+        self.sync_preprocess()
 
+    def sync_preprocess(self):
+        print "Synchronizing preprocessing"
+        sys.stdout.flush()
+        sync = self.rt.synchronize()
+        sync.addCallback(self.preprocess)
+
+    def preprocess(self, _):
         program_desc = {}
 
         if isinstance(self.rt, BasicActiveRuntime):