Skip to content

Update documentation for local-task and local-sync drivers. - #9399

Merged
ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:cpu-local-docs
Jun 8, 2022
Merged

ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:cpu-local-docs

Conversation

@ScottTodd

@ScottTodd ScottTodd commented Jun 8, 2022 •

Copy link
Copy Markdown
Member

Part of #4298, follow-up to #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.

@ScottTodd ScottTodd added documentation ✏️ Improvements or additions to documentation hal/api IREE's public C hardware abstraction layer API labels Jun 8, 2022
@ScottTodd
ScottTodd requested a review from benvanik June 8, 2022 18:52
@ScottTodd
ScottTodd removed the request for review from GMNGeoffrey June 8, 2022 18:52
tools/iree-run-module \
--driver=local-task \
--module_file=mobilenet-dylib.vmfb \
--module_file=mobilenet-local-cpu.vmfb \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 benvanik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@ScottTodd

Copy link
Copy Markdown
Member Author

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.

@ScottTodd
ScottTodd requested a review from benvanik June 8, 2022 20:37
@benvanik

benvanik commented Jun 8, 2022

Copy link
Copy Markdown
Collaborator

Totally agree - thanks for doing this!

@ScottTodd
ScottTodd merged commit 718e04e into iree-org:main Jun 8, 2022
@ScottTodd
ScottTodd deleted the cpu-local-docs branch June 8, 2022 21:13
jpienaar pushed a commit to jpienaar/iree that referenced this pull request Jun 10, 2022
…#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation ✏️ Improvements or additions to documentation hal/api IREE's public C hardware abstraction layer API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants