Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Zhewen committed Nov 25, 2024
2 parents 33aa97b + 1530169 commit 3d850db
Show file tree
Hide file tree
Showing 52 changed files with 2,777 additions and 879 deletions.
13 changes: 10 additions & 3 deletions build_tools/ci/cpu_comparison/performance_summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@
import sys

if len(sys.argv) != 2:
print("Usage: python3 performance_summarizer.py <path_to_log_file>")
print(
"Usage: python3 performance_summarizer.py <path_to_log_file>. This will strip out the performance numbers from the log file and print a summary."
)
sys.exit(1)
path = sys.argv[1]
with open(path, "r") as f:
lines = f.readlines()
print("============================")
first_print = True
for line in lines:
if "Run #1" in line:
print(line.split()[-1])
if not first_print:
print("\n" + line.split()[-1])
else:
print(line.split()[-1])
first_print = False
if "IREE_AMDAIE" in line:
print(line)
print(line.strip())
print("============================")
Loading

0 comments on commit 3d850db

Please sign in to comment.