Skip to content

Commit

Permalink
Add e2e test for larger Martmul + truncf
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek-Varma committed Oct 28, 2024
1 parent dc45a78 commit bdd6b09
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build_tools/ci/cpu_comparison/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,29 @@ def run(self, config):
output_type=get_output_type(test_name),
)

# Large shape Matmul + Truncf
generate_matmul_test(test_name, template_name, 128, 128, 256, "bf16", "f32")
identity_mat = np.eye(128, dtype=np.float32)
ones = np.ones(128 * 128, dtype=np.float32).reshape([128, 128])
lhs = ones * 101
rhs = identity_mat * 3
input_args = generate_inputs(test_name, output_dir, 1, {1: lhs, 2: rhs})
aie_vs_baseline(
config,
test_name,
input_args,
ones * 302, # exected output
use_ukernel=False,
tile_pipeline="pack-peel",
lower_to_aie_pipeline="objectFifo",
function_name=None,
seed=1,
rtol=0,
atol=0,
n_repeats=1,
output_type=get_output_type(test_name),
)


class SmokeSet(TestSet):
def __init__(self):
Expand Down

0 comments on commit bdd6b09

Please sign in to comment.