You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document canonical list of available backends #10432
See here for precipitating discussion. We've had our repo get out of sync from the de facto list of available backends for IREE. It would be nice to be able to simply link users to the official list of available backends rather than having to keep and enforce this list on our own.
Thanks Dan for filing this. For IREE team folks, ideally this would have the following:
List of available compiler backends, along with description of each (and ideally advantages/disadvantages vs other ones, e.g. why use vulkan over cuda or vice versa)
List of available runtime drivers and which compiler backends they are compatible with.
I think the only hard thing is how to tell what values are actually associated with each backend (i.e. what one should pass to something like iree.compiler.compile_str).
For example, if this list is accurate, I only see three of the options listed on the four backend pages. From there, it seems like the command line arguments essentially document the string that should be used, but it seems like this is --device on some pages but not on others (--iree-hal-target-backends?). I also see references to local-sync here, which if I'm reading the code correctly seems to be something that should be passed in to the runtime and not the compiler.
Perhaps a simple table summary on either the page you linked on the individual pages would work well.
Advertise iree-run-module --dump_devices (CLI) and iree.runtime.query_available_drivers() (Python) as ways to list available runtime devices/drivers
Advertise iree-compile /dev/null --iree-llvm-list-targets for listing available CPU targets. Note: that flag is a bit awkward to use, since it requires a positional argument, unlike --help (which I noticed one year ago 😭 : Write a blog post walking through "Evaluating IREE" #7116 (comment))
Add a iree-compile --iree-hal-target-backends-list or make the list show up in --help output somehow. Right now it just appears as
--iree-hal-target-backends=<string> - Target backends for executable compilation.
compared to enums like
--iree-vm-bytecode-module-output-format=<value> - Output format the bytecode module is written in
=flatbuffer-binary - Binary FlatBuffer file
=flatbuffer-text - Text FlatBuffer file, debug-only
=mlir-text - MLIR module file in the VM dialect
=annotated-mlir-text - MLIR module file in the VM dialect with annotations
Once we have a way to query the linked in / enabled / supported target backends, we should plumb that through to the python bindings as well. (Or do they already have a good error message if you try compiling without a valid target backend?)
Possibly mention out of tree or experimental compiler target backends / runtime HAL drivers and advertise a few ones that we know about in open source
Cool, I have PRs out to add iree-compile --iree-hal-list-target-backends (CLI) and iree.compiler.query_available_targets() (Python), and I fixed the awkward positional argument flag parsing with that new flag and --iree-llvm-list-targets.
Activity
silvasean commentedon Sep 15, 2022
Thanks Dan for filing this. For IREE team folks, ideally this would have the following:
benvanik commentedon Sep 15, 2022
This information is available here: https://iree-org.github.io/iree/deployment-configurations/
That could be updated to have a better overview without needing to click in to each backend, though.
dellis23 commentedon Sep 20, 2022
I think the only hard thing is how to tell what values are actually associated with each backend (i.e. what one should pass to something like
iree.compiler.compile_str).For example, if this list is accurate, I only see three of the options listed on the four backend pages. From there, it seems like the command line arguments essentially document the string that should be used, but it seems like this is
--deviceon some pages but not on others (--iree-hal-target-backends?). I also see references tolocal-synchere, which if I'm reading the code correctly seems to be something that should be passed in to the runtime and not the compiler.Perhaps a simple table summary on either the page you linked on the individual pages would work well.
ScottTodd commentedon Sep 30, 2022
I see a few things we can do here to make this easier for users:
iree-run-module --dump_devices(CLI) andiree.runtime.query_available_drivers()(Python) as ways to list available runtime devices/driversiree-compile /dev/null --iree-llvm-list-targetsfor listing available CPU targets. Note: that flag is a bit awkward to use, since it requires a positional argument, unlike--help(which I noticed one year ago 😭 : Write a blog post walking through "Evaluating IREE" #7116 (comment))iree-compile --iree-hal-target-backends-listor make the list show up in--helpoutput somehow. Right now it just appears asScottTodd commentedon Oct 3, 2022
Cool, I have PRs out to add
iree-compile --iree-hal-list-target-backends(CLI) andiree.compiler.query_available_targets()(Python), and I fixed the awkward positional argument flag parsing with that new flag and--iree-llvm-list-targets.I'll work on documentation updates next.
Add `--iree-hal-list-target-backends` flag. (#10629)
Add iree.compiler.query_available_targets() Python utility. (#10633)
Document HAL targets on "deployment configurations" index page. (#10636)
ScottTodd commentedon Oct 3, 2022
https://iree-org.github.io/iree/deployment-configurations/ here you go, this has lists now, and information about how to query the linked in / supported targets/devices using the command-line tools and Python bindings
silvasean commentedon Oct 4, 2022
Thanks Scott!!! This is perfect :)
Add `--iree-hal-list-target-backends` flag. (iree-org#10629)
Add iree.compiler.query_available_targets() Python utility. (iree-org…
Document HAL targets on "deployment configurations" index page. (iree…