Repository navigation
--iree-llvmcpu-enable-ukernels, a fine-grained replacement for --iree-llvmcpu-enable-microkernels - #15571
Merged
Conversation
Collaborator
|
good idea! |
Collaborator
Author
|
The benchmark results seem to be just noise, but I retriggered just to be sure. |
bjacob
marked this pull request as ready for review
November 13, 2023 22:14
bjacob
requested review from
MaheshRavishankar,
benvanik,
dcaballe and
hanhanW
as code owners
November 13, 2023 22:14
hanhanW
approved these changes
Nov 13, 2023
This was referenced Nov 14, 2023
ramiro050
pushed a commit
to ramiro050/iree
that referenced
this pull request
Dec 19, 2023
…ree-llvmcpu-enable-microkernels` (iree-org#15571) This introduces a new command-line flag, `--iree-llvmcpu-enable-ukernels`, as a replacement for the existing `--iree-llvmcpu-enable-microkernels`, which gets deprecated but temporarily coexists during the transition. The name ambiguity (only differing by `micro` vs `u` substring) is OK as that's part of a general renaming trend and the old flag should get removed quickly. The problem with the boolean `--iree-llvmcpu-enable-microkernels` was that our plan was of course to eventually enable it by default, but then that puts a very high bar on any future new ukernel. For now, the only ukernel enabled in LLVMCPU is mmt4d, but the next time that we want to introduce a new ukernel, if that means that all existing codegen users get it while it is still under development, that would be hard. The new `--iree-llvmcpu-enable-ukernels` is a string. It has the default value `default`, which means let the implementation enable whichever set of ukernels is currently default. Currently, that's no ukernel at all, but we hope in the near team to change that default to including the `mmt4d` ukernel. Other special string values are `none` and `all` with the obvious meanings. Any other string is interpreted as a comma-separated list of individual ukernels to enable. The old boolean flag `--iree-llvmcpu-enable-microkernels={false,true}` is currently interpreted as `--iree-llvmcpu-enable-ukernels={none,all}` until it's dropped.
ramiro050
pushed a commit
to ramiro050/iree
that referenced
this pull request
Dec 19, 2023
…` to `--iree-llvmcpu-enable-ukernels` (iree-org#15584) Following iree-org#15571, we migrate existing tests and benchmarks from the old deprecated flag to the new one. This will allow us to drop `--iree-llvmcpu-enable-microkernels` in a future PR.
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.
This introduces a new command-line flag,
--iree-llvmcpu-enable-ukernels, as a replacement for the existing--iree-llvmcpu-enable-microkernels, which gets deprecated but temporarily coexists during the transition.The name ambiguity (only differing by
microvsusubstring) is OK as that's part of a general renaming trend and the old flag should get removed quickly.The problem with the boolean
--iree-llvmcpu-enable-microkernelswas that our plan was of course to eventually enable it by default, but then that puts a very high bar on any future new ukernel. For now, the only ukernel enabled in LLVMCPU is mmt4d, but the next time that we want to introduce a new ukernel, if that means that all existing codegen users get it while it is still under development, that would be hard.The new
--iree-llvmcpu-enable-ukernelsis a string. It has the default valuedefault, which means let the implementation enable whichever set of ukernels is currently default. Currently, that's no ukernel at all, but we hope in the near team to change that default to including themmt4dukernel. Other special string values arenoneandallwith the obvious meanings. Any other string is interpreted as a comma-separated list of individual ukernels to enable.The old boolean flag
--iree-llvmcpu-enable-microkernels={false,true}is currently interpreted as--iree-llvmcpu-enable-ukernels={none,all}until it's dropped.