Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exporting with argument device affinities #300

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

sogartar
Copy link
Contributor

We don't have handling of device affinties for our sharded tensor types when they are the arguments of exported functions. Although, they can be specified explicitly when exporting, this change adds the ability to hide this and deduces the affinties from the tensor types.

@sogartar
Copy link
Contributor Author

This requires iree-org/iree-turbine#231.

@sogartar sogartar changed the title WIP Add exporting with argument device affinities Add exporting with argument device affinities Oct 21, 2024
@sogartar sogartar marked this pull request as ready for review October 21, 2024 19:54
module_fn_with_flat_signature,
*transitive_args,
args=flat_args,
argument_device_affinities=argument_device_affinities,
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait, where does this actually plumb through? I don't see this as part of the PR

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, the changes are dependent on https://github.com/iree-org/iree-turbine/pull/231/files
Lets focus on that and shelve these changes. Once export has the right parameter we won't need to make the sharktank changes.

@sogartar sogartar force-pushed the export-device-affinities branch 3 times, most recently from c9404c0 to 0eb437f Compare October 23, 2024 22:12
@sogartar sogartar enabled auto-merge (squash) October 23, 2024 23:16
We don't have handling of device affinties for our sharded tensor types
when they are the arguments of exported functions.
Although, they can be specified explicitly when exporting, this change adds
the ability to hide this and deduces the affinties from the tensor types.
@sogartar sogartar merged commit 3b5dc8a into nod-ai:main Oct 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants