Skip to content

Commit

Permalink
Fix leftover get_best_config()
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglx13 committed Nov 7, 2023
1 parent c3c2c29 commit 148633a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/tutorials/03-matrix-multiplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def benchmark(M, N, K, provider):
ms, min_ms, max_ms = triton.testing.do_bench(lambda: matmul(a, b), quantiles=quantiles)
global verbose
if verbose:
print(f'SIZE: {M},{N},{K} Best tuning config: ({matmul_kernel.get_best_config(M, N, K)})')
print(f'SIZE: {M},{N},{K} Best tuning config: ({matmul_kernel.get_best_config()})')
perf = lambda ms: 2 * M * N * K * 1e-12 / (ms * 1e-3)
return perf(ms), perf(max_ms), perf(min_ms)

Expand Down
6 changes: 1 addition & 5 deletions scripts/amd/gemm/matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ def matmul(a, b, activation=""):

return c

def get_best_config(M, N, K):
best_config = matmul_kernel_splitK.get_best_config(M = M, N = N, K = K)
return best_config


def test_correctness(M, N, K, datatype = torch.float16):
torch.manual_seed(0)
Expand Down Expand Up @@ -341,7 +337,7 @@ def main():

if args.compare:
test_correctness(m, n, k, dtype)
best_config = get_best_config(m, n, k)
best_config = matmul_kernel_splitK.get_best_config()

if use_rocprof:
dtype_str = 'fp16' if (not args.specify_type) else args.dtype
Expand Down

0 comments on commit 148633a

Please sign in to comment.