Skip to content

: selection: handle dim mismatch in reify_view #482

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shayne-fletcher
Copy link
Contributor

Differential Revision: D78035345

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 9, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78035345

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78035345

shayne-fletcher added a commit to shayne-fletcher/monarch-1 that referenced this pull request Jul 10, 2025
Summary:

improve `reify_view` to support dimension mismatches by falling back to `Selection::of_ranks`. this enables `reify_views` to be used in `mesh_controller`, simplifying cast selection logic. also improves ergonomics by allowing `reify_views` to accept slices directly (e.g., `&[Slice]` or `Vec<Slice>`).

Differential Revision: D78035345
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78035345

Summary:

- remove the `DestinationPort` arg from `CastMessageEnvelope::new` since it can be calculated from the other arguments
- remove now unnecessary arguments from the utility `actor_mesh::actor_mesh_cast` (proc mesh shape and actor name)
- generally make the handling of generics consistent in these interfaces

Differential Revision: D78030552
Summary:

improve `reify_view` to support dimension mismatches by falling back to `Selection::of_ranks`. this enables `reify_views` to be used in `mesh_controller`, simplifying cast selection logic. also improves ergonomics by allowing `reify_views` to accept slices directly (e.g., `&[Slice]` or `Vec<Slice>`).

Differential Revision: D78035345
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78035345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants