Skip to content

Commit

Permalink
Add batch size 2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang93 committed Sep 5, 2024
1 parent 8795d9d commit 232bc19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build_tools/ci/cpu_comparison/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,15 @@ def run(self, config):
)

# Test(s) of the form batch_matmul(A,B) where A:BxMxK, B:BxKxN
test_name = output_dir / "test_from_template_bmm.mlir"
template_name = matmul_template_dir / "batch_matmul_BxMxK_BxKxN.mlir"
for (lhs_type, acc_type) in zip(["i32", "bf16"], ["i32", "f32"]):
test_name = output_dir / f"test_from_template_bmm_1_{lhs_type}_{acc_type}.mlir"
generate_matmul_test(test_name, template_name, 128, 128, 256, lhs_type, acc_type, b=1)
aie_vs_llvm_cpu(config, test_name, tile_pipeline="pack-peel", lower_to_aie_pipeline="objectFifo")

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):
def __init__(self):
Expand Down

0 comments on commit 232bc19

Please sign in to comment.