Skip to content

Commit

Permalink
Add tk assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhar committed Oct 8, 2024
1 parent 9f34a73 commit fda11c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gemmbench/gemm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def generate_mlir(config: GemmConfig):
return mlir_template_B
return mlir_template


def generate_tk_mlir(config: GemmConfig):
assert config.operand_element_type == 'f16', "Unsupported problem"
assert config.accumulator_element_type == 'f32', "Unsupported problem"
# Input sizes
M = tkl.sym.M
N = tkl.sym.N
Expand Down

0 comments on commit fda11c9

Please sign in to comment.