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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7e3ddf3de8
Коммит
45e969f0c3
@@ -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 = (
|
||||
|
||||
@@ -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({})]
|
||||
)
|
||||
|
||||
Ссылка в новой задаче
Block a user