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 hpZ with zero element #5652

Merged
merged 4 commits into from
Jun 18, 2024
Merged

Fix hpZ with zero element #5652

merged 4 commits into from
Jun 18, 2024

Conversation

samadejacobs
Copy link
Contributor

@samadejacobs samadejacobs commented Jun 12, 2024

Fix corner cases where hpz secondary partition has zero element. This ensure that sec_numel is at least zero. For this scenario, copying is really not necessary except that all ranks need to synchronize at the end of secondary partition. This is a good solution until 2nd tensor all-gather vs 2nd tensor partition issue is properly fixed.

Fixes: #5642

Fix scenario where hpz secondary partition has zero element
@loadams loadams enabled auto-merge June 17, 2024 21:04
@loadams loadams disabled auto-merge June 17, 2024 21:05
@loadams loadams merged commit b33873d into master Jun 18, 2024
14 checks passed
@loadams loadams deleted the fix-hpz-with-zero-elt branch June 18, 2024 03:21
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.

[BUG] 1 line logic issue: flipped sign/direction in _partition_param_sec of partition_parameters.py?
3 participants