Repository navigation
Adding initial executable library benchmarking tool. - #5604
Merged
Merged
Conversation
benvanik
force-pushed
the
benvanik-executable-benchmark
branch
from
April 25, 2021 18:41
d6ec0be to
e01cebc
Compare
benvanik
marked this pull request as ready for review
April 25, 2021 18:42
hanhanW
approved these changes
Apr 26, 2021
benvanik
force-pushed
the
benvanik-executable-benchmark
branch
from
April 26, 2021 15:11
e01cebc to
ebe489d
Compare
benvanik
force-pushed
the
benvanik-flags
branch
from
April 26, 2021 17:32
3905e0f to
6696e64
Compare
benvanik
force-pushed
the
benvanik-executable-benchmark
branch
from
April 26, 2021 17:54
ebe489d to
23cd4d5
Compare
benvanik
force-pushed
the
benvanik-flags
branch
from
April 26, 2021 20:33
6696e64 to
ec225b8
Compare
asaadaldien
approved these changes
Apr 26, 2021
Lots of improvements for configurability are possible; this is the bare minimum. Fixes #5564.
benvanik
force-pushed
the
benvanik-executable-benchmark
branch
from
April 28, 2021 17:43
23cd4d5 to
fd5621f
Compare
simon-camp
pushed a commit
to simon-camp/iree
that referenced
this pull request
Apr 29, 2021
Lots of improvements for configurability are possible; this is the bare minimum. Fixes iree-org#5564.
Merged
copybara-service Bot
pushed a commit
that referenced
this pull request
Apr 29, 2021
* 36522d9 Rotating instead of shifting to deal with overflow. (#5674) * e130e79 Merge pull request #5671 from ThomasRaoux/handle_vectorization * 011ffe0 Merge google -> main (#5663) * 6e16e38 Add vector transfer canonicalization patterns (#5664) * 95b3030 Add mobilenet_v3 to slim_vision_model_test.py (#5650) * 0c30c12 Fixing iree_cc_test android goo to use the proper executable name. (#5660) * cb54341 Adding initial executable benchmarking tool. (#5604) * 1de68ee Adding iree_task_executor_create_from_flags. (#5616) * db7f611 Merge pull request #5602 from google/benvanik-flags COPYBARA_INTEGRATE_REVIEW=#5673 from ThomasRaoux:main-to-google c08d5bd PiperOrigin-RevId: 371123718
iree-github-actions-bot
pushed a commit
that referenced
this pull request
Apr 29, 2021
* 36522d9 Rotating instead of shifting to deal with overflow. (#5674) * e130e79 Merge pull request #5671 from ThomasRaoux/handle_vectorization * 011ffe0 Merge google -> main (#5663) * 6e16e38 Add vector transfer canonicalization patterns (#5664) * 95b3030 Add mobilenet_v3 to slim_vision_model_test.py (#5650) * 0c30c12 Fixing iree_cc_test android goo to use the proper executable name. (#5660) * cb54341 Adding initial executable benchmarking tool. (#5604) * 1de68ee Adding iree_task_executor_create_from_flags. (#5616) * db7f611 Merge pull request #5602 from google/benvanik-flags PiperOrigin-RevId: 371123718
This file contains hidden or 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
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.
Lots of improvements for configurability are possible; this is the bare minimum.
This tool lets you take an executable library and invoke a single entry point with a flag-defined set of parameters.
Note that it's intentionally low level: you must specify all of the push constant/binding parameters precisely as
they are expected by the executable.
iree-benchmark-moduleis the user-friendly version while this favorsdirect access to the executables (bypassing all of the IREE VM, HAL APIs, task system, etc).
An example flagfile:
And invocation:
iree/hal/local/executable_library_benchmark --flagfile=simple.txtYields:
Executable libraries can be found in your temp path when compiling with
-iree-llvm-keep-linker-artifacts. The parameters used can be inferred from thehal.interface. In the future we could spit out these flagfiles automatically from the compiler for each entry point x each dispatch, but for now hand-constructing them is at least something. It'd also be nice to specify an output path for the executables/flagfiles/etc so that generating a directory of benchmarks for each entry point was easier.Fixes #5564.