|
ARTEMIS
|
Functions | |
| def | process_analysis () |
Variables | |
| list | test_list = [] |
| int | n_repeat = 3 |
| n_tests = len(test_list) | |
| parser | |
| dest | |
| action | |
| default | |
| choices | |
| help | |
| args = parser.parse_args() | |
| log_file = args.log_file | |
| dictionary | compiler_name = {'intel': 'intel', 'gnu': 'gcc'} |
| dictionary | module_name = {'cpu': 'haswell', 'knl': 'mic-knl'} |
| dictionary | module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache'} |
| string | cwd = os.getcwd() + '/' |
| string | res_dir_base = os.environ['SCRATCH'] + '/performance_warpx/' |
| string | bin_dir = cwd + 'Bin/' |
| string | bin_name = 'perf_tests3d.' + args.compiler + '.' + module_name[args.architecture] + '.TPROF.MTMPI.OMP.QED.ex' |
| string | log_dir = cwd |
| string | perf_database_file = cwd + 'perf_database_warpx.h5' |
| bool | do_rename = False |
| bool | store_test = False |
| day = time.strftime('%d') | |
| month = time.strftime('%m') | |
| year = time.strftime('%Y') | |
| string | config_command = '' |
| makefile_text = makefile_handler.read() | |
| run_name = current_run[0] | |
| n_node = current_run[1] | |
| n_mpi = current_run[2] | |
| n_omp = current_run[3] | |
| n_steps = get_nsteps(cwd + run_name) | |
| string | res_dir = res_dir_base |
| architecture | |
| Cname | |
| string | log_line = '## year month day run_name compiler architecture n_node n_mpi ' +\ |
| f_log = open(log_dir + log_file, 'a') | |
| string | output_filename = 'perf_output.txt' |
| timing_list = read_run_perf(res_dir + output_filename, n_steps) | |
| df_newline = extract_dataframe(res_dir + 'perf_output.txt', n_steps) | |
| input_file = open(cwd + run_name, 'r') | |
| input_file_content = input_file.read() | |
| df_base = pd.read_hdf(perf_database_file, 'all_data') | |
| updated_df = df_base.append(df_newline, ignore_index=True) | |
| key | |
| mode | |
| string | dir_record_base = './perf_warpx_record/' |
| int | count = 0 |
| string | dir_record = dir_record_base + '_'.join([year, month, day]) + '_0' |
| string | res_dir_arch = res_dir_base |
| def run_alltests.process_analysis | ( | ) |
| run_alltests.action |
| run_alltests.architecture |
| run_alltests.args = parser.parse_args() |
| string run_alltests.bin_dir = cwd + 'Bin/' |
| run_alltests.bin_name = 'perf_tests3d.' + args.compiler + '.' + module_name[args.architecture] + '.TPROF.MTMPI.OMP.QED.ex' |
| run_alltests.choices |
| run_alltests.Cname |
| dictionary run_alltests.compiler_name = {'intel': 'intel', 'gnu': 'gcc'} |
| run_alltests.config_command = '' |
| int run_alltests.count = 0 |
| string run_alltests.cwd = os.getcwd() + '/' |
| run_alltests.day = time.strftime('%d') |
| run_alltests.default |
| run_alltests.dest |
| run_alltests.df_base = pd.read_hdf(perf_database_file, 'all_data') |
| string run_alltests.dir_record = dir_record_base + '_'.join([year, month, day]) + '_0' |
| string run_alltests.dir_record_base = './perf_warpx_record/' |
| bool run_alltests.do_rename = False |
| run_alltests.help |
| run_alltests.input_file_content = input_file.read() |
| run_alltests.key |
| string run_alltests.log_dir = cwd |
| string run_alltests.log_file = args.log_file |
| run_alltests.makefile_text = makefile_handler.read() |
| run_alltests.mode |
| dictionary run_alltests.module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache'} |
| dictionary run_alltests.module_name = {'cpu': 'haswell', 'knl': 'mic-knl'} |
| run_alltests.month = time.strftime('%m') |
| run_alltests.n_mpi = current_run[2] |
| run_alltests.n_node = current_run[1] |
| run_alltests.n_omp = current_run[3] |
| int run_alltests.n_repeat = 3 |
| run_alltests.n_tests = len(test_list) |
| string run_alltests.output_filename = 'perf_output.txt' |
| run_alltests.parser |
| run_alltests.perf_database_file = cwd + 'perf_database_warpx.h5' |
| string run_alltests.res_dir = res_dir_base |
| string run_alltests.res_dir_arch = res_dir_base |
| string run_alltests.res_dir_base = os.environ['SCRATCH'] + '/performance_warpx/' |
| run_alltests.run_name = current_run[0] |
| bool run_alltests.store_test = False |
| list run_alltests.test_list = [] |
| run_alltests.timing_list = read_run_perf(res_dir + output_filename, n_steps) |
| run_alltests.updated_df = df_base.append(df_newline, ignore_index=True) |
| run_alltests.year = time.strftime('%Y') |