Skip to content

Conversation

@edgargabriel
Copy link
Member

@edgargabriel edgargabriel commented Aug 27, 2018

If an application opens a file for reading from multiple processes
using MPI_COMM_SELF (or another communicator that has distinct
process groups but the same comm-id, as can happen as the result
of comm_split), the naming chosen for the lockedfile or the mmapped
file used by the sharedfp/sm component would collide. This patch
ensures that the filename is different by integrating the process id
of rank 0 for each sub-communicator.

This fixes one aspect of the problem reported in github issue #5593

Signed-off-by: Edgar Gabriel egabriel@central.uh.edu

If an application opens a file for reading from multiple processes
using MPI_COMM_SELF (or another communicator that has distinct
process groups but the same comm-id, as can happen as the result
of comm_split), the naming chosen for the lockedfile or the mmapped
file used by the sharedfp/sm component would collide. This patch
ensures that the filename is different by integrating the process id
of rank 0 for each sub-communicator.

This fixes one aspect of the problem reported in github issue 5593

Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
@edgargabriel edgargabriel self-assigned this Aug 27, 2018
@hppritcha hppritcha added this to the v4.0.0 milestone Aug 28, 2018
@hppritcha
Copy link
Member

@edgargabriel could you check the "5593" above? It doesn't seem to be the right number.

@edgargabriel
Copy link
Member Author

@hppritcha the issue number is correct. If you scroll down, there is an MPI I/O problem reported as well, and this is the fix that resulted from that report.

@hppritcha hppritcha merged commit 7e10bc0 into open-mpi:v4.0.x Sep 2, 2018
@edgargabriel edgargabriel deleted the pr/sharedfp-naming-conflict-v4.0 branch November 26, 2019 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants