Skip to content

Commit 781fd34

Browse files
committed
Fix compute capability string handling for blackwell
1 parent 00d049e commit 781fd34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

op_builder/builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ def compute_capability_args(self, cross_compile_archs=None):
303303

304304
args = []
305305
for cc in ccs:
306-
num = cc[0] + cc[2]
306+
parts = cc.split(".")
307+
num = parts[0] + parts[-1]
307308
args.append(f'-gencode=arch=compute_{num},code=sm_{num}')
308309
if cc.endswith('+PTX'):
309310
args.append(f'-gencode=arch=compute_{num},code=compute_{num}')

0 commit comments

Comments
 (0)