Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions test/test_matmul_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
# Protects against includes accidentally setting the default dtype
assert torch.get_default_dtype() is torch.float32

input_dtypes = [torch.float32]
if not torch.version.hip:
input_dtypes += [torch.float16, torch.bfloat16]

@contextlib.contextmanager
def blas_library_context(backend):
Expand Down Expand Up @@ -617,8 +620,7 @@ def test_grouped_gemm_compiled(self, op, a_row_major, b_row_major, max_autotune)


@onlyCUDA
@skipIfRocm
@parametrize("input_dtype", [torch.float32, torch.float16, torch.bfloat16])
@parametrize("input_dtype", input_dtypes)
@parametrize("M", [1, 32, 64])
@parametrize("N", [1, 32, 64])
@parametrize("K", [1, 32, 64])
Expand Down Expand Up @@ -672,8 +674,7 @@ def create_inputs(B=None):


@onlyCUDA
@skipIfRocm
@parametrize("input_dtype", [torch.float32, torch.float16, torch.bfloat16])
@parametrize("input_dtype", input_dtypes)
@parametrize("M", [1, 32, 64])
@parametrize("N", [1, 32, 64])
@parametrize("K", [1, 32, 64])
Expand Down