Skip to content

Commit 33c100c

Browse files
committed
update
1 parent 81e1bc9 commit 33c100c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def get_sm_targets() -> list[str]:
4747
for i in range(torch.cuda.device_count()):
4848
capability = torch.cuda.get_device_capability(i)
4949
sm = f"{capability[0]}{capability[1]}"
50-
if sm in ["120", "121"] and support_sm120:
50+
if sm in ["120"] and support_sm120:
51+
sm = sm + "a"
52+
if sm in ["121"] and support_sm121:
5153
sm = sm + "a"
5254
assert sm in ["75", "80", "86", "89", "120a", "121a"], f"Unsupported SM {sm}"
5355
if sm not in ret:

0 commit comments

Comments
 (0)