Skip to content

Commit 664e8f5

Browse files
committed
docs: user: Update installation and running commands for AutoTuner
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
1 parent d3f4f56 commit 664e8f5

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

‎docs/user/InstructionsForAutoTuner.md‎

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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`
2727
that works in Python3.8 for installation and configuration of AutoTuner,
2828
as 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
108104
fully utilize available hardware resources from a single server
109105
configuration, on-premies or over the cloud with multiple CPUs.
110106
The two modes of operation: `sweep`, where every possible parameter
@@ -114,35 +110,37 @@ hyperparameters using one of the algorithms listed above. The `sweep`
114110
mode is useful when we want to isolate or test a single or very few
115111
parameters. On the other hand, `tune` is more suitable for finding
116112
the 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}
122116
The 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

130128
Example:
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

141139
Example:
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

Comments
 (0)