WarpX
Functions | Variables
run_alltests Namespace Reference

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
 

Function Documentation

◆ process_analysis()

def run_alltests.process_analysis ( )

Variable Documentation

◆ action

run_alltests.action

◆ architecture

run_alltests.architecture

◆ args

run_alltests.args = parser.parse_args()

◆ bin_dir

string run_alltests.bin_dir = cwd + 'Bin/'

◆ bin_name

run_alltests.bin_name = 'perf_tests3d.' + args.compiler + '.' + module_name[args.architecture] + '.TPROF.MTMPI.OMP.QED.ex'

◆ choices

run_alltests.choices

◆ Cname

run_alltests.Cname

◆ compiler_name

dictionary run_alltests.compiler_name = {'intel': 'intel', 'gnu': 'gcc'}

◆ config_command

run_alltests.config_command = ''

◆ count

int run_alltests.count = 0

◆ cwd

string run_alltests.cwd = os.getcwd() + '/'

◆ day

run_alltests.day = time.strftime('%d')

◆ default

run_alltests.default

◆ dest

run_alltests.dest

◆ df_base

run_alltests.df_base = pd.read_hdf(perf_database_file, 'all_data')

◆ df_newline

run_alltests.df_newline = extract_dataframe(res_dir + 'perf_output.txt', n_steps)

◆ dir_record

string run_alltests.dir_record = dir_record_base + '_'.join([year, month, day]) + '_0'

◆ dir_record_base

string run_alltests.dir_record_base = './perf_warpx_record/'

◆ do_rename

bool run_alltests.do_rename = False

◆ f_log

run_alltests.f_log = open(log_dir + log_file, 'a')

◆ help

run_alltests.help

◆ input_file

run_alltests.input_file = open(cwd + run_name, 'r')

◆ input_file_content

run_alltests.input_file_content = input_file.read()

◆ key

run_alltests.key

◆ log_dir

string run_alltests.log_dir = cwd

◆ log_file

string run_alltests.log_file = args.log_file

◆ log_line

string run_alltests.log_line = '## year month day run_name compiler architecture n_node n_mpi ' +\

◆ makefile_text

run_alltests.makefile_text = makefile_handler.read()

◆ mode

run_alltests.mode

◆ module_Cname

dictionary run_alltests.module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache'}

◆ module_name

dictionary run_alltests.module_name = {'cpu': 'haswell', 'knl': 'mic-knl'}

◆ month

run_alltests.month = time.strftime('%m')

◆ n_mpi

run_alltests.n_mpi = current_run[2]

◆ n_node

run_alltests.n_node = current_run[1]

◆ n_omp

run_alltests.n_omp = current_run[3]

◆ n_repeat

int run_alltests.n_repeat = 3

◆ n_steps

run_alltests.n_steps = get_nsteps(cwd + run_name)

◆ n_tests

run_alltests.n_tests = len(test_list)

◆ output_filename

string run_alltests.output_filename = 'perf_output.txt'

◆ parser

run_alltests.parser
Initial value:
1 = argparse.ArgumentParser(
2  description='Run performance tests and write results in files')

◆ perf_database_file

run_alltests.perf_database_file = cwd + 'perf_database_warpx.h5'

◆ res_dir

string run_alltests.res_dir = res_dir_base

◆ res_dir_arch

string run_alltests.res_dir_arch = res_dir_base

◆ res_dir_base

string run_alltests.res_dir_base = os.environ['SCRATCH'] + '/performance_warpx/'

◆ run_name

run_alltests.run_name = current_run[0]

◆ store_test

bool run_alltests.store_test = False

◆ test_list

list run_alltests.test_list = []

◆ timing_list

run_alltests.timing_list = read_run_perf(res_dir + output_filename, n_steps)

◆ updated_df

run_alltests.updated_df = df_base.append(df_newline, ignore_index=True)

◆ year

run_alltests.year = time.strftime('%Y')