Skip to content

Commit

Permalink
[GPU] Fix e2e matmul generator to extract the input element type.
Browse files Browse the repository at this point in the history
It is a follow-up for #18134 (comment)

Signed-off-by: hanhanW <[email protected]>
  • Loading branch information
hanhanW committed Aug 7, 2024
1 parent 7db4aa1 commit 98e1990
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/e2e/matmul/generate_e2e_matmul_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ def get_rocm_test_compilation_infos(
for schedule in schedules:
# Skip schedules with an intrinsic which element type does not
# match the requested one.
# Extracts the input type from strings containing either 'MFMA' or 'WMMA'
# followed by an underscore.
extract_input_type = lambda s: re.search(r"(?:MFMA|WMMA)_([^_]+)_", s).group(1)
if lhs_rhs_type.value.upper() != extract_input_type(schedule.intrinsic):
# Extracts the input type from strings. The naming convention is
# [output_type]_MxNxK_[input_type].
input_type = schedule.intrinsic.split('_')[-1]
if lhs_rhs_type.value.upper() != input_type:
continue

if schedule.intrinsic == "MFMA_F32_16x16x4_F32":
Expand Down

0 comments on commit 98e1990

Please sign in to comment.