[DOCS] Fixing docs (#2175)

This commit is contained in:
Zahi Moudallal
2023-08-24 15:58:59 -07:00
committed by GitHub
parent 387c8d94e1
commit 120ce0a5bf
3 changed files with 13 additions and 12 deletions

View File

@@ -32,6 +32,11 @@ from torch.testing import assert_close
import triton
import triton.language as tl
if torch.cuda.get_device_capability()[0] < 9:
import sys
print("Skipping TMA benchmark for GPU with compute capability < 9")
sys.exit(0)
@triton.autotune(
configs=[
@@ -191,10 +196,5 @@ def benchmark(M, N, K, TRANS_A, TRANS_B, provider):
return perf(ms), perf(max_ms), perf(min_ms)
if torch.cuda.get_device_capability()[0] < 9:
import sys
print("Skipping TMA benchmark for GPU with compute capability < 9")
sys.exit(0)
test_matmul()
benchmark.run(show_plots=False, print_data=True)

View File

@@ -32,6 +32,11 @@ from torch.testing import assert_close
import triton
import triton.language as tl
if torch.cuda.get_device_capability()[0] < 9:
import sys
print("Skipping TMA benchmark for GPU with compute capability < 9")
sys.exit(0)
@triton.autotune(
configs=[
@@ -171,9 +176,4 @@ def benchmark(M, N, K, provider):
return perf(ms), perf(max_ms), perf(min_ms)
if torch.cuda.get_device_capability()[0] < 9:
import sys
print("Skipping TMA benchmark for GPU with compute capability < 9")
sys.exit(0)
benchmark.run(show_plots=False, print_data=True)