Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

v2.0.0: init finalize mutex plus mutex static initializer #676

Conversation

jsquyres
Copy link
Member

Bring over @hjelmn's static mutex initializer and the MPI_INITIALIZED / MPI_FINALIZED updates for MPI-3.1.

Master commit IDs are in the commit messages. See open-mpi/ompi#1026 (static mutex initializer) and open-mpi/ompi#1007 (INITIALIZED / FINALIZED updates).

@hjelmn @bosilca Please review.

hjelmn and others added 5 commits October 15, 2015 11:05
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
(cherry picked from commit open-mpi/ompi@039c7db)
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
(cherry picked from commit open-mpi/ompi@7f7ff8d)
- If MPI_INITLIZED is invoked and MPI is only partially initialized,
  wait until MPI is fully initialized before returning.
- If MPI_FINALIZED is invoked and MPI is only partially finalized,
  wait until MPI is fully finalized before returning.

(cherry picked from commit open-mpi/ompi@f5ad90c)
Update language surrounding initialization and finalization in
MPI_Init[_thread], MPI_Initialized, MPI_Finalize, and MPI_Finalized.

(cherry picked from commit open-mpi/ompi@338257a)
@bosilca
Copy link
Member

bosilca commented Oct 15, 2015

There are few other static mutexes in the code initialized to {{0}}. Do we want to change them to OPAL_MUTEX_STATIC_INIT ?

@mellanox-github
Copy link

Test PASSed.
See http://bgate.mellanox.com/jenkins/job/gh-ompi-release-v1.8-pr/859/ for details.

@hjelmn
Copy link
Member

hjelmn commented Oct 15, 2015

@bosilca Yes, we probably should. Especially since {{0}} is equivalent to not specifying an initializer at all.

I will take a look and PR that change separately.

👍

@jsquyres
Copy link
Member Author

@hppritcha Good to go.

hppritcha added a commit that referenced this pull request Oct 16, 2015
…us-mutex-static-initializer

v2.0.0: init finalize mutex plus mutex static initializer
@hppritcha hppritcha merged commit 425ec97 into open-mpi:v2.x Oct 16, 2015
@jsquyres jsquyres deleted the pr/2.0.0/init-finalize-mutex-plus-mutex-static-initializer branch February 2, 2016 19:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants