-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new benchmark and document steps: Add a new unaligned matmul test that will exercise failsafes to avoid bad configurations #14052
Merged
Conversation
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
… bad configurations For future reference, here are the steps required to add a new matmul benchmark to IREE: 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` Commit everything.
nicolasvasilache
force-pushed
the
add-bench
branch
from
June 12, 2023 09:55
7df3bef
to
bd62eac
Compare
nicolasvasilache
changed the title
Attempting to add a new benchmark and documenting steps: Add a new unaligned matmul test that will exercise failsafes to avoid bad configurations
Add a new benchmark and document steps: Add a new unaligned matmul test that will exercise failsafes to avoid bad configurations
Jun 12, 2023
matthias-springer
approved these changes
Jun 12, 2023
qcolombet
approved these changes
Jun 12, 2023
mariecwhite
approved these changes
Jun 12, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for documenting the steps!
Abbreviated Benchmark Summary@ commit 12d7e3ec56a8844cf9bea506c5eb23d7da21c9eb (no previous benchmark results to compare) Raw Latencies
[Top 3 out of 19 results showed] No improved or regressed compilation metrics 🏖️ For more information: |
nhasabni
pushed a commit
to plaidml/iree
that referenced
this pull request
Aug 24, 2023
…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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 ads them: