mpich
mpich copied to clipboard
session: init with the user requested thread level
Pull Request Description
Previously we assume we can't support session with MPI_THREAD_MULTIPLE because user always can concurrently call MPI from different sessions. However, if we interpret the semantics of MPI thread level governs above sessions, then user can call MPI_Session_init with any thread level and we can just support it as usual if it is the first init. Later init will just inherit the already-set thread level.
[skip warnings]
Author Checklist
- [x] Provide Description Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
- [x] Commits Follow Good Practice
Commits are self-contained and do not do two things at once.
Commit message is of the form:
module: short descriptionCommit message explains what's in the commit. - [ ] Passes All Tests Whitespace checker. Warnings test. Additional tests via comments.
- [x] Contribution Agreement For non-Argonne authors, check contribution agreement. If necessary, request an explicit comment from your companies PR approval manager.
test:mpich/ch4/most
test:mpich/ch4/most