Skip to content

Commit

Permalink
fix bug for subprocess call
Browse files Browse the repository at this point in the history
  • Loading branch information
FindHao committed Nov 26, 2024
1 parent c061bbf commit e42929a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tritonbench/components/ncu/nsys_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read_nsys_report(
assert reports_required, "No nsys reports required"
cmd = f"nsys stats --report {','.join(reports_required)} --force-export=true --format csv --output . --force-overwrite=true {report_path}"
try:
subprocess.check_call(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)
subprocess.check_call(cmd.split(), stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)
except subprocess.CalledProcessError as e:
print(f"Failed to run nsys command: {cmd}\nError: {e}")
raise e
Expand Down

0 comments on commit e42929a

Please sign in to comment.