Skip to content

Commit cc0cf2d

Browse files
authored
[frontend] Pretty-print ptxas command on failure (#4882)
Super quick quality-of-life improvement: on `ptxas` failure we were just dumping the repro command as a list, and joining it before printing makes it much easier to copy-and-paste for debugging.
1 parent e8d7957 commit cc0cf2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/nvidia/backend/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def make_cubin(src, metadata, opt, capability):
359359

360360
raise RuntimeError(f'{error}\n'
361361
f'`ptxas` stderr:\n{log}\n'
362-
f'Repro command: {ptxas_cmd}\n')
362+
f'Repro command: {" ".join(ptxas_cmd)}\n')
363363

364364
with open(fbin, 'rb') as f:
365365
cubin = f.read()

0 commit comments

Comments
 (0)