|
3 | 3 | Dependencies are documented in pip format at distributed-requirements.txt |
4 | 4 |
|
5 | 5 | For both sweep and tune modes: |
6 | | - python3 -m autotuner.distributed -h |
| 6 | + openroad_autotuner -h |
7 | 7 |
|
8 | 8 | Note: the order of the parameters matter. |
9 | 9 | Arguments --design, --platform and --config are always required and should |
10 | 10 | precede the <mode>. |
11 | 11 |
|
12 | 12 | AutoTuner: |
13 | | - python3 -m autotuner.distributed tune -h |
14 | | - python3 -m autotuner.distributed --design gcd --platform sky130hd \ |
| 13 | + openroad_autotuner tune -h |
| 14 | + openroad_autotuner --design gcd --platform sky130hd \ |
15 | 15 | --config ../designs/sky130hd/gcd/autotuner.json \ |
16 | 16 | tune |
17 | 17 | Example: |
18 | 18 |
|
19 | 19 | Parameter sweeping: |
20 | | - python3 -m autotuner.distributed sweep -h |
| 20 | + openroad_autotuner sweep -h |
21 | 21 | Example: |
22 | | - python3 -m autotuner.distributed --design gcd --platform sky130hd \ |
23 | | - --config distributed-sweep-example.json \ |
24 | | - sweep |
| 22 | + openroad_autotuner --design gcd --platform sky130hd \ |
| 23 | + --config distributed-sweep-example.json \ |
| 24 | + sweep |
25 | 25 | """ |
26 | 26 |
|
27 | 27 | import argparse |
@@ -594,7 +594,7 @@ def sweep(): |
594 | 594 | print("[INFO TUN-0010] Sweep complete.") |
595 | 595 |
|
596 | 596 |
|
597 | | -if __name__ == "__main__": |
| 597 | +def main(): |
598 | 598 | args = parse_arguments() |
599 | 599 |
|
600 | 600 | # Read config and original files before handling where to run in case we |
@@ -647,3 +647,7 @@ def sweep(): |
647 | 647 | sys.exit(1) |
648 | 648 | elif args.mode == "sweep": |
649 | 649 | sweep() |
| 650 | + |
| 651 | + |
| 652 | +if __name__ == "__main__": |
| 653 | + main() |
0 commit comments