10 lines
163 B
Python
10 lines
163 B
Python
import torch
|
|
|
|
|
|
def is_sm10x():
|
|
return torch.cuda.get_device_capability() >= (10, 0)
|
|
|
|
|
|
def is_hopper():
|
|
return torch.cuda.get_device_capability() == (9, 0)
|