From e42929a9bd34421983a770aa4de42d2f87410174 Mon Sep 17 00:00:00 2001 From: Yueming Hao Date: Tue, 26 Nov 2024 14:42:30 -0800 Subject: [PATCH] fix bug for subprocess call --- tritonbench/components/ncu/nsys_analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tritonbench/components/ncu/nsys_analyzer.py b/tritonbench/components/ncu/nsys_analyzer.py index a97eb84e..b9c12cc0 100644 --- a/tritonbench/components/ncu/nsys_analyzer.py +++ b/tritonbench/components/ncu/nsys_analyzer.py @@ -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