MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / parse_args

Function parse_args

tools/roctx.py:43–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def parse_args():
44 parser = argparse.ArgumentParser(
45 description="Parser for MIGraphX ROCTX Markers")
46 parser.add_argument('--json-path',
47 type=str,
48 metavar='json-path',
49 help='Path to json file')
50 parser.add_argument('--out',
51 type=str,
52 metavar='out',
53 help='Output directory for run.')
54 parser.add_argument(
55 '--study-name',
56 type=str,
57 metavar='study-name',
58 help='Study-name is used for naming the output CSV file.')
59 parser.add_argument('--repeat',
60 type=int,
61 metavar='repeat',
62 help='Defines number of runs.',
63 default=2)
64 parser.add_argument('--parse',
65 default=False,
66 action='store_true',
67 help='Parses given JSON file.')
68 parser.add_argument('--clean',
69 default=False,
70 action='store_true',
71 help='Removes temporary paths')
72 parser.add_argument('--run',
73 type=str,
74 metavar='run',
75 help='Enables run and fetches run configs.')
76 parser.add_argument('--debug', default=False, action='store_true')
77
78 args = parser.parse_args()
79 return args
80
81
82args = parse_args()

Callers 1

roctx.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected