scripts fixes
Change-Id: I1d51bf4fe2ba62f26bafc251ae702e1064a3e5e3
[ROCm/rocprofiler commit: 6f6208f06d]
This commit is contained in:
@@ -378,7 +378,14 @@ else
|
||||
csv_output=$RUN_DIR/${input_base}.csv
|
||||
fi
|
||||
|
||||
APP_CMD=$*
|
||||
APP_CMD=""
|
||||
for i in `seq 1 $#`; do
|
||||
if [ -n "$APP_CMD" ] ; then
|
||||
APP_CMD=$APP_CMD" "
|
||||
fi
|
||||
eval "arg=\${$i}"
|
||||
APP_CMD=$APP_CMD\"$arg\"
|
||||
done
|
||||
|
||||
echo "RPL: profiling '$APP_CMD'"
|
||||
echo "RPL: input file '$INPUT_FILE'"
|
||||
|
||||
@@ -332,7 +332,8 @@ if (len(sys.argv) < 2): fatal("Usage: " + sys.argv[0] + " <output CSV file> <inp
|
||||
outfile = sys.argv[1]
|
||||
infiles = sys.argv[2:]
|
||||
indir = re.sub(r'\/[^\/]*$', r'', infiles[0])
|
||||
inext = re.sub(r'^[^\.]*', r'', infiles[0])
|
||||
inext = re.sub(r'\s+$', r'', infiles[0])
|
||||
inext = re.sub(r'^.*(\.[^\.]+)$', r'\1', inext)
|
||||
|
||||
dbfile = ''
|
||||
csvfile = ''
|
||||
|
||||
مرجع در شماره جدید
Block a user