WarpX
|
Functions | |
def | process_analysis () |
Variables | |
parser | |
dest | |
action | |
default | |
choices | |
help | |
type | |
str | |
args = parser.parse_args() | |
log_file = args.log_file | |
do_commit = args.commit | |
run_name = args.input_file | |
list | test_list = [] |
int | n_repeat = 2 |
filename1 = args.input_file | |
n_tests = len(test_list) | |
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 |
day = time.strftime('%d') | |
month = time.strftime('%m') | |
year = time.strftime('%Y') | |
n_node = int(args.n_node) | |
string | perf_database_file = cwd + 'perf_database_warpx.h5' |
string | config_command = '' |
makefile_text = makefile_handler.read() | |
string | res_dir = res_dir_base |
architecture | |
Cname | |
string | log_line = '## year month day input_file compiler architecture n_node n_mpi ' +\ |
f_log = open(log_dir + log_file, 'a') | |
input_file = current_run[0] | |
n_mpi = current_run[2] | |
n_omp = current_run[3] | |
n_steps = get_nsteps(cwd + input_file) | |
string | output_filename = 'out_' + '_'.join([input_file, str(n_node), str(n_mpi), str(n_omp), str(count)]) + '.txt' |
timing_list = read_run_perf(res_dir + output_filename, n_steps) | |
df_newline = extract_dataframe(res_dir + output_filename, n_steps) | |
input_file_open = open(cwd + input_file, 'r') | |
input_file_content = input_file_open.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 |
string | filename0 = 'my_performance_log' |
string | filename = filename0 + '.txt' |
int | fontsize = 14 |
int | nsteps = 100. |
int | nrepeat = 4 |
list | legends |
date = np.loadtxt( filename, usecols = np.arange(0, 3 )) | |
data = np.loadtxt( filename, usecols = np.arange(6, 6+len(legends)) ) | |
namelist_tmp = zip(*[line.split() for line in f])[3] | |
namelist = list(namelist_tmp[1:]) | |
list | selector_list |
list | selector_string = selector_list[0] |
list | selector = [idx for idx in range(len(namelist)) if selector_string in namelist[idx]] |
int | lin_date = date[:,0]+date[:,1]/12.+date[:,2]/366. |
unique_lin_date = np.unique(lin_date) | |
my_xticks = unique_lin_date | |
cycle = plt.rcParams['axes.prop_cycle'].by_key()['color'] | |
num | |
figsize | |
int | icolors = i-3 |
ms | |
mew | |
label | |
loc | |
bbox_to_anchor | |
bbox_inches | |
def run_alltests_1node.process_analysis | ( | ) |
run_alltests_1node.action |
run_alltests_1node.architecture |
run_alltests_1node.args = parser.parse_args() |
run_alltests_1node.bbox_inches |
run_alltests_1node.bbox_to_anchor |
string run_alltests_1node.bin_dir = cwd + 'Bin/' |
string run_alltests_1node.bin_name = 'perf_tests3d.' + args.compiler + '.' + module_name[args.architecture] + '.TPROF.MTMPI.OMP.QED.ex' |
run_alltests_1node.choices |
run_alltests_1node.Cname |
dictionary run_alltests_1node.compiler_name = {'intel': 'intel', 'gnu': 'gcc'} |
string run_alltests_1node.config_command = '' |
int run_alltests_1node.count = 0 |
string run_alltests_1node.cwd = os.getcwd() + '/' |
run_alltests_1node.cycle = plt.rcParams['axes.prop_cycle'].by_key()['color'] |
run_alltests_1node.date = np.loadtxt( filename, usecols = np.arange(0, 3 )) |
run_alltests_1node.day = time.strftime('%d') |
run_alltests_1node.default |
run_alltests_1node.dest |
run_alltests_1node.df_base = pd.read_hdf(perf_database_file, 'all_data') |
run_alltests_1node.df_newline = extract_dataframe(res_dir + output_filename, n_steps) |
string run_alltests_1node.dir_record = dir_record_base + '_'.join([year, month, day]) + '_0' |
string run_alltests_1node.dir_record_base = './perf_warpx_record/' |
bool run_alltests_1node.do_commit = args.commit |
run_alltests_1node.figsize |
string run_alltests_1node.filename = filename0 + '.txt' |
string run_alltests_1node.filename0 = 'my_performance_log' |
run_alltests_1node.filename1 = args.input_file |
int run_alltests_1node.fontsize = 14 |
run_alltests_1node.help |
int run_alltests_1node.icolors = i-3 |
run_alltests_1node.input_file = current_run[0] |
run_alltests_1node.input_file_content = input_file_open.read() |
run_alltests_1node.input_file_open = open(cwd + input_file, 'r') |
run_alltests_1node.key |
run_alltests_1node.label |
list run_alltests_1node.legends |
run_alltests_1node.loc |
string run_alltests_1node.log_dir = cwd |
string run_alltests_1node.log_file = args.log_file |
string run_alltests_1node.log_line = '## year month day input_file compiler architecture n_node n_mpi ' +\ |
run_alltests_1node.makefile_text = makefile_handler.read() |
run_alltests_1node.mew |
run_alltests_1node.mode |
dictionary run_alltests_1node.module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache'} |
dictionary run_alltests_1node.module_name = {'cpu': 'haswell', 'knl': 'mic-knl'} |
run_alltests_1node.month = time.strftime('%m') |
run_alltests_1node.ms |
run_alltests_1node.my_xticks = unique_lin_date |
run_alltests_1node.n_mpi = current_run[2] |
run_alltests_1node.n_node = int(args.n_node) |
run_alltests_1node.n_omp = current_run[3] |
int run_alltests_1node.n_repeat = 2 |
run_alltests_1node.n_steps = get_nsteps(cwd + input_file) |
run_alltests_1node.n_tests = len(test_list) |
run_alltests_1node.namelist = list(namelist_tmp[1:]) |
run_alltests_1node.namelist_tmp = zip(*[line.split() for line in f])[3] |
int run_alltests_1node.nrepeat = 4 |
int run_alltests_1node.nsteps = 100. |
run_alltests_1node.num |
string run_alltests_1node.output_filename = 'out_' + '_'.join([input_file, str(n_node), str(n_mpi), str(n_omp), str(count)]) + '.txt' |
run_alltests_1node.parser |
run_alltests_1node.perf_database_file = cwd + 'perf_database_warpx.h5' |
string run_alltests_1node.res_dir = res_dir_base |
string run_alltests_1node.res_dir_arch = res_dir_base |
string run_alltests_1node.res_dir_base = os.environ['SCRATCH'] + '/performance_warpx/' |
string run_alltests_1node.run_name = args.input_file |
list run_alltests_1node.selector = [idx for idx in range(len(namelist)) if selector_string in namelist[idx]] |
list run_alltests_1node.selector_list |
list run_alltests_1node.selector_string = selector_list[0] |
run_alltests_1node.str |
list run_alltests_1node.test_list = [] |
run_alltests_1node.timing_list = read_run_perf(res_dir + output_filename, n_steps) |
run_alltests_1node.type |
run_alltests_1node.unique_lin_date = np.unique(lin_date) |
run_alltests_1node.updated_df = df_base.append(df_newline, ignore_index=True) |
run_alltests_1node.year = time.strftime('%Y') |