Peano 4
Loading...
Searching...
No Matches
plots_llvm_paper_likwid Namespace Reference

Variables

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

Variable Documentation

◆ absfilename

plots_llvm_paper_likwid.absfilename = file

Definition at line 90 of file plots_llvm_paper_likwid.py.

◆ AVG

plots_llvm_paper_likwid.AVG = df_input["Unnamed: 4"].iloc[offset_row:]

Definition at line 109 of file plots_llvm_paper_likwid.py.

◆ AVG_off

plots_llvm_paper_likwid.AVG_off = np.zeros((N_metrics, len(cores_array)))

Definition at line 125 of file plots_llvm_paper_likwid.py.

◆ AVG_on

plots_llvm_paper_likwid.AVG_on = np.zeros((N_metrics, len(cores_array)))

Definition at line 122 of file plots_llvm_paper_likwid.py.

◆ ax0

plots_llvm_paper_likwid.ax0 = plt.subplot(gs[0])

Definition at line 166 of file plots_llvm_paper_likwid.py.

◆ ax1

plots_llvm_paper_likwid.ax1 = plt.subplot(gs[1])

Definition at line 198 of file plots_llvm_paper_likwid.py.

◆ ax2

plots_llvm_paper_likwid.ax2 = plt.subplot(gs[3])

Definition at line 253 of file plots_llvm_paper_likwid.py.

◆ base

plots_llvm_paper_likwid.base

Definition at line 185 of file plots_llvm_paper_likwid.py.

◆ bbox_inches

plots_llvm_paper_likwid.bbox_inches

Definition at line 284 of file plots_llvm_paper_likwid.py.

◆ c

plots_llvm_paper_likwid.c

Definition at line 179 of file plots_llvm_paper_likwid.py.

◆ cache_miss_ratio_off

plots_llvm_paper_likwid.cache_miss_ratio_off = AVG_off[5]

Definition at line 152 of file plots_llvm_paper_likwid.py.

◆ cache_miss_ratio_on

plots_llvm_paper_likwid.cache_miss_ratio_on = AVG_on[5]

Definition at line 151 of file plots_llvm_paper_likwid.py.

◆ cache_req_off

plots_llvm_paper_likwid.cache_req_off = AVG_off[1] / 1e12

Definition at line 149 of file plots_llvm_paper_likwid.py.

◆ cache_req_on

plots_llvm_paper_likwid.cache_req_on = AVG_on[1] / 1e12

Definition at line 148 of file plots_llvm_paper_likwid.py.

◆ clang

plots_llvm_paper_likwid.clang = match.group(2)

Definition at line 99 of file plots_llvm_paper_likwid.py.

◆ clock_speed_off

plots_llvm_paper_likwid.clock_speed_off = AVG_off[2]

Definition at line 142 of file plots_llvm_paper_likwid.py.

◆ clock_speed_on

plots_llvm_paper_likwid.clock_speed_on = AVG_on[2]

Definition at line 141 of file plots_llvm_paper_likwid.py.

◆ cores

plots_llvm_paper_likwid.cores = match.group(1)

Definition at line 98 of file plots_llvm_paper_likwid.py.

◆ cores_array

plots_llvm_paper_likwid.cores_array = [1, 2, 4, 8, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64]

Definition at line 27 of file plots_llvm_paper_likwid.py.

◆ data_AVG_off

plots_llvm_paper_likwid.data_AVG_off = pd.DataFrame(data_template_AVG)

Definition at line 77 of file plots_llvm_paper_likwid.py.

◆ data_AVG_on

plots_llvm_paper_likwid.data_AVG_on = pd.DataFrame(data_template_AVG)

Definition at line 76 of file plots_llvm_paper_likwid.py.

◆ data_SUM_off

plots_llvm_paper_likwid.data_SUM_off = pd.DataFrame(data_template_SUM)

Definition at line 75 of file plots_llvm_paper_likwid.py.

◆ data_SUM_on

plots_llvm_paper_likwid.data_SUM_on = pd.DataFrame(data_template_SUM)

Definition at line 74 of file plots_llvm_paper_likwid.py.

◆ data_template_AVG

dict plots_llvm_paper_likwid.data_template_AVG
Initial value:
1= {
2 "Metric AVG": [
3 "Runtime (RDTSC) [s] STAT",
4 "Runtime unhalted [s] STAT",
5 "Clock [MHz] STAT",
6 "CPI STAT",
7 "Memory bandwidth [MBytes/s] STAT",
8 "Memory data volume [GBytes] STAT",
9 ],
10 }

Definition at line 41 of file plots_llvm_paper_likwid.py.

◆ data_template_SUM

dict plots_llvm_paper_likwid.data_template_SUM
Initial value:
1= {
2 "Metric SUM": [
3 "Runtime (RDTSC) [s] STAT",
4 "Runtime unhalted [s] STAT",
5 "Clock [MHz] STAT",
6 "CPI STAT",
7 "Memory bandwidth [MBytes/s] STAT",
8 "Memory data volume [GBytes] STAT",
9 ],
10 }

Definition at line 31 of file plots_llvm_paper_likwid.py.

◆ data_volume_off

plots_llvm_paper_likwid.data_volume_off = AVG_off[-1]

Definition at line 145 of file plots_llvm_paper_likwid.py.

◆ data_volume_on

plots_llvm_paper_likwid.data_volume_on = AVG_on[-1]

Definition at line 144 of file plots_llvm_paper_likwid.py.

◆ datatype_inputs

list plots_llvm_paper_likwid.datatype_inputs = ["MEM", "CACHE"]

Definition at line 21 of file plots_llvm_paper_likwid.py.

◆ df_input

plots_llvm_paper_likwid.df_input = pd.read_csv(file, index_col=0, header=0, on_bad_lines="skip")

Definition at line 102 of file plots_llvm_paper_likwid.py.

◆ direction

plots_llvm_paper_likwid.direction

Definition at line 188 of file plots_llvm_paper_likwid.py.

◆ edgecolors

plots_llvm_paper_likwid.edgecolors

Definition at line 173 of file plots_llvm_paper_likwid.py.

◆ facecolors

plots_llvm_paper_likwid.facecolors

Definition at line 174 of file plots_llvm_paper_likwid.py.

◆ family

plots_llvm_paper_likwid.family

Definition at line 160 of file plots_llvm_paper_likwid.py.

◆ fig

plots_llvm_paper_likwid.fig = plt.figure(figsize=(10, 8))

Definition at line 163 of file plots_llvm_paper_likwid.py.

◆ filename

plots_llvm_paper_likwid.filename = os.path.splitext(tempname)[0]

Definition at line 92 of file plots_llvm_paper_likwid.py.

◆ filename_template

str plots_llvm_paper_likwid.filename_template = "output_" + datatype_input + "_cores_*_*.cvs"

Definition at line 24 of file plots_llvm_paper_likwid.py.

◆ filename_template_regex

str plots_llvm_paper_likwid.filename_template_regex = "output_" + datatype_input + "_cores_(.*)_(.*)"

Definition at line 25 of file plots_llvm_paper_likwid.py.

◆ folder_input

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/"

Definition at line 19 of file plots_llvm_paper_likwid.py.

◆ font

dict plots_llvm_paper_likwid.font = {"size": 12}

Definition at line 158 of file plots_llvm_paper_likwid.py.

◆ gs

plots_llvm_paper_likwid.gs = gridspec.GridSpec(2, 2, wspace=0.30, hspace=0.25)

Definition at line 164 of file plots_llvm_paper_likwid.py.

◆ label

plots_llvm_paper_likwid.label

Definition at line 177 of file plots_llvm_paper_likwid.py.

◆ leg

plots_llvm_paper_likwid.leg = plt.legend(loc="upper right", fontsize=10)

Definition at line 195 of file plots_llvm_paper_likwid.py.

◆ lw

plots_llvm_paper_likwid.lw

Definition at line 179 of file plots_llvm_paper_likwid.py.

◆ marker

plots_llvm_paper_likwid.marker

Definition at line 172 of file plots_llvm_paper_likwid.py.

◆ match

plots_llvm_paper_likwid.match = pf.search(filename)

Definition at line 97 of file plots_llvm_paper_likwid.py.

◆ N_dt

int plots_llvm_paper_likwid.N_dt = 1e2

Definition at line 137 of file plots_llvm_paper_likwid.py.

◆ N_metrics

plots_llvm_paper_likwid.N_metrics = len(data_SUM_on)

Definition at line 80 of file plots_llvm_paper_likwid.py.

◆ offset_row

plots_llvm_paper_likwid.offset_row = -N_metrics

Definition at line 81 of file plots_llvm_paper_likwid.py.

◆ path

plots_llvm_paper_likwid.path = glob.glob(folder_input + filename_template)

Definition at line 84 of file plots_llvm_paper_likwid.py.

◆ pf

plots_llvm_paper_likwid.pf = re.compile(filename_template_regex)

Definition at line 95 of file plots_llvm_paper_likwid.py.

◆ right

plots_llvm_paper_likwid.right

Definition at line 188 of file plots_llvm_paper_likwid.py.

◆ runtime_off

plots_llvm_paper_likwid.runtime_off = AVG_off[0] / N_dt

Definition at line 139 of file plots_llvm_paper_likwid.py.

◆ runtime_on

plots_llvm_paper_likwid.runtime_on = AVG_on[0] / N_dt

Definition at line 138 of file plots_llvm_paper_likwid.py.

◆ s

plots_llvm_paper_likwid.s

Definition at line 175 of file plots_llvm_paper_likwid.py.

◆ SUM

plots_llvm_paper_likwid.SUM = df_input["Info"].iloc[offset_row:]

Definition at line 105 of file plots_llvm_paper_likwid.py.

◆ SUM_off

plots_llvm_paper_likwid.SUM_off = np.zeros((N_metrics, len(cores_array)))

Definition at line 124 of file plots_llvm_paper_likwid.py.

◆ SUM_on

plots_llvm_paper_likwid.SUM_on = np.zeros((N_metrics, len(cores_array)))

Definition at line 121 of file plots_llvm_paper_likwid.py.

◆ tempname

plots_llvm_paper_likwid.tempname = os.path.basename(absfilename)

Definition at line 91 of file plots_llvm_paper_likwid.py.

◆ top

plots_llvm_paper_likwid.top

Definition at line 188 of file plots_llvm_paper_likwid.py.

◆ True

plots_llvm_paper_likwid.True

Definition at line 188 of file plots_llvm_paper_likwid.py.

◆ usetex

plots_llvm_paper_likwid.usetex

Definition at line 161 of file plots_llvm_paper_likwid.py.

◆ zorder

plots_llvm_paper_likwid.zorder

Definition at line 176 of file plots_llvm_paper_likwid.py.