Skip to content

Commit

Permalink
fix graphing script (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamaguchi1024 authored Oct 22, 2024
1 parent 3312116 commit 02378c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analytics_tools/graphing/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


# !!! change for the paper !!
is_paper = False
is_paper = True

if is_paper:
plt.rcParams["figure.figsize"] = 8 * (3.33 / 6), 3.9 * (3.33 / 6)
Expand Down Expand Up @@ -249,7 +249,7 @@ def plot_flops_throughput(kernel, data, peaks, verbose):

sub_kernel_dir = GRAPHS_DIR / kernel / some_point.sub_kernel_name
sub_kernel_dir.mkdir(parents=True, exist_ok=True)
filename = sub_kernel_dir / f"{some_point.sub_kernel_name}_{bench_type.name}_flops_throughput.gdf"
filename = sub_kernel_dir / f"{some_point.sub_kernel_name}_{bench_type.name}_flops_throughput.pdf"
plt.savefig(filename)


Expand Down Expand Up @@ -351,8 +351,8 @@ def aggregate(data):
level_dir = GRAPHS_DIR / "all" / level.__name__
level_dir.mkdir(parents=True, exist_ok=True)
filename = level_dir / f"{bench_type.name}_p{p}_disc_gmean_{lib}_x_ExoBLAS"
png_path = GRAPHS_DIR / "all" / (filename + "png")
pdf_path = GRAPHS_DIR / "all" / (filename + "pdf")
png_path = filename.with_suffix('.png')
pdf_path = filename.with_suffix('.pdf')

plt.savefig(png_path)
plt.savefig(pdf_path)
Expand Down

0 comments on commit 02378c6

Please sign in to comment.