Skip to content

Commit

Permalink
Debugging parse_pcm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed May 22, 2024
1 parent 2979b18 commit 59dc5e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ratemon/scripts/parse_pcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def find_col(key1, key2, cols):
"""
for col in cols:
if key1 in col and key2 in col:
return np.asarray(float(x) for x in col[2:])
return np.asarray([float(x) for x in col[2:]])
raise RuntimeError(f"Key {key1}/{key2} not found!")


Expand All @@ -51,7 +51,7 @@ def main(args):
l3misses = find_col("System", "L3MISS", cols)

msg = (
f"Avg L2 miss rate:{np.mean(l2misses):.4f}"
f"Avg L2 miss rate:{np.mean(l2misses):.4f}\n"
f"Avg L3 miss rate:{np.mean(l3misses):.4f}"
)
print(msg)
Expand Down

0 comments on commit 59dc5e0

Please sign in to comment.