@@ -23,17 +23,13 @@ User-defined coefficient values (`coeff_perform`, `coeff_power`, `coeff_area`) o
2323
2424## Setting up AutoTuner
2525
26- We have provided two convenience scripts, ` ./install .sh ` and ` ./setup.sh `
26+ We have provided two convenience scripts, ` ./installer .sh ` and ` ./setup.sh `
2727that works in Python3.8 for installation and configuration of AutoTuner,
2828as shown below:
2929
30- ``` {note}
31- Make sure you run the following commands in `./tools/AutoTuner/src/autotuner`.
32- ```
33-
3430``` shell
3531# Install prerequisites
36- ./tools/AutoTuner/install .sh
32+ ./tools/AutoTuner/installer .sh
3733
3834# Start virtual environment
3935./tools/AutoTuner/setup.sh
@@ -104,7 +100,7 @@ For Global Routing parameters that are set on `fastroute.tcl` you can use:
104100
105101### General Information
106102
107- The ` distributed.py ` script uses Ray's job scheduling and management to
103+ The ` autotuner.distributed ` module uses Ray's job scheduling and management to
108104fully utilize available hardware resources from a single server
109105configuration, on-premies or over the cloud with multiple CPUs.
110106The two modes of operation: ` sweep ` , where every possible parameter
@@ -114,35 +110,37 @@ hyperparameters using one of the algorithms listed above. The `sweep`
114110mode is useful when we want to isolate or test a single or very few
115111parameters. On the other hand, ` tune ` is more suitable for finding
116112the best combination of a complex and large number of flow
117- parameters. Both modes rely on user-specified search space that is
118- defined by a ` .json ` file, they use the same syntax and format,
119- though some features may not be available for sweeping.
113+ parameters.
120114
121115``` {note}
122116The order of the parameters matter. Arguments `--design`, `--platform` and
123117`--config` are always required and should precede <mode>.
124118```
125119
120+ ``` {note}
121+ The following commands should be run from `./tools/AutoTuner`.
122+ ```
123+
126124#### Tune only
127125
128- * AutoTuner: ` python3 distributed.py tune -h `
126+ * AutoTuner: ` python3 -m autotuner.distributed tune -h `
129127
130128Example:
131129
132130``` shell
133- python3 distributed.py --design gcd --platform sky130hd \
134- --config ../../../../ flow/designs/sky130hd/gcd/autotuner.json \
131+ python3 -m autotuner.distributed --design gcd --platform sky130hd \
132+ --config ../../flow/designs/sky130hd/gcd/autotuner.json \
135133 tune --samples 5
136134```
137135#### Sweep only
138136
139- * Parameter sweeping: ` python3 distributed.py sweep -h `
137+ * Parameter sweeping: ` python3 -m autotuner.distributed sweep -h `
140138
141139Example:
142140
143141``` shell
144- python3 distributed.py --design gcd --platform sky130hd \
145- --config distributed-sweep-example.json \
142+ python3 -m autotuner.distributed --design gcd --platform sky130hd \
143+ --config src/autotuner/ distributed-sweep-example.json \
146144 sweep
147145```
148146
0 commit comments