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

init_shm: shortcut the trivial case of local_size is 1 #7251

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

hzhou
Copy link
Contributor

@hzhou hzhou commented Dec 31, 2024

Pull Request Description

It's simpler to shortcut the trivial case.

[skip warnings]

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

Sorry, something went wrong.

@hzhou hzhou force-pushed the 2412_initshm branch 3 times, most recently from d774dd3 to dbfa948 Compare January 1, 2025 16:35
@hzhou hzhou force-pushed the 2412_initshm branch 4 times, most recently from 672367f to 2cd9487 Compare February 12, 2025 18:04
@hzhou
Copy link
Contributor Author

hzhou commented Feb 12, 2025

test:mpich/ch4/ofi

@hzhou hzhou requested a review from raffenet February 12, 2025 20:34
We are going to shortcut the Init_shm implementation when local_size is
1, and it won't handle Init_shm_get when localsize is 1.
It's simpler to shortcut the trivial case.

Set global MPIDU_Init_shm_local_size and MPIDU_Init_shm_local_rank. This
prepares the flexibility that later we can extend Init_shm to dynamic
processes.
@hzhou hzhou merged commit 020323b into pmodels:main Feb 24, 2025
4 checks passed
@hzhou hzhou deleted the 2412_initshm branch February 24, 2025 23:11
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.

None yet

2 participants