Repository navigation
Update documentation for local-task and local-sync drivers. - #9399
Conversation
| tools/iree-run-module \ | ||
| --driver=local-task \ | ||
| --module_file=mobilenet-dylib.vmfb \ | ||
| --module_file=mobilenet-local-cpu.vmfb \ |
There was a problem hiding this comment.
the vmfbs themselves don't care about how they are executed, so this would just be -cpu (or -[arch] like -vmvx or -x86_64) - that's because it'll run with local-sync/local-task/remote-*/sandbox-/local-taskflow/whatever and the only thing that matters is what kind of executables are in it.
benvanik
left a comment
There was a problem hiding this comment.
I think where we want to get with this is that users choose the vmfb they want to build separate from runtime flags - that is, there's nothing in producing the vmfb that requires the user to know if they are on local-sync/local-task and as such it's not part of a deployment configuration. I think this could just be deployment_configurations/cpu.md and talk about building vmfbs for CPUs and then maybe have a footnote about whether you want to run threaded or not and how to specify that at runtime (or link to a doc about the runtime usage).
|
Thanks for the comments. I iterated on that page a bit more. I'm not totally satisfied yet, but I think this is a sizable step in the right direction. |
|
Totally agree - thanks for doing this! |
…#9399) Part of iree-org#4298, follow-up to iree-org#9365 (comment) The main change here is renaming the `cpu-dylib` page to just `cpu` and adding some explanations for `local-sync` vs `local-task` and the executable format options. There's still a bit to clean up to do around the `dylib-llvm-aot` compiler target name and a few lingering places in code that make assumptions about dependencies on threading.
Part of #4298, follow-up to #9365 (comment)
The main change here is renaming the
cpu-dylibpage to justcpuand adding some explanations forlocal-syncvslocal-taskand the executable format options.There's still a bit to clean up to do around the
dylib-llvm-aotcompiler target name and a few lingering places in code that make assumptions about dependencies on threading.