diff --git a/projects/rocprofiler-compute/src/omniperf_analyze/omniperf_analyze.py b/projects/rocprofiler-compute/src/omniperf_analyze/omniperf_analyze.py index 41d25903a4..7cb6b3bf62 100644 --- a/projects/rocprofiler-compute/src/omniperf_analyze/omniperf_analyze.py +++ b/projects/rocprofiler-compute/src/omniperf_analyze/omniperf_analyze.py @@ -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) diff --git a/projects/rocprofiler-compute/src/parser.py b/projects/rocprofiler-compute/src/parser.py index f6557b63b5..a18ad5d22b 100644 --- a/projects/rocprofiler-compute/src/parser.py +++ b/projects/rocprofiler-compute/src/parser.py @@ -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).", )