def do_mp(arg): (file,thresh,out_dir)=arg masterplot.mp_wrapper(file,'lines',thresh,out_dir,'lowflops', header='Measured Low Flops', wide=True) masterplot.mp_wrapper(file,'percentile',thresh,out_dir,'lowflops', header='Measured Low Flops (Percentile)', wide=True)
def do_mp(arg): (file,out_dir)=arg masterplot.mp_wrapper(file,'lines',threshold=False, output_dir=out_dir,prefix='internal_imbalance', mintime=1, wayness=16, header='Within Host Imbalance',wide=True)
def getuser(file, user, output_dir): try: ts = tspl.TSPLBase(file, ['lnet'], ['rx_bytes']) except tspl.TSPLException as e: return if ts.owner == user: masterplot.mp_wrapper(file, output_dir=output_dir, wide=True)
def do_mp(arg): (file,thresh,out_dir)=arg masterplot.mp_wrapper(file,'lines',thresh,out_dir,'imbalance', header='Potentially Imbalanced',wide=True) masterplot.mp_wrapper(file,'percentile',thresh,out_dir,'imbalance', header='Potentially Imbalanced (Percentiles)', wide=True)
def getuser(file,user,output_dir): try: ts=tspl.TSPLBase(file,['lnet'],['rx_bytes']) except tspl.TSPLException as e: return if ts.owner == user: masterplot.mp_wrapper(file,output_dir=output_dir,wide=True)
def do_mp(arg): (file, out_dir) = arg masterplot.mp_wrapper(file, 'lines', threshold=False, output_dir=out_dir, prefix='internal_imbalance', mintime=1, wayness=16, header='Within Host Imbalance', wide=True)
def do_mp(arg): (file, thresh, out_dir) = arg masterplot.mp_wrapper(file, 'lines', thresh, out_dir, 'imbalance', header='Potentially Imbalanced', wide=True) masterplot.mp_wrapper(file, 'percentile', thresh, out_dir, 'imbalance', header='Potentially Imbalanced (Percentiles)', wide=True)
def do_mp(arg): (file, thresh, out_dir) = arg masterplot.mp_wrapper(file, 'lines', thresh, out_dir, 'lowflops', header='Measured Low Flops', wide=True) masterplot.mp_wrapper(file, 'percentile', thresh, out_dir, 'lowflops', header='Measured Low Flops (Percentile)', wide=True)
def main(): parser = argparse.ArgumentParser(description='') parser.add_argument('-p', help='Set number of processes', nargs=1, type=int, default=[1]) parser.add_argument('-o', help='Output directory', nargs=1, type=str, default=['.'], metavar='output_dir') parser.add_argument('filearg', help='File, directory, or quoted' ' glob pattern', nargs='?',default='jobs') n=parser.parse_args() filelist=tspl_utils.getfilelist(n.filearg) # Hash value must be a list k1={'amd64' : ['amd64_sock'], 'intel_snb': ['intel_snb']} k2={'amd64' : ['DRAM'], 'intel_snb': ['LOAD_L1D_ALL']} pool = multiprocessing.Pool(processes=n.p[0]) m = multiprocessing.Manager() res = m.dict() fit_partial=functools.partial(fit_step,k1=k1,k2=k2,genplot=False,res=res) if len(filelist) != 0: pool.map(fit_partial,filelist) pool.close() pool.join() for fn in res.keys(): for (ind,ratio) in res[fn]: if ratio < 1e-3: print fn + ': ' + str(res[fn]) masterplot.mp_wrapper(fn,'lines',False,n.o[0],'step', 1,[x+1 for x in range(16)], header='Step Function Performance',wide=True) break
def do_mp(arg): (file,thresh,out_dir)=arg masterplot.mp_wrapper(file,'lines',thresh,out_dir,'highmembw', header='High Memory Bandwdith')