rocprofv3-avail minor scrip fix (#172)

* rocprofv3-avail scrip fix

* addressing feedback

* formatting

* rocprofv3 and rocprofv3-avail to display help when no args are provided

---------

Co-authored-by: gobhardw <gopesh.bhardwaj@amd.com>
Этот коммит содержится в:
systems-assistant[bot]
2025-09-02 09:49:12 -07:00
коммит произвёл GitHub
родитель 7e3ddf3de8
Коммит 45e969f0c3
2 изменённых файлов: 10 добавлений и 0 удалений
+5
Просмотреть файл
@@ -458,6 +458,11 @@ def process_pmc_check(args):
def main(argv=None):
# If no arguments provided, show help and exit
if (argv is None and len(sys.argv) == 1) or (argv is not None and len(argv) == 0):
parse_arguments(["--help"])
return 0
ROCPROFV3_AVAIL_DIR = os.path.dirname(os.path.realpath(__file__))
ROCM_DIR = os.path.dirname(ROCPROFV3_AVAIL_DIR)
ROCPROF_LIST_AVAIL_TOOL_LIBRARY = (
+5
Просмотреть файл
@@ -1662,6 +1662,11 @@ def main(argv=None):
print(f" {key:>16}: {itr}")
return 0
# If no arguments provided, show help and exit
if (argv is None and len(sys.argv) == 1) or (argv is not None and len(argv) == 0):
parse_arguments(["--help"])
return 0
inp_args = (
parse_input(cmd_args.input) if getattr(cmd_args, "input") else [dotdict({})]
)