Skip to content

Commit

Permalink
Merge branch 'main' into reorder_linux_ci_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
newling authored Sep 12, 2024
2 parents f33b93b + a87850e commit 2c2606f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions build_tools/ci/cpu_comparison/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ def run(self, config):
# Test(s) of the form batch_matmul(A,B) where A:BxMxK, B:BxKxN
template_name = matmul_template_dir / "batch_matmul_BxMxK_BxKxN.mlir"
for lhs_type, acc_type in zip(["i32", "bf16"], ["i32", "f32"]):
# Batch size = 1
test_name = (
output_dir / f"test_from_template_bmm_1_{lhs_type}_{acc_type}.mlir"
)
Expand All @@ -698,12 +699,19 @@ def run(self, config):
tile_pipeline="pack-peel",
lower_to_aie_pipeline="objectFifo",
)

# TODO (vivian): The below tests are batch matmul with batch size equals 2, and have different
# numerics compared to CPU results. Comment these out until we have a fix.
# test_name = output_dir / f"test_from_template_bmm_2_{lhs_type}_{acc_type}.mlir"
# generate_matmul_test(test_name, template_name, 64, 64, 64, lhs_type, acc_type, b=2)
# aie_vs_llvm_cpu(config, test_name, tile_pipeline="pack-peel", lower_to_aie_pipeline="objectFifo")
# Batch size = 2
test_name = (
output_dir / f"test_from_template_bmm_2_{lhs_type}_{acc_type}.mlir"
)
generate_matmul_test(
test_name, template_name, 64, 64, 64, lhs_type, acc_type, b=2
)
aie_vs_llvm_cpu(
config,
test_name,
tile_pipeline="pack-peel",
lower_to_aie_pipeline="objectFifo",
)


class SmokeSet(TestSet):
Expand Down

0 comments on commit 2c2606f

Please sign in to comment.