forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new benchmark and document steps: Add a new unaligned matmul te…
…st that will exercise failsafes to avoid bad configurations (iree-org#14052) For future reference, here are the steps required to add a new matmul benchmark to IREE. Most are described in `build_tools/python/e2e_test_framework/models/README.md`, this is a more hand-holdey version to add specific matmul benchmarks as IREE currently adds them: Step 1. Add a new entry to model_groups.py Step 2. Generate uuid with python: ``` python import uuid uuid.uuid4() ``` Step 3. Add an entry and plug UUID in `build_tools/python/e2e_test_framework/unique_ids.py` Step 4. Run `echo "$(date +'%Y%m%d')_$(date +'%s')"` to get a date + timestamp. Step 5. Add an entry to `build_tools/python/e2e_test_framework/models/matmul.py` using the date + timestamp directory name. Step 6. Write the desired .mlir and generate an a .mlirbc with `iree-opt --emit-bytecode` Step 7. Upload the .mlirbc to the GCS directory `https://storage.googleapis.com/iree-model-artifacts/microbenchmarks/matmul/timestamp/` with timestamp created in Step 5. Step 8. Run `build_tools/scripts/generate_cmake_files.sh` Step 9. Commit everything.
- Loading branch information
1 parent
aba6267
commit 59c3fe1
Showing
5 changed files
with
52 additions
and
0 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
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