[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.2-325-g95582e6

Service Account noreply at mpich.org
Wed May 25 14:45:02 CDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  95582e64c7c5abd99f9338667a7ef45228d27f29 (commit)
      from  cd51b6f0bd2f053ef1bf4dc9339ca40c5ef48cfa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/95582e64c7c5abd99f9338667a7ef45228d27f29

commit 95582e64c7c5abd99f9338667a7ef45228d27f29
Author: Rob Latham <robl at mcs.anl.gov>
Date:   Wed May 25 13:55:39 2016 -0500

    comm_split_type: fix directory-not-shared case
    
    if another process cannot find the file that's OK: it tells us something
    about the topology.  do not report "cannot find file" up to the calling
    routines

diff --git a/src/mpi/romio/mpi-io/mpir_cst_filesys.c b/src/mpi/romio/mpi-io/mpir_cst_filesys.c
index 3ef9429..2ef7092 100644
--- a/src/mpi/romio/mpi-io/mpir_cst_filesys.c
+++ b/src/mpi/romio/mpi-io/mpir_cst_filesys.c
@@ -144,11 +144,15 @@ int MPIR_Comm_split_filesystem(MPI_Comm comm, int key, const char *dirname, MPI_
          * open/close the file instead */
 
         mpi_errno = MPI_File_open(MPI_COMM_SELF, filename, MPI_MODE_RDONLY, MPI_INFO_NULL, &fh);
-        if (mpi_errno != MPI_SUCCESS)
-            goto fn_exit;
-        if (mpi_errno == MPI_SUCCESS)
+        if (mpi_errno == MPI_SUCCESS) {
             globally_visible = 1;
-        MPI_File_close(&fh);
+	    MPI_File_close(&fh);
+	} else {
+	    /* do not report error up to caller.  we are merely testing the
+	     * presence of the file */
+	    mpi_errno = MPI_SUCCESS;
+	    globally_visible = 0;
+	}
     }
     MPI_Bcast(&globally_visible, 1, MPI_INT, challenge_rank, comm);
 

-----------------------------------------------------------------------

Summary of changes:
 src/mpi/romio/mpi-io/mpir_cst_filesys.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list