def run(benchmark): outdir_b = pjoin(simpoint_profile_dir, benchmark) if not os.path.isdir(outdir_b): os.makedirs(outdir_b) c.avoid_repeated(simpoint_profile, outdir_b, pjoin(c.gem5_build(arch), 'gem5.opt'), benchmark, None, outdir_b)
def run(benchmark): outdir_b = pjoin(outdir, benchmark) if not os.path.isdir(outdir_b): os.makedirs(outdir_b) prerequisite = True some_extra_args = None if prerequisite: print('prerequisite satisified, is going to run gem5 on', benchmark) c.avoid_repeated(example_to_restore_cpt, outdir_b, benchmark, some_extra_args, outdir_b) else: print('prerequisite not satisified, abort on', benchmark)
def cluster_and_choose(benchmark): benchmark_dir = pjoin(simpoints_all, benchmark) prerequisite = os.path.isfile(pjoin(benchmark_dir, 'done')) if prerequisite: print('done file found in {}, is to perform clustering'.format( benchmark_dir)) c.avoid_repeated(cluster, benchmark_dir, None, benchmark) print('clustered, is to choosing according to weights for {}'.format( benchmark_dir)) c.avoid_repeated(choose_weights, benchmark_dir, None, benchmark) else: print('done file found in {}, abort'.format(benchmark_dir))
def run(benchmark): outdir_b = pjoin(outdir, benchmark) if not os.path.isdir(outdir_b): os.makedirs(outdir_b) cpt_flag_file = pjoin(c.gem5_cpt_dir(arch), benchmark, 'ts-take_cpt_for_benchmark') prerequisite = os.path.isfile(cpt_flag_file) some_extra_args = None if prerequisite: print('cpt flag found, is going to run gem5 on', benchmark) c.avoid_repeated(rv_origin, outdir_b, benchmark, some_extra_args, outdir_b) else: print('prerequisite not satisified, abort on', benchmark)
def run(args): cmd, sub_dir = args outdir_b = pjoin(outdir, sub_dir) if not os.path.isdir(outdir_b): os.makedirs(outdir_b) prerequisite = True some_extra_args = None if prerequisite: print( 'prerequisite satisified, is going to run {} on gem5'.format(cmd)) c.avoid_repeated(example_to_run_other_binary, outdir_b, cmd, some_extra_args, outdir_b) else: print('prerequisite not satisified, abort on', cmd)
def run(benchmark_cpt_id): dir_name = '_'.join(benchmark_cpt_id) benchmark, cpt_id = benchmark_cpt_id outdir_b = pjoin(outdir, dir_name) if not os.path.isdir(outdir_b): os.makedirs(outdir_b) cpt_flag_file = pjoin(c.gem5_cpt_dir(arch, 2017), benchmark, 'ts-take_cpt_for_benchmark') prerequisite = os.path.isfile(cpt_flag_file) some_extra_args = None if prerequisite: print('cpt flag found, is going to run gem5 on', dir_name) c.avoid_repeated(run_spec17_from_cpt, outdir_b, pjoin(c.gem5_build(arch), 'gem5.opt'), benchmark, some_extra_args, outdir_b) else: print('prerequisite not satisified, abort on', dir_name)
def run(benchmark): outdir_b = pjoin(outdir, benchmark) if not os.path.isdir(outdir_b): os.makedirs(outdir_b) simpoint_dir_b = pjoin(simpoint_profile_dir, benchmark) simpoint_file = pjoin(simpoint_dir_b, 'simpoints-final') weight_file = pjoin(simpoint_dir_b, 'weights-final') profiled = os.path.isfile(simpoint_file) and os.path.isfile(weight_file) if profiled: print('simpoint weight file found in {},'.format(simpoint_dir_b), 'is going take simpoint cpt') c.avoid_repeated(take_cpt_for_benchmark, outdir_b, None, benchmark, simpoint_file, weight_file, outdir_b) else: print('simpoint weight file not found in {}, abort'.format( simpoint_dir_b))