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

Fix for 509 #510

Merged
merged 2 commits into from
Dec 12, 2022
Merged

Conversation

magnatelee
Copy link
Contributor

No description provided.

@magnatelee magnatelee added the category:improvement PR introduces an improvement and will be classified as such in release notes label Dec 6, 2022
@magnatelee magnatelee requested a review from rohany December 6, 2022 06:33
Copy link
Member

@rohany rohany left a comment

Choose a reason for hiding this comment

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

Logic looks good to me, just some requests for comments.

@@ -350,21 +350,21 @@ def compute_launch_shape(
partitions: dict[PartSym, PartitionBase],
all_outputs: set[Store],
unbound_ndim: Optional[int],
) -> Optional[Shape]:
) -> Tuple[Optional[Shape], bool]:
Copy link
Member

Choose a reason for hiding this comment

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

I would add a comment to this now explaining what the boolean return value is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

launch_shape, done = self.compute_launch_shape(
result, all_outputs, unbound_ndim
)
if can_retry and not done:
Copy link
Member

Choose a reason for hiding this comment

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

This is a bit of tricky logic that could use a comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@magnatelee magnatelee merged commit 363c478 into nv-legate:branch-22.12 Dec 12, 2022
@magnatelee magnatelee deleted the less-eager-unification branch December 12, 2022 19:43
manopapad pushed a commit that referenced this pull request Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:improvement PR introduces an improvement and will be classified as such in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants