Peano 4
Loading...
Searching...
No Matches
plots_llvm_paper_likwid.py File Reference

Go to the source code of this file.

Namespaces

namespace  plots_llvm_paper_likwid
 

Variables

str plots_llvm_paper_likwid.folder_input = "/home/cristianbarrahinojosa/Overleaf/paper-llvm2022/experiments/18_sph_simulation/hamilton8/Noh_2D/output_np_400_et_0.01/likwid/"
 
list plots_llvm_paper_likwid.datatype_inputs = ["MEM", "CACHE"]
 
str plots_llvm_paper_likwid.filename_template = "output_" + datatype_input + "_cores_*_*.cvs"
 
str plots_llvm_paper_likwid.filename_template_regex = "output_" + datatype_input + "_cores_(.*)_(.*)"
 
list plots_llvm_paper_likwid.cores_array = [1, 2, 4, 8, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64]
 
dict plots_llvm_paper_likwid.data_template_SUM
 
dict plots_llvm_paper_likwid.data_template_AVG
 
 plots_llvm_paper_likwid.data_SUM_on = pd.DataFrame(data_template_SUM)
 
 plots_llvm_paper_likwid.data_SUM_off = pd.DataFrame(data_template_SUM)
 
 plots_llvm_paper_likwid.data_AVG_on = pd.DataFrame(data_template_AVG)
 
 plots_llvm_paper_likwid.data_AVG_off = pd.DataFrame(data_template_AVG)
 
 plots_llvm_paper_likwid.N_metrics = len(data_SUM_on)
 
 plots_llvm_paper_likwid.offset_row = -N_metrics
 
 plots_llvm_paper_likwid.path = glob.glob(folder_input + filename_template)
 
 plots_llvm_paper_likwid.absfilename = file
 
 plots_llvm_paper_likwid.tempname = os.path.basename(absfilename)
 
 plots_llvm_paper_likwid.filename = os.path.splitext(tempname)[0]
 
 plots_llvm_paper_likwid.pf = re.compile(filename_template_regex)
 
 plots_llvm_paper_likwid.match = pf.search(filename)
 
 plots_llvm_paper_likwid.cores = match.group(1)
 
 plots_llvm_paper_likwid.clang = match.group(2)
 
 plots_llvm_paper_likwid.df_input = pd.read_csv(file, index_col=0, header=0, on_bad_lines="skip")
 
 plots_llvm_paper_likwid.SUM = df_input["Info"].iloc[offset_row:]
 
 plots_llvm_paper_likwid.AVG = df_input["Unnamed: 4"].iloc[offset_row:]
 
 plots_llvm_paper_likwid.SUM_on = np.zeros((N_metrics, len(cores_array)))
 
 plots_llvm_paper_likwid.AVG_on = np.zeros((N_metrics, len(cores_array)))
 
 plots_llvm_paper_likwid.SUM_off = np.zeros((N_metrics, len(cores_array)))
 
 plots_llvm_paper_likwid.AVG_off = np.zeros((N_metrics, len(cores_array)))
 
int plots_llvm_paper_likwid.N_dt = 1e2
 
int plots_llvm_paper_likwid.runtime_on = AVG_on[0] / N_dt
 
int plots_llvm_paper_likwid.runtime_off = AVG_off[0] / N_dt
 
 plots_llvm_paper_likwid.clock_speed_on = AVG_on[2]
 
 plots_llvm_paper_likwid.clock_speed_off = AVG_off[2]
 
 plots_llvm_paper_likwid.data_volume_on = AVG_on[-1]
 
 plots_llvm_paper_likwid.data_volume_off = AVG_off[-1]
 
int plots_llvm_paper_likwid.cache_req_on = AVG_on[1] / 1e12
 
int plots_llvm_paper_likwid.cache_req_off = AVG_off[1] / 1e12
 
 plots_llvm_paper_likwid.cache_miss_ratio_on = AVG_on[5]
 
 plots_llvm_paper_likwid.cache_miss_ratio_off = AVG_off[5]
 
dict plots_llvm_paper_likwid.font = {"size": 12}
 
 plots_llvm_paper_likwid.family
 
 plots_llvm_paper_likwid.usetex
 
 plots_llvm_paper_likwid.fig = plt.figure(figsize=(10, 8))
 
 plots_llvm_paper_likwid.gs = gridspec.GridSpec(2, 2, wspace=0.30, hspace=0.25)
 
 plots_llvm_paper_likwid.ax0 = plt.subplot(gs[0])
 
 plots_llvm_paper_likwid.marker
 
 plots_llvm_paper_likwid.edgecolors
 
 plots_llvm_paper_likwid.facecolors
 
 plots_llvm_paper_likwid.s
 
 plots_llvm_paper_likwid.zorder
 
 plots_llvm_paper_likwid.label
 
 plots_llvm_paper_likwid.c
 
 plots_llvm_paper_likwid.lw
 
 plots_llvm_paper_likwid.base
 
 plots_llvm_paper_likwid.direction
 
 plots_llvm_paper_likwid.top
 
 plots_llvm_paper_likwid.True
 
 plots_llvm_paper_likwid.right
 
 plots_llvm_paper_likwid.leg = plt.legend(loc="upper right", fontsize=10)
 
 plots_llvm_paper_likwid.ax1 = plt.subplot(gs[1])
 
 plots_llvm_paper_likwid.ax2 = plt.subplot(gs[3])
 
 plots_llvm_paper_likwid.bbox_inches