Skip to content

Commit a886d5f

Browse files
karthik-manfacebook-github-bot
authored andcommitted
Fix tritonbench fp8_gemm_rowwise TMA assertion
Summary: Fix tritonbench fp8_gemm_rowwise TMA assertion Reviewed By: htyu Differential Revision: D66101658 fbshipit-source-id: 2f0bf11ab863238c52bc5336816b30bae24d025c
1 parent c2ef66a commit a886d5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tritonbench/operators/fp8_gemm_rowwise/operator.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ def parse_args(args: List[str]) -> argparse.Namespace:
4343
matmul_fp8_row as triton_fp8_row,
4444
)
4545

46-
assert hasattr(
47-
triton.runtime.driver.active.utils, "fill_1d_tma_descriptor"
48-
), "TMA is required by the Triton kernel."
46+
if not torch.version.hip:
47+
assert hasattr(
48+
triton.runtime.driver.active.utils, "fill_1d_tma_descriptor"
49+
), "TMA is required by the Triton kernel."
4950
HAS_TRITON = True
5051
except (ImportError, AssertionError):
5152
HAS_TRITON = False
5253

53-
5454
try:
5555
cutlass_or_ck_fp8_row = torch.ops.fbgemm.f8f8bf16_rowwise
5656
HAS_CUTLASS_OR_CK = True

0 commit comments

Comments
 (0)