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

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

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.

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.
@hzhou hzhou force-pushed the 2412_initshm branch 2 times, most recently from caa1ce5 to d774dd3 Compare January 1, 2025 16:08
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.
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.

1 participant