Skip to content

Conversation

@edgargabriel
Copy link
Member

@edgargabriel edgargabriel commented Aug 27, 2018

If an application opens a file from multiple processes
using MPI_COMM_SELF (or another set of communicators that have
the same CID on distinct process groups, as can happen as the result
of comm_split), the naming chosen for the managing the shared file pointer position
in a file (in sharedfp/lockedfile) or the mmapped shared memory region
(in sharedfp/sm) component would lead to a collision between the distinct process groups.
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

This commit is the equivalent to commit 9b65ec9 on master.
It can not be cherry-picked directly due to significant changes in the overal
organization of the file.

Signed-off-by: Edgar Gabriel [email protected]

If an application opens a file from multiple processes
using MPI_COMM_SELF (or another set of communicators that have
the same CID on distinct process groups, as can happen as the result
of comm_split), the naming chosen for the managing the shared file pointer position
in a file (in sharedfp/lockedfile) or the mmapped shared memory region
(in sharedfp/sm) component would lead to a collision between the distinct process groups.
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

This commit is the equivalent of commit 9b65ec9 on master.
It can not be cherry-picked directly due to significant changes in the overal
organization of the file.

Signed-off-by: Edgar Gabriel <[email protected]>
@bwbarrett bwbarrett merged commit 60ce984 into open-mpi:v3.1.x Sep 11, 2018
@edgargabriel edgargabriel deleted the pr/sharedfp-naming-conflict-v3.1 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.

4 participants