viff

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 diff
     1.1 --- a/apps/benchmark.py	Tue Dec 16 13:31:06 2008 +0100
     1.2 +++ b/apps/benchmark.py	Thu Dec 11 22:25:59 2008 +0100
     1.3 @@ -156,7 +156,15 @@
     1.4      def __init__(self, rt, operation):
     1.5          self.rt = rt
     1.6          self.operation = operation
     1.7 +        self.sync_preprocess()
     1.8  
     1.9 +    def sync_preprocess(self):
    1.10 +        print "Synchronizing preprocessing"
    1.11 +        sys.stdout.flush()
    1.12 +        sync = self.rt.synchronize()
    1.13 +        sync.addCallback(self.preprocess)
    1.14 +
    1.15 +    def preprocess(self, _):
    1.16          program_desc = {}
    1.17  
    1.18          if isinstance(self.rt, BasicActiveRuntime):