Skip to content

Commit

Permalink
Updating createGflopsGraphs.py to show sparsity
Browse files Browse the repository at this point in the history
  • Loading branch information
ABenC377 committed Oct 21, 2024
1 parent 4581637 commit 477b7a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions createGflopsGraphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@

# Get number of iterations performed and kernel name
line1 = lines[0].split(',')
iters = int(line1[6])
sparsity = float(line1[6])
iters = int(line1[7])
kernel = line1[1]

# Get gflops (y-axis) and MNK values (x-axis) for CPU and all GPU types
Expand Down Expand Up @@ -143,7 +144,9 @@
elif kernel == "dgemm":
fp = "FP64"
y_name = "{} GFLOP/s".format(fp)
title = "{}GEMM Performance for {} Problems - {} iterations per problem size".format(kernel[0].upper(), inputTypeStr, iters)
title = ("{}GEMM Performance for {} Problems (sparsity = {})- {} "
"iterations per problemize").format(kernel[0].upper(),
inputTypeStr, sparsity, iters)

# Make Graph
fig1 = plt.figure(figsize=(28,16))
Expand Down

0 comments on commit 477b7a0

Please sign in to comment.