There was an error while loading. Please reload this page.
1 parent 81e1bc9 commit 33c100cCopy full SHA for 33c100c
1 file changed
setup.py
@@ -47,7 +47,9 @@ def get_sm_targets() -> list[str]:
47
for i in range(torch.cuda.device_count()):
48
capability = torch.cuda.get_device_capability(i)
49
sm = f"{capability[0]}{capability[1]}"
50
- if sm in ["120", "121"] and support_sm120:
+ if sm in ["120"] and support_sm120:
51
+ sm = sm + "a"
52
+ if sm in ["121"] and support_sm121:
53
sm = sm + "a"
54
assert sm in ["75", "80", "86", "89", "120a", "121a"], f"Unsupported SM {sm}"
55
if sm not in ret:
0 commit comments