1. petsc
  2. PETSc
  3. petsc

Commits

Matt Knepley  committed 0bc2d6f

Benchmark: Corrected processing of parallel flops

  • Participants
  • Parent commits b3efd4c
  • Branches master

Comments (0)

Files changed (1)

File src/benchmarks/benchmarkExample.py

View file
  • Ignore whitespace
       if not name in events:
         events[name] = []
       try:
-        events[name].append((stage.event[name].Time[0], stage.event[name].Flops[0]/(stage.event[name].Time[0] * 1e6)))
+        events[name].append((max(stage.event[name].Time), sum(stage.event[name].Flops)/(max(stage.event[name].Time) * 1e6)))
       except ZeroDivisionError:
-        events[name].append((stage.event[name].Time[0], 0))
+        events[name].append((max(stage.event[name].Time), 0))
   return
 
 def plotTime(library, num, eventNames, sizes, times, events):