MCPcopy Create free account
hub / github.com/NVlabs/AutoDMP / parse_config_args

Function parse_config_args

scripts/genFlow.py:26–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def parse_config_args():
27 parser = argparse.ArgumentParser()
28 parser.add_argument("-autodmp_dir", help="Path to AutoDMP directory", type=str)
29 parser.add_argument("-cadence_dir", help="Path to Cadence directory", type=str)
30 parser.add_argument(
31 "-base_ppa", help="Name for getting Base PPA parameters", type=str
32 )
33 parser.add_argument(
34 "--reuse_params",
35 help="Path to reuse_params json file",
36 type=str,
37 default="\\'\\'",
38 )
39 parser.add_argument(
40 "-unopt_netlist",
41 help="0: Use optimized netlist in AutoDMP, 1: Use unoptimized netlist in AutoDMP",
42 type=int,
43 choices=[0, 1],
44 )
45 parser.add_argument(
46 "-macros_only",
47 help="0: Full placement, 1: Macro placement only. Only keep macros from AutoDMP placement",
48 type=int,
49 choices=[0, 1],
50 )
51 parser.add_argument(
52 "-bo_method", help="0: Single-Obj, 1: Multi-Obj", type=int, choices=[0, 1]
53 )
54 parser.add_argument("-bo_space", help="BO config space", type=str)
55 parser.add_argument(
56 "--so_d_weight", help="Single-Obj density weight", type=float, default=0.1
57 )
58 parser.add_argument(
59 "--so_c_weight", help="Single-Obj congestion weight", type=float, default=0.1
60 )
61 parser.add_argument(
62 "--gpu",
63 help="0: No GPU present, 1: GPU present",
64 type=int,
65 default=0,
66 choices=[0, 1],
67 )
68 parser.add_argument(
69 "--num_workers", help="Number of parallel workers", type=int, default=8
70 )
71 parser.add_argument(
72 "--iterations", help="Number of MOBO iterations", type=int, default=1000
73 )
74 args = parser.parse_args()
75 return args
76
77
78if __name__ == "__main__":

Callers 1

genFlow.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected