mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[TUTORIALS] Skip running TMA tutorials on non-hopper architectures (#2153)
This commit is contained in:
@@ -191,5 +191,10 @@ 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)
|
||||
|
||||
@@ -171,4 +171,9 @@ 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