|
ARTEMIS
|
Variables | |
| string | machine = 'summit' |
| parser = argparse.ArgumentParser( description='Run performance tests and write results in files' ) | |
| dest | |
| action | |
| default | |
| help | |
| type | |
| choices | |
| args = parser.parse_args() | |
| n_node_list_string = args.n_node_list.split(',') | |
| list | n_node_list = [int(i) for i in n_node_list_string] |
| start_date = args.start_date | |
| string | run_name = 'custom_perftest' |
| string | perf_database_file = 'my_tests_database.h5' |
| bool | rename_archive = False |
| bool | store_full_input = False |
| bool | update_perf_log_repo = False |
| bool | push_on_perf_log_repo = False |
| recompile = args.recompile | |
| bool | pull_3_repos = False |
| compiler = args.compiler | |
| architecture = args.architecture | |
| source_dir_base = args.path_source | |
| res_dir_base = args.path_results | |
| bool | browse_output_files = False |
| bool | browse_output_file = True |
| int | n_repeat = 2 |
| test_list = get_test_list(n_repeat) | |
| string | warpx_dir = source_dir_base + '/warpx/' |
| string | picsar_dir = source_dir_base + '/picsar/' |
| string | amrex_dir = source_dir_base + '/amrex/' |
| string | perf_logs_repo = source_dir_base + 'perf_logs/' |
| dictionary | compiler_name = {'intel': 'intel', 'gnu': 'gcc', 'pgi':'pgi'} |
| dictionary | module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache', 'gpu':''} |
| dictionary | csv_file = {'cori':'cori_knl.csv', 'summit':'summit.csv'} |
| string | cwd = warpx_dir + 'Tools/PerformanceTests/' |
| string | path_hdf5 = cwd |
| string | bin_dir = cwd + 'Bin/' |
| bin_name = executable_name(compiler, architecture) | |
| string | log_dir = cwd |
| day = time.strftime('%d') | |
| month = time.strftime('%m') | |
| year = time.strftime('%Y') | |
| config_command = get_config_command(compiler, architecture) | |
| git_repo = git.cmd.Git( picsar_dir ) | |
| string | make_realclean_command = " make realclean WARPX_HOME=../.. " \ |
| string | make_command = "make -j 16 WARPX_HOME=../.. " \ |
| repo_path | |
| filename | |
| name | |
| res_dir = res_dir_base | |
| list | runtime_param_list = [] |
| test_list_n_node = copy.deepcopy(test_list) | |
| job_time_min = time_min(len(test_list)) | |
| batch_string = get_batch_string(test_list_n_node, job_time_min, module_Cname[architecture], n_node) | |
| string | runtime_param_string = ' amr.n_cell=' + ' '.join(str(i) for i in current_run.n_cell) |
| run_string = get_run_string(current_run, architecture, n_node, count, bin_name, runtime_param_string) | |
| submit_job_command = get_submit_job_command() | |
| string | output_filename = 'out_' + '_'.join([current_run.input_file, str(n_node), str(current_run.n_mpi_per_node), str(current_run.n_omp), str(count)]) + '.txt' |
| df_newline = extract_dataframe(res_dir + output_filename, current_run.n_step) | |
| df_base = pd.read_hdf(path_hdf5 + perf_database_file, 'all_data') | |
| updated_df = df_base.append(df_newline, ignore_index=True) | |
| key | |
| mode | |
| format | |
| index = git_repo.index | |
| int | loc_counter = 0 |
| res_dir_arch = res_dir_base | |
| run_automated.action |
| run_automated.amrex_dir = source_dir_base + '/amrex/' |
| string run_automated.architecture = args.architecture |
| run_automated.args = parser.parse_args() |
| run_automated.batch_string = get_batch_string(test_list_n_node, job_time_min, module_Cname[architecture], n_node) |
| string run_automated.bin_dir = cwd + 'Bin/' |
| run_automated.bin_name = executable_name(compiler, architecture) |
| bool run_automated.browse_output_file = True |
| bool run_automated.browse_output_files = False |
| run_automated.choices |
| string run_automated.compiler = args.compiler |
| dictionary run_automated.compiler_name = {'intel': 'intel', 'gnu': 'gcc', 'pgi':'pgi'} |
| run_automated.config_command = get_config_command(compiler, architecture) |
| dictionary run_automated.csv_file = {'cori':'cori_knl.csv', 'summit':'summit.csv'} |
| string run_automated.cwd = warpx_dir + 'Tools/PerformanceTests/' |
| run_automated.day = time.strftime('%d') |
| run_automated.default |
| run_automated.dest |
| run_automated.df_base = pd.read_hdf(path_hdf5 + perf_database_file, 'all_data') |
| run_automated.df_newline = extract_dataframe(res_dir + output_filename, current_run.n_step) |
| run_automated.filename |
| run_automated.format |
| run_automated.git_repo = git.cmd.Git( picsar_dir ) |
| run_automated.help |
| run_automated.index = git_repo.index |
| run_automated.job_time_min = time_min(len(test_list)) |
| run_automated.key |
| int run_automated.loc_counter = 0 |
| string run_automated.log_dir = cwd |
| string run_automated.machine = 'summit' |
| string run_automated.make_command = "make -j 16 WARPX_HOME=../.. " \ |
| string run_automated.make_realclean_command = " make realclean WARPX_HOME=../.. " \ |
| run_automated.mode |
| dictionary run_automated.module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache', 'gpu':''} |
| run_automated.month = time.strftime('%m') |
| list run_automated.n_node_list = [int(i) for i in n_node_list_string] |
| run_automated.n_node_list_string = args.n_node_list.split(',') |
| int run_automated.n_repeat = 2 |
| run_automated.name |
| string run_automated.output_filename = 'out_' + '_'.join([current_run.input_file, str(n_node), str(current_run.n_mpi_per_node), str(current_run.n_omp), str(count)]) + '.txt' |
| run_automated.parser = argparse.ArgumentParser( description='Run performance tests and write results in files' ) |
| string run_automated.path_hdf5 = cwd |
| string run_automated.perf_database_file = 'my_tests_database.h5' |
| string run_automated.perf_logs_repo = source_dir_base + 'perf_logs/' |
| run_automated.picsar_dir = source_dir_base + '/picsar/' |
| bool run_automated.pull_3_repos = False |
| bool run_automated.push_on_perf_log_repo = False |
| bool run_automated.recompile = args.recompile |
| bool run_automated.rename_archive = False |
| run_automated.repo_path |
| run_automated.res_dir = res_dir_base |
| run_automated.res_dir_arch = res_dir_base |
| string run_automated.res_dir_base = args.path_results |
| string run_automated.run_name = 'custom_perftest' |
| run_automated.run_string = get_run_string(current_run, architecture, n_node, count, bin_name, runtime_param_string) |
| list run_automated.runtime_param_list = [] |
| string run_automated.runtime_param_string = ' amr.n_cell=' + ' '.join(str(i) for i in current_run.n_cell) |
| run_automated.source_dir_base = args.path_source |
| run_automated.start_date = args.start_date |
| bool run_automated.store_full_input = False |
| run_automated.submit_job_command = get_submit_job_command() |
| run_automated.test_list = get_test_list(n_repeat) |
| run_automated.test_list_n_node = copy.deepcopy(test_list) |
| run_automated.type |
| bool run_automated.update_perf_log_repo = False |
| run_automated.updated_df = df_base.append(df_newline, ignore_index=True) |
| run_automated.warpx_dir = source_dir_base + '/warpx/' |
| run_automated.year = time.strftime('%Y') |