mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[DOCS] Fixing docs (#2175)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user