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

mpir_pmi: Move PMI(x)_Finalize to atexit handler to enable re-init. #6534

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

sonjahapp
Copy link
Contributor

@sonjahapp sonjahapp commented May 24, 2023

Move the call of PMI(x)_Finalize to an atexit handler to keep the connection to the PM open between two consecutive MPI sessions. Unlike the solution implemented in PR #6337, this solution is generic and does not require changes in the PM's implementation of PMI(x)_Finalize.

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.

Copy link
Contributor

@hzhou hzhou left a comment

Choose a reason for hiding this comment

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

I am concerned with the reliability of atexit hooks such as the case of static linking or dynamic linking quirks on different operating systems. But let's merge this and see how it goes.

Approved as long as tests clear

@hzhou
Copy link
Contributor

hzhou commented Jun 7, 2023

test:mpich/warnings
test:mpich/ch3/most
test:mpich/ch4/most

Move the call of PMI(x)_Finalize to an atexit handler to keep
the connection to the PM open between two consecutive MPI sessions.
Unlike the solution implemented in PR pmodels#6337, this solution is
generic and does not require changes in the PM's implementation of
PMI(x)_Finalize.
@hzhou hzhou force-pushed the pr-reinit-atexit branch from e73b912 to e7db712 Compare June 8, 2023 15:07
@hzhou
Copy link
Contributor

hzhou commented Jun 8, 2023

test:mpich/warnings

@hzhou hzhou merged commit 6df10c5 into pmodels:main Jun 8, 2023
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.

2 participants