Skip to content

Commit 2c4e787

Browse files
committed
format
Signed-off-by: Qidong Su <soodoshll@gmail.com>
1 parent 097a6c3 commit 2c4e787

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/hopper_matmul/matmul_v0.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from tilus.utils import benchmark_func, cdiv
1111

1212

13-
1413
@tilus.autotune(
1514
"block_m, block_n", [(64, 128), (128, 128), (128, 256), (256, 128), (256, 256)]
1615
)

python/tilus/lang/instructions/wgmma.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def wait_group(self, n: Union[Expr, int]) -> None:
3434

3535
def mma(self, a: SharedTensor | RegisterTensor, b: SharedTensor, d: RegisterTensor) -> None:
3636
if any(len(tensor.shape) != 2 for tensor in (a, b, d)):
37-
raise InstructionError("mma requires 2D tensors, got shapes {}".format([tensor.shape for tensor in (a, b, d)]))
37+
raise InstructionError(
38+
"mma requires 2D tensors, got shapes {}".format([tensor.shape for tensor in (a, b, d)])
39+
)
3840
if isinstance(a, SharedTensor):
3941
self._builder.wgmma_mma_ss(a, b, d)
4042
elif isinstance(a, RegisterTensor):

0 commit comments

Comments
 (0)