-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Max Dawkins <[email protected]>
- Loading branch information
Showing
8 changed files
with
77 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Example Tuner Test | ||
|
||
Example of tuning a dispatch and full model. | ||
|
||
## Environments | ||
Follow instructions in [`/tuner/README.md`](../README.md) | ||
|
||
## Running the Tuner | ||
|
||
### Choose a model to tune | ||
This example uses the simple `double_mmt.mlir` file. | ||
|
||
### Generate a benchmark file | ||
Use the usual `iree-compile` command for your model and add | ||
`--iree-hal-dump-executable-files-to=dump`. For example: | ||
```shell | ||
iree-compile double_mmt.mlir --iree-hal-target-backends=rocm --iree-hip-target=gfx942 --iree-hal-dump-executable-files-to=dump -o /dev/null | ||
``` | ||
|
||
Next, copy the `*_benchmark.mlir` file to some temporary directory of choice. | ||
This will be the input to the dispatch tuner. In the example, the `mmt_benchmark.mlir` example file (from double_mmt.mlir) can be used. | ||
|
||
### Recommended Trial Run | ||
For an initial trial to test the tuning loop, use: | ||
```shell | ||
python -m examples.test double_mmt.mlir mmt_benchmark.mlir --num-candidates=20 | ||
``` | ||
|
||
### Basic Usage | ||
```shell | ||
python -m examples.test double_mmt.mlir mmt_benchmark.mlir | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters