if not any([
        os.path.isfile(os.path.join(p, "nvcc"))
        for p in os.getenv("PATH").split(os.pathsep)
]):
    exit(
        "ERROR - Cannot find nvcc PATH... Is CUDA_INSTALL_PATH/bin in the system PATH?"
    )

if job_submit_call == None:
    exit(
        "ERROR - Cannot find sbatch or qsub in PATH... Is one of slurm or torque installed on this machine?"
    )

benchmarks = []
benchmarks = common.gen_apps_from_suite_list(options.benchmark_list.split(","))

cfgs = common.gen_configs_from_list(options.configs_list.split(","))
configurations = []
for config in cfgs:
    configurations.append(ConfigurationSpec(config))

print(
    "Running Simulations with GPGPU-Sim built from \n{0}\n ".format(
        version_string) + "\nUsing configs: " + options.configs_list +
    "\nBenchmark: " + options.benchmark_list)

for config in configurations:
    config.my_print()
    config.run(version_string, benchmarks, options.run_directory, cuda_version,
               options.so_dir)
Exemplo n.º 2
0
specific_jobIds = {}

stats_to_pull = {}
stats_yaml = yaml.load(open(options.stats_yml))
stats = {}
for stat in stats_yaml['collect']:
    stats_to_pull[stat] = re.compile(stat)

if options.configs_list != "" and options.benchmark_list != "":
    for app in common.gen_apps_from_suite_list(
            options.benchmark_list.split(",")):
        a, b, exe_name, args_list = app
        for args in args_list:
            apps_and_args.append(
                os.path.join(exe_name, common.get_argfoldername(args)))
    for config, params, gpuconf_file in common.gen_configs_from_list(
            options.configs_list.split(",")):
        configs.append(config)
else:
    # This code gets the logfiles to pull the stats from if you are using the "-l" or "-N" option
    parsed_logfiles = []
    logfiles_directory = this_directory + "../job_launching/logfiles/"
    if options.logfile == "":
        if not os.path.exists(logfiles_directory):
            exit(
                "No logfile specified and the default logfile directory cannot be found"
            )
        all_logfiles = [os.path.join(logfiles_directory, f) \
                           for f in os.listdir(logfiles_directory) if(re.match(r'sim_log.*',f))]
        if len(all_logfiles) == 0:
            exit("ERROR - No Logfiles in " + logfiles_directory)
        if options.sim_name != "":