xref: /petsc/src/benchmarks/benchmarkExample.py (revision df494a56ddfb7ca8682c083410d5db933b66f3a0)
13428b40fSMatthew G Knepley#!/usr/bin/env python
2eda8839fSMatthew G Knepleyimport os,sys
3683aebbfSMatthew G Knepleysys.path.append(os.path.join(os.environ['PETSC_DIR'], 'config'))
4683aebbfSMatthew G Knepleyfrom builder2 import buildExample
519d5f70aSMatthew G Knepleyfrom benchmarkBatch import generateBatchScript
63428b40fSMatthew G Knepley
73428b40fSMatthew G Knepleyclass PETSc(object):
83428b40fSMatthew G Knepley  def __init__(self):
93428b40fSMatthew G Knepley    return
103428b40fSMatthew G Knepley
113428b40fSMatthew G Knepley  def dir(self):
123428b40fSMatthew G Knepley    '''Return the root directory for the PETSc tree (usually $PETSC_DIR)'''
133428b40fSMatthew G Knepley    # This should search for a valid PETSc
143428b40fSMatthew G Knepley    return os.environ['PETSC_DIR']
153428b40fSMatthew G Knepley
163428b40fSMatthew G Knepley  def arch(self):
173428b40fSMatthew G Knepley    '''Return the PETSc build label (usually $PETSC_ARCH)'''
183428b40fSMatthew G Knepley    # This should be configurable
193428b40fSMatthew G Knepley    return os.environ['PETSC_ARCH']
203428b40fSMatthew G Knepley
213428b40fSMatthew G Knepley  def mpiexec(self):
223428b40fSMatthew G Knepley    '''Return the path for the mpi launch executable'''
23e3da8a91SMatthew G Knepley    mpiexec = os.path.join(self.dir(), self.arch(), 'bin', 'mpiexec')
246cbfa02cSMatthew G Knepley    if not os.path.isfile(mpiexec):
25e3da8a91SMatthew G Knepley      return None
26e3da8a91SMatthew G Knepley    return mpiexec
273428b40fSMatthew G Knepley
283428b40fSMatthew G Knepley  def example(self, num):
293428b40fSMatthew G Knepley    '''Return the path to the executable for a given example number'''
303428b40fSMatthew G Knepley    return os.path.join(self.dir(), self.arch(), 'lib', 'ex'+str(num)+'-obj', 'ex'+str(num))
313428b40fSMatthew G Knepley
320790b1abSMatthew G Knepley  def source(self, library, num):
330790b1abSMatthew G Knepley    '''Return the path to the sources for a given example number'''
340790b1abSMatthew G Knepley    d = os.path.join(self.dir(), 'src', library.lower(), 'examples', 'tutorials')
350790b1abSMatthew G Knepley    name = 'ex'+str(num)
360790b1abSMatthew G Knepley    sources = []
370790b1abSMatthew G Knepley    for f in os.listdir(d):
380790b1abSMatthew G Knepley      if f == name+'.c':
392642ea08SMatthew G Knepley        sources.insert(0, f)
400790b1abSMatthew G Knepley      elif f.startswith(name) and f.endswith('.cu'):
410790b1abSMatthew G Knepley        sources.append(f)
420790b1abSMatthew G Knepley    return map(lambda f: os.path.join(d, f), sources)
430790b1abSMatthew G Knepley
443428b40fSMatthew G Knepleyclass PETScExample(object):
453428b40fSMatthew G Knepley  def __init__(self, library, num, **defaultOptions):
463428b40fSMatthew G Knepley    self.petsc   = PETSc()
473428b40fSMatthew G Knepley    self.library = library
483428b40fSMatthew G Knepley    self.num     = num
493428b40fSMatthew G Knepley    self.opts    = defaultOptions
503428b40fSMatthew G Knepley    return
513428b40fSMatthew G Knepley
523428b40fSMatthew G Knepley  @staticmethod
533428b40fSMatthew G Knepley  def runShellCommand(command, cwd = None):
543428b40fSMatthew G Knepley    import subprocess
553428b40fSMatthew G Knepley
563428b40fSMatthew G Knepley    Popen = subprocess.Popen
573428b40fSMatthew G Knepley    PIPE  = subprocess.PIPE
583428b40fSMatthew G Knepley    print 'Executing: %s\n' % (command,)
593428b40fSMatthew G Knepley    pipe = Popen(command, cwd=cwd, stdin=None, stdout=PIPE, stderr=PIPE, bufsize=-1, shell=True, universal_newlines=True)
603428b40fSMatthew G Knepley    (out, err) = pipe.communicate()
613428b40fSMatthew G Knepley    ret = pipe.returncode
623428b40fSMatthew G Knepley    return (out, err, ret)
633428b40fSMatthew G Knepley
643428b40fSMatthew G Knepley  def optionsToString(self, **opts):
653428b40fSMatthew G Knepley    '''Convert a dictionary of options to a command line argument string'''
663428b40fSMatthew G Knepley    a = []
673428b40fSMatthew G Knepley    for key,value in opts.iteritems():
683428b40fSMatthew G Knepley      if value is None:
693428b40fSMatthew G Knepley        a.append('-'+key)
703428b40fSMatthew G Knepley      else:
713428b40fSMatthew G Knepley        a.append('-'+key+' '+str(value))
723428b40fSMatthew G Knepley    return ' '.join(a)
733428b40fSMatthew G Knepley
7419d5f70aSMatthew G Knepley  def run(self, numProcs = 1, **opts):
75e3da8a91SMatthew G Knepley    if self.petsc.mpiexec() is None:
76e3da8a91SMatthew G Knepley      cmd = self.petsc.example(self.num)
77e3da8a91SMatthew G Knepley    else:
7819d5f70aSMatthew G Knepley      cmd = ' '.join([self.petsc.mpiexec(), '-n', str(numProcs), self.petsc.example(self.num)])
79e3da8a91SMatthew G Knepley    cmd += ' '+self.optionsToString(**self.opts)+' '+self.optionsToString(**opts)
8019d5f70aSMatthew G Knepley    if 'batch' in opts and opts['batch']:
8119d5f70aSMatthew G Knepley      del opts['batch']
823849a283SMatthew G Knepley      filename = generateBatchScript(self.num, numProcs, 120, ' '+self.optionsToString(**self.opts)+' '+self.optionsToString(**opts))
833849a283SMatthew G Knepley      # Submit job
843849a283SMatthew G Knepley      out, err, ret = self.runShellCommand('qsub -q gpu '+filename)
853849a283SMatthew G Knepley      if ret:
863849a283SMatthew G Knepley        print err
873849a283SMatthew G Knepley        print out
8819d5f70aSMatthew G Knepley    else:
893428b40fSMatthew G Knepley      out, err, ret = self.runShellCommand(cmd)
903428b40fSMatthew G Knepley      if ret:
913428b40fSMatthew G Knepley        print err
923428b40fSMatthew G Knepley        print out
930790b1abSMatthew G Knepley    return out
943428b40fSMatthew G Knepley
95eda8839fSMatthew G Knepleydef processSummary(moduleName, defaultStage, eventNames, times, events):
963428b40fSMatthew G Knepley  '''Process the Python log summary into plot data'''
973428b40fSMatthew G Knepley  m = __import__(moduleName)
983428b40fSMatthew G Knepley  reload(m)
993428b40fSMatthew G Knepley  # Total Time
1003428b40fSMatthew G Knepley  times.append(m.Time[0])
1013428b40fSMatthew G Knepley  # Particular events
102eda8839fSMatthew G Knepley  for name in eventNames:
103eda8839fSMatthew G Knepley    if name.find(':') >= 0:
104eda8839fSMatthew G Knepley      stageName, name = name.split(':', 1)
105eda8839fSMatthew G Knepley      stage = getattr(m, stageName)
106eda8839fSMatthew G Knepley    else:
107eda8839fSMatthew G Knepley      stage = getattr(m, defaultStage)
108eda8839fSMatthew G Knepley    if name in stage.event:
1093428b40fSMatthew G Knepley      if not name in events:
1103428b40fSMatthew G Knepley        events[name] = []
111*df494a56SMatthew G Knepley      try:
112eda8839fSMatthew G Knepley        events[name].append((stage.event[name].Time[0], stage.event[name].Flops[0]/(stage.event[name].Time[0] * 1e6)))
113*df494a56SMatthew G Knepley      except ZeroDivisionError:
114*df494a56SMatthew G Knepley        events[name].append((stage.event[name].Time[0], 0))
1153428b40fSMatthew G Knepley  return
1163428b40fSMatthew G Knepley
117303b7b21SMatthew G Knepleydef plotSummaryLine(library, num, eventNames, sizes, times, events):
1183428b40fSMatthew G Knepley  from pylab import legend, plot, show, title, xlabel, ylabel
1193428b40fSMatthew G Knepley  import numpy as np
1203428b40fSMatthew G Knepley  showTime       = False
1213428b40fSMatthew G Knepley  showEventTime  = True
1223428b40fSMatthew G Knepley  showEventFlops = True
1233428b40fSMatthew G Knepley  arches         = sizes.keys()
1243428b40fSMatthew G Knepley  # Time
1253428b40fSMatthew G Knepley  if showTime:
1263428b40fSMatthew G Knepley    data = []
1273428b40fSMatthew G Knepley    for arch in arches:
1283428b40fSMatthew G Knepley      data.append(sizes[arch])
1293428b40fSMatthew G Knepley      data.append(times[arch])
1303428b40fSMatthew G Knepley    plot(*data)
1313428b40fSMatthew G Knepley    title('Performance on '+library+' Example '+str(num))
1323428b40fSMatthew G Knepley    xlabel('Number of Dof')
1333428b40fSMatthew G Knepley    ylabel('Time (s)')
1343428b40fSMatthew G Knepley    legend(arches, 'upper left', shadow = True)
1353428b40fSMatthew G Knepley    show()
1363428b40fSMatthew G Knepley  # Common event time
1373428b40fSMatthew G Knepley  #   We could make a stacked plot like Rio uses here
1383428b40fSMatthew G Knepley  if showEventTime:
139*df494a56SMatthew G Knepley    bs    = events[arches[0]].keys()[0]
1403428b40fSMatthew G Knepley    data  = []
1413428b40fSMatthew G Knepley    names = []
142*df494a56SMatthew G Knepley    for event, color in zip(eventNames, ['b', 'g', 'r', 'y']):
1433428b40fSMatthew G Knepley      for arch, style in zip(arches, ['-', ':']):
144*df494a56SMatthew G Knepley        if event in events[arch][bs]:
145*df494a56SMatthew G Knepley          names.append(arch+'-'+str(bs)+' '+event)
146*df494a56SMatthew G Knepley          data.append(sizes[arch][bs])
147*df494a56SMatthew G Knepley          data.append(np.array(events[arch][bs][event])[:,0])
1483428b40fSMatthew G Knepley          data.append(color+style)
149*df494a56SMatthew G Knepley        else:
150*df494a56SMatthew G Knepley          print 'Could not find %s in %s-%d events' % (event, arch, bs)
151*df494a56SMatthew G Knepley    print data
1523428b40fSMatthew G Knepley    plot(*data)
1533428b40fSMatthew G Knepley    title('Performance on '+library+' Example '+str(num))
1543428b40fSMatthew G Knepley    xlabel('Number of Dof')
1553428b40fSMatthew G Knepley    ylabel('Time (s)')
1563428b40fSMatthew G Knepley    legend(names, 'upper left', shadow = True)
1573428b40fSMatthew G Knepley    show()
1583428b40fSMatthew G Knepley  # Common event flops
1593428b40fSMatthew G Knepley  #   We could make a stacked plot like Rio uses here
1603428b40fSMatthew G Knepley  if showEventFlops:
161*df494a56SMatthew G Knepley    bs    = events[arches[0]].keys()[0]
1623428b40fSMatthew G Knepley    data  = []
1633428b40fSMatthew G Knepley    names = []
164*df494a56SMatthew G Knepley    for event, color in zip(eventNames, ['b', 'g', 'r', 'y']):
1653428b40fSMatthew G Knepley      for arch, style in zip(arches, ['-', ':']):
166*df494a56SMatthew G Knepley        if event in events[arch][bs]:
167*df494a56SMatthew G Knepley          names.append(arch+'-'+str(bs)+' '+event)
168*df494a56SMatthew G Knepley          data.append(sizes[arch][bs])
169*df494a56SMatthew G Knepley          data.append(np.array(events[arch][bs][event])[:,1])
1703428b40fSMatthew G Knepley          data.append(color+style)
171*df494a56SMatthew G Knepley        else:
172*df494a56SMatthew G Knepley          print 'Could not find %s in %s-%d events' % (event, arch, bs)
1733428b40fSMatthew G Knepley    plot(*data)
1743428b40fSMatthew G Knepley    title('Performance on '+library+' Example '+str(num))
1753428b40fSMatthew G Knepley    xlabel('Number of Dof')
1763428b40fSMatthew G Knepley    ylabel('Computation Rate (MF/s)')
1773428b40fSMatthew G Knepley    legend(names, 'upper left', shadow = True)
1783428b40fSMatthew G Knepley    show()
1793428b40fSMatthew G Knepley  return
1803428b40fSMatthew G Knepley
181303b7b21SMatthew G Knepleydef plotSummaryBar(library, num, eventNames, sizes, times, events):
182e3da8a91SMatthew G Knepley  import numpy as np
183e3da8a91SMatthew G Knepley  import matplotlib.pyplot as plt
184e3da8a91SMatthew G Knepley
185303b7b21SMatthew G Knepley  eventColors = ['b', 'g', 'r', 'y']
186e3da8a91SMatthew G Knepley  arches = sizes.keys()
187e3da8a91SMatthew G Knepley  names  = []
188e3da8a91SMatthew G Knepley  N      = len(sizes[arches[0]])
189e3da8a91SMatthew G Knepley  width  = 0.2
190e3da8a91SMatthew G Knepley  ind    = np.arange(N) - 0.25
191e3da8a91SMatthew G Knepley  bars   = {}
192e3da8a91SMatthew G Knepley  for arch in arches:
193e3da8a91SMatthew G Knepley    bars[arch] = []
194e3da8a91SMatthew G Knepley    bottom = np.zeros(N)
195e3da8a91SMatthew G Knepley    for event, color in zip(eventNames, eventColors):
196e3da8a91SMatthew G Knepley      names.append(arch+' '+event)
197e3da8a91SMatthew G Knepley      times = np.array(events[arch][event])[:,0]
198e3da8a91SMatthew G Knepley      bars[arch].append(plt.bar(ind, times, width, color=color, bottom=bottom))
199e3da8a91SMatthew G Knepley      bottom += times
200e3da8a91SMatthew G Knepley    ind += 0.3
201e3da8a91SMatthew G Knepley
202e3da8a91SMatthew G Knepley  plt.xlabel('Number of Dof')
203e3da8a91SMatthew G Knepley  plt.ylabel('Time (s)')
204e3da8a91SMatthew G Knepley  plt.title('GPU vs. CPU Performance on '+library+' Example '+str(num))
205e3da8a91SMatthew G Knepley  plt.xticks(np.arange(N), map(str, sizes[arches[0]]))
206e3da8a91SMatthew G Knepley  #plt.yticks(np.arange(0,81,10))
207e3da8a91SMatthew G Knepley  #plt.legend( (p1[0], p2[0]), ('Men', 'Women') )
208e3da8a91SMatthew G Knepley  plt.legend([bar[0] for bar in bars[arches[0]]], eventNames, 'upper right', shadow = True)
209e3da8a91SMatthew G Knepley
210e3da8a91SMatthew G Knepley  plt.show()
211e3da8a91SMatthew G Knepley  return
212e3da8a91SMatthew G Knepley
213*df494a56SMatthew G Knepleydef getDMComplexSize(dim, out):
214683aebbfSMatthew G Knepley  '''Retrieves the number of cells from '''
215683aebbfSMatthew G Knepley  size = 0
216683aebbfSMatthew G Knepley  for line in out.split('\n'):
217683aebbfSMatthew G Knepley    if line.strip().startswith(str(dim)+'-cells: '):
218683aebbfSMatthew G Knepley      size = int(line.strip()[9:])
219683aebbfSMatthew G Knepley      break
220683aebbfSMatthew G Knepley  return size
221683aebbfSMatthew G Knepley
222683aebbfSMatthew G Knepleydef run_DMDA(ex, name, opts, args, sizes, times, events):
223683aebbfSMatthew G Knepley  for n in map(int, args.size):
224683aebbfSMatthew G Knepley    ex.run(da_grid_x=n, da_grid_y=n, **opts)
225683aebbfSMatthew G Knepley    sizes[name].append(n*n * args.comp)
226683aebbfSMatthew G Knepley    processSummary('summary', args.stage, args.events, times[name], events[name])
227683aebbfSMatthew G Knepley  return
228683aebbfSMatthew G Knepley
229*df494a56SMatthew G Knepleydef run_DMComplex(ex, name, opts, args, sizes, times, events):
230683aebbfSMatthew G Knepley  # This should eventually be replaced by a direct FFC/Ignition interface
231683aebbfSMatthew G Knepley  if args.operator == 'laplacian':
232683aebbfSMatthew G Knepley    numComp  = 1
233683aebbfSMatthew G Knepley  elif args.operator == 'elasticity':
234683aebbfSMatthew G Knepley    numComp  = args.dim
235683aebbfSMatthew G Knepley  else:
236683aebbfSMatthew G Knepley    raise RuntimeError('Unknown operator: %s' % args.operator)
237683aebbfSMatthew G Knepley
238683aebbfSMatthew G Knepley  for numBlock in [2**i for i in map(int, args.blockExp)]:
239683aebbfSMatthew G Knepley    opts['gpu_blocks'] = numBlock
240683aebbfSMatthew G Knepley    # Generate new block size
241683aebbfSMatthew G Knepley    cmd = './bin/pythonscripts/PetscGenerateFEMQuadrature.py %d %d %d %d %s %s.h' % (args.dim, args.order, numComp, numBlock, args.operator, os.path.splitext(source[0])[0])
242683aebbfSMatthew G Knepley    print(cmd)
243683aebbfSMatthew G Knepley    ret = os.system('python '+cmd)
244683aebbfSMatthew G Knepley    args.files = ['['+','.join(source)+']']
245683aebbfSMatthew G Knepley    buildExample(args)
246683aebbfSMatthew G Knepley    sizes[name][numBlock]  = []
247683aebbfSMatthew G Knepley    times[name][numBlock]  = []
248683aebbfSMatthew G Knepley    events[name][numBlock] = {}
249683aebbfSMatthew G Knepley    for r in map(float, args.refine):
250683aebbfSMatthew G Knepley      out = ex.run(refinement_limit=r, **opts)
251*df494a56SMatthew G Knepley      sizes[name][numBlock].append(getDMComplexSize(args.dim, out))
252683aebbfSMatthew G Knepley      processSummary('summary', args.stage, args.events, times[name][numBlock], events[name][numBlock])
253683aebbfSMatthew G Knepley  return
254683aebbfSMatthew G Knepley
2553428b40fSMatthew G Knepleyif __name__ == '__main__':
256eda8839fSMatthew G Knepley  import argparse
257eda8839fSMatthew G Knepley
258eda8839fSMatthew G Knepley  parser = argparse.ArgumentParser(description     = 'PETSc Benchmarking',
259eda8839fSMatthew G Knepley                                   epilog          = 'This script runs src/<library>/examples/tutorials/ex<num>, For more information, visit http://www.mcs.anl.gov/petsc',
260eda8839fSMatthew G Knepley                                   formatter_class = argparse.ArgumentDefaultsHelpFormatter)
261eda8839fSMatthew G Knepley  parser.add_argument('--library', default='SNES',                     help='The PETSc library used in this example')
262eda8839fSMatthew G Knepley  parser.add_argument('--num',     type = int, default='5',            help='The example number')
263eda8839fSMatthew G Knepley  parser.add_argument('--module',  default='summary',                  help='The module for timing output')
264eda8839fSMatthew G Knepley  parser.add_argument('--stage',   default='Main_Stage',               help='The default logging stage')
265eda8839fSMatthew G Knepley  parser.add_argument('--events',  nargs='+',                          help='Events to process')
266eda8839fSMatthew G Knepley  parser.add_argument('--batch',   action='store_true', default=False, help='Generate batch files for the runs instead')
267683aebbfSMatthew G Knepley  subparsers = parser.add_subparsers(help='DM types')
268eda8839fSMatthew G Knepley
269683aebbfSMatthew G Knepley  parser_dmda = subparsers.add_parser('DMDA', help='Use a DMDA for the problem geometry')
270683aebbfSMatthew G Knepley  parser_dmda.add_argument('--size', nargs='+',  default=['10'], help='Grid size (implementation dependent)')
271683aebbfSMatthew G Knepley  parser_dmda.add_argument('--comp', type = int, default='1',    help='Number of field components')
272683aebbfSMatthew G Knepley  parser_dmda.add_argument('runs',   nargs='*',                  help='Run descriptions: <name>=<args>')
273683aebbfSMatthew G Knepley
274*df494a56SMatthew G Knepley  parser_dmmesh = subparsers.add_parser('DMComplex', help='Use a DMComplex for the problem geometry')
275683aebbfSMatthew G Knepley  parser_dmmesh.add_argument('--dim',      type = int, default='2',        help='Spatial dimension')
276683aebbfSMatthew G Knepley  parser_dmmesh.add_argument('--refine',   nargs='+',  default=['0.0'],    help='List of refinement limits')
277683aebbfSMatthew G Knepley  parser_dmmesh.add_argument('--order',    type = int, default='1',        help='Order of the finite element')
278683aebbfSMatthew G Knepley  parser_dmmesh.add_argument('--operator', default='laplacian',            help='The operator name')
279683aebbfSMatthew G Knepley  parser_dmmesh.add_argument('--blockExp', nargs='+', default=range(0, 5), help='List of block exponents j, block size is 2^j')
280683aebbfSMatthew G Knepley  parser_dmmesh.add_argument('runs',       nargs='*',                      help='Run descriptions: <name>=<args>')
281eda8839fSMatthew G Knepley
282eda8839fSMatthew G Knepley  args = parser.parse_args()
283eda8839fSMatthew G Knepley  print(args)
284683aebbfSMatthew G Knepley  if hasattr(args, 'comp'):
285683aebbfSMatthew G Knepley    args.dmType = 'DMDA'
286683aebbfSMatthew G Knepley  else:
287*df494a56SMatthew G Knepley    args.dmType = 'DMComplex'
288683aebbfSMatthew G Knepley
289eda8839fSMatthew G Knepley  ex     = PETScExample(args.library, args.num, log_summary='summary.dat', log_summary_python = None if args.batch else args.module+'.py', preload='off')
290683aebbfSMatthew G Knepley  source = ex.petsc.source(args.library, args.num)
2913428b40fSMatthew G Knepley  sizes  = {}
2923428b40fSMatthew G Knepley  times  = {}
2933428b40fSMatthew G Knepley  events = {}
294683aebbfSMatthew G Knepley
295eda8839fSMatthew G Knepley  for run in args.runs:
296eda8839fSMatthew G Knepley    name, stropts = run.split('=', 1)
297eda8839fSMatthew G Knepley    opts = dict([t if len(t) == 2 else (t[0], None) for t in [arg.split('=', 1) for arg in stropts.split(' ')]])
298683aebbfSMatthew G Knepley    if args.dmType == 'DMDA':
2993428b40fSMatthew G Knepley      sizes[name]  = []
3003428b40fSMatthew G Knepley      times[name]  = []
3013428b40fSMatthew G Knepley      events[name] = {}
302683aebbfSMatthew G Knepley      run_DMDA(ex, name, opts, args, sizes, times, events)
303*df494a56SMatthew G Knepley    elif args.dmType == 'DMComplex':
304683aebbfSMatthew G Knepley      sizes[name]  = {}
305683aebbfSMatthew G Knepley      times[name]  = {}
306683aebbfSMatthew G Knepley      events[name] = {}
307*df494a56SMatthew G Knepley      run_DMComplex(ex, name, opts, args, sizes, times, events)
308683aebbfSMatthew G Knepley  print('sizes',sizes)
309683aebbfSMatthew G Knepley  print('times',times)
310683aebbfSMatthew G Knepley  print('events',events)
311303b7b21SMatthew G Knepley  if not args.batch: plotSummaryLine(args.library, args.num, args.events, sizes, times, events)
312683aebbfSMatthew G Knepley# Benchmark for ex50
313683aebbfSMatthew G Knepley# ./src/benchmarks/benchmarkExample.py --events VecMDot VecMAXPY KSPGMRESOrthog MatMult VecCUSPCopyTo VecCUSPCopyFrom MatCUSPCopyTo --num 50 DMDA --size 10 20 50 100 --comp 4 CPU='pc_type=none mat_no_inode dm_vec_type=seq dm_mat_type=seqaij' GPU='pc_type=none mat_no_inode dm_vec_type=seqcusp dm_mat_type=seqaijcusp cusp_synchronize'
314683aebbfSMatthew G Knepley# Benchmark for ex52
315*df494a56SMatthew G Knepley# ./src/benchmarks/benchmarkExample.py --events IntegBatchCPU IntegBatchGPU IntegGPUOnly --num 52 DMComplex --refine 0.0625 0.00625 0.000625 0.0000625 --blockExp 4 --order 1 CPU='dm_view show_residual=0 compute_function batch' GPU='dm_view show_residual=0 compute_function batch gpu gpu_batches=8'
316