Split rocprofv2 cmd args prior to subprocess call (#347)

Signed-off-by: coleramos425 <colramos@amd.com>


[ROCm/rocprofiler-compute commit: 19a229a9f2]
这个提交包含在:
coleramos425 编写, David Galiffi 于 2024-08-09 09:46:42 -04:00 提交
1 父节点 7de6a2f997
当前提交 7cc89dbeff
1 个文件已更改
+3 -3
@@ -23,6 +23,7 @@
##############################################################################el
import os
import shlex
from omniperf_profile.profiler_base import OmniProfiler_Base
from utils.utils import (
demarcate,
@@ -42,14 +43,13 @@ class rocprof_v2_profiler(OmniProfiler_Base):
def get_profiler_options(self, fname):
fbase = os.path.splitext(os.path.basename(fname))[0]
app_cmd = self.get_args().remaining
app_cmd = shlex.split(self.get_args().remaining)
args = [
# v2 requires output directory argument
"-d",
self.get_args().path + "/" + "out",
# v2 does not require quotes on cmd
app_cmd,
]
args.extend(app_cmd)
return args
# -----------------------