Modify parameters for calls to rocscope
Signed-off-by: coleramos425 <colramos@amd.com>
This commit is contained in:
+14
-8
@@ -331,9 +331,11 @@ def run_rocscope(args, fname):
|
|||||||
"-p", args.path,
|
"-p", args.path,
|
||||||
"-n", args.name,
|
"-n", args.name,
|
||||||
"-t", fname,
|
"-t", fname,
|
||||||
"--", args.remaining]
|
"--"]
|
||||||
|
for i in args.remaining.split():
|
||||||
|
rs_cmd.append(i)
|
||||||
print(rs_cmd)
|
print(rs_cmd)
|
||||||
result = subprocess.run(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
result = run_subprocess(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print(result.stderr.decode('ascii'))
|
print(result.stderr.decode('ascii'))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
@@ -381,9 +383,9 @@ def omniperf_profile(args, VER):
|
|||||||
print("Dispatch Selection: ", args.dispatch)
|
print("Dispatch Selection: ", args.dispatch)
|
||||||
|
|
||||||
if args.ipblocks == None:
|
if args.ipblocks == None:
|
||||||
print("IP Blocks: All")
|
print("IP Blocks: All", "\n")
|
||||||
else:
|
else:
|
||||||
print("IP Blocks: ", args.ipblocks)
|
print("IP Blocks: ", args.ipblocks, "\n")
|
||||||
|
|
||||||
# Set up directories
|
# Set up directories
|
||||||
workload_dir = args.path + "/" + args.name + "/" + args.target
|
workload_dir = args.path + "/" + args.name + "/" + args.target
|
||||||
@@ -408,9 +410,11 @@ def omniperf_profile(args, VER):
|
|||||||
"top10",
|
"top10",
|
||||||
"-p", args.path,
|
"-p", args.path,
|
||||||
"-n", args.name,
|
"-n", args.name,
|
||||||
"--", args.remaining]
|
"--"]
|
||||||
|
for i in args.remaining.split():
|
||||||
|
rs_cmd.append(i)
|
||||||
print(rs_cmd)
|
print(rs_cmd)
|
||||||
result = subprocess.run(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
result = run_subprocess(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print(result.stderr.decode('ascii'))
|
print(result.stderr.decode('ascii'))
|
||||||
else:
|
else:
|
||||||
@@ -432,9 +436,11 @@ def omniperf_profile(args, VER):
|
|||||||
"summary",
|
"summary",
|
||||||
"-p", args.path,
|
"-p", args.path,
|
||||||
"-n", args.name,
|
"-n", args.name,
|
||||||
"--", args.remaining]
|
"--"]
|
||||||
|
for i in args.remaining.split():
|
||||||
|
rs_cmd.append(i)
|
||||||
print(rs_cmd)
|
print(rs_cmd)
|
||||||
result = subprocess.run(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
result = run_subprocess(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print(result.stderr.decode('ascii'))
|
print(result.stderr.decode('ascii'))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user