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


[ROCm/rocprofiler-compute commit: b3df8b9032]
This commit is contained in:
coleramos425
2023-05-02 16:34:07 -05:00
parent 186deb0533
commit e97232d1c3
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
@@ -171,7 +171,7 @@ def run_gui(args, runs):
args.verbose,
args,
)
if(args.random_port):
if args.random_port:
app.run_server(debug=False, host="0.0.0.0", port=random.randint(1024, 49151))
else:
app.run_server(debug=False, host="0.0.0.0", port=args.gui)
@@ -285,7 +285,7 @@ def analyze(args):
if args.gui:
run_gui(args, runs)
else:
if(args.random_port):
if args.random_port:
print("ERROR: --gui flag required to enable --random-port")
sys.exit(1)
run_cli(args, runs)
@@ -490,5 +490,5 @@ def parse(my_parser):
analyze_group.add_argument(
"--random-port",
action="store_true",
help="\t\tRandomly generate a port to launch GUI application.\n\t\tRegistered Ports range inclusive (1024-49151)."
help="\t\tRandomly generate a port to launch GUI application.\n\t\tRegistered Ports range inclusive (1024-49151).",
)