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

MPI_Comm_idup hang in v2.0.x with MPI_THREAD_MULTIPLE #2380

Closed
jjhursey opened this issue Nov 7, 2016 · 3 comments
Closed

MPI_Comm_idup hang in v2.0.x with MPI_THREAD_MULTIPLE #2380

jjhursey opened this issue Nov 7, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@jjhursey
Copy link
Member

jjhursey commented Nov 7, 2016

I created a test case in ompi-tests underibm/communicator/comm_idup_many.c

This test is doing a simple:

    for (i = 0; i < num_comms_to_create; i++) {
        MPI_Comm_idup(MPI_COMM_WORLD, &comms[i], &req[i]);
    }

    MPI_Waitall(num_comms_to_create, req, MPI_STATUSES_IGNORE);

If you compile the v2.0.x branch with --enable-mpi-thread-multiple this test will hang when you try to create more than one communicator this way.

./configure --enable-debug --enable-mpi-thread-multiple

The problem is that the first request will progress past stage one, but the second request will block the progress thread in this section of code:

The master and v2.x branches pass this test. So I believe that the CID allocation fix that went into those two branches 'fixed' this problem.

@jjhursey jjhursey added the bug label Nov 7, 2016
@jjhursey jjhursey added this to the v2.0.2 milestone Nov 7, 2016
@jjhursey
Copy link
Member Author

jjhursey commented Nov 7, 2016

As part of Issue #2234 it was requested that we port a portion of this change to the v2.0.x series to fix a spawn issue:

I believe that this commit to the v2.x branch is what we would be looking at:

@jsquyres
Copy link
Member

jsquyres commented Nov 8, 2016

Per the call today, #2381 may fix this issue.

@jsquyres
Copy link
Member

jsquyres commented Nov 9, 2016

Confirmed by @jjhursey: fixed by #2381.

@jsquyres jsquyres closed this as completed Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants