Skip to content

Commit

Permalink
Split rocprofv2 cmd args prior to subprocess call (#347)
Browse files Browse the repository at this point in the history
Signed-off-by: coleramos425 <colramos@amd.com>
  • Loading branch information
coleramos425 committed Jul 3, 2024
1 parent a7b0175 commit 12b59ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/omniperf_profile/profiler_rocprof_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
##############################################################################el

import os
import shlex
from omniperf_profile.profiler_base import OmniProfiler_Base
from utils.utils import (
demarcate,
Expand All @@ -42,14 +43,13 @@ def __init__(self, profiling_args, profiler_mode, soc):

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

# -----------------------
Expand Down

0 comments on commit 12b59ae

Please sign in to comment.