Skip to content

Commit 384a43d

Browse files
xuzhao9facebook-github-bot
authored andcommitted
Fix the broken gemm test
Summary: As the title goes. Reviewed By: bertmaher Differential Revision: D64480822 fbshipit-source-id: ec1d17be0619fb35d4d8f774eab2858e75afe2e3
1 parent d933ced commit 384a43d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

torchbenchmark/operators/gemm/operator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ def triton_tutorial_matmul(self, a, b, bias) -> Callable:
149149

150150
@register_benchmark()
151151
def matmul_partition_k(self, a, b, bias) -> Callable:
152+
bc = b.contiguous()
152153
if not bias == None:
153-
return lambda: matmul_partition_k(a, b) + bias
154+
return lambda: matmul_partition_k(a, bc) + bias
154155
else:
155-
return lambda: matmul_partition_k(a, b)
156+
return lambda: matmul_partition_k(a, bc)
156157

157158
@register_benchmark()
158159
def triton_persistent_matmul(self, a, b, bias) -> Callable:

0 commit comments

Comments
 (0)