Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Add new shape and with/without ukernel for benchmark tracking #909

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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("============================")
32 changes: 22 additions & 10 deletions build_tools/ci/cpu_comparison/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def __init__(
run_on_target=["npu1_4col"],
additional_labels=None,
aie_compilation_flags=None,
n_repeats=1,
):
super().__init__(
run_on_target=run_on_target,
Expand All @@ -252,7 +253,7 @@ def __init__(
acc_type=acc_type,
tile_pipeline="pack-peel",
use_ukernel=use_ukernel,
n_repeats=1,
n_repeats=n_repeats,
)

self.name = f"vanilla_matmul_{M}_{N}_{K}_{input_type}_{acc_type}"
Expand Down Expand Up @@ -1093,16 +1094,27 @@ def __init__(self):
)
)

self.register(
VanillaMatmul(
512,
512,
4096,
"bf16",
"f32",
additional_labels=["Performance"],
# Some bf16 Performance tests:
for M, N, K, use_ukernel in [
(512, 512, 4096, False),
newling marked this conversation as resolved.
Show resolved Hide resolved
(512, 512, 4096, True),
(512, 4096, 512, False),
(512, 4096, 512, True),
(4096, 512, 512, False),
(4096, 512, 512, True),
]:
self.register(
VanillaMatmul(
M,
N,
K,
"bf16",
"f32",
additional_labels=["Performance"],
use_ukernel=use_ukernel,
n_repeats=2,
)
)
)

# MultipleDispatches tests:
for name in ["two_matmul_switching", "matmul_f32_8_8_4", "matmul_f32_8_4_8"]:
Expand Down
Loading