Skip to content

Commit 151a92a

Browse files
authored
Allow H100
1 parent d5e0e87 commit 151a92a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

intermediate_source/torch_compile_tutorial.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# - ``tabulate``
3636

3737
######################################################################
38-
# NOTE: a modern NVIDIA GPU (A100 or V100) is recommended for this tutorial in
38+
# NOTE: a modern NVIDIA GPU (H100, A100, or V100) is recommended for this tutorial in
3939
# order to reproduce the speedup numbers shown below and documented elsewhere.
4040

4141
import torch
@@ -44,13 +44,13 @@
4444
gpu_ok = False
4545
if torch.cuda.is_available():
4646
device_cap = torch.cuda.get_device_capability()
47-
if device_cap in [(7, 0), (8,0)]:
47+
if device_cap in ((7, 0), (8, 0), (9, 0)):
4848
gpu_ok = True
4949

5050
if not gpu_ok:
5151
warnings.warn(
52-
"GPU is not NVIDIA V100 or A100. Speedup numbers may be lower than "
53-
"expected."
52+
"GPU is not NVIDIA V100, A100, or H100. Speedup numbers may be lower "
53+
"than expected."
5454
)
5555

5656
######################################################################

0 commit comments

Comments
 (0)