Skip to content

Commit ceb5212

Browse files
authored
Merge pull request #7476 from raafatfeki/topic/gpfs
Topic/gpfs
2 parents f496f25 + f46cfc1 commit ceb5212

File tree

2 files changed

+138
-207
lines changed

2 files changed

+138
-207
lines changed

ompi/mca/fs/gpfs/fs_gpfs.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,14 @@ mca_fs_gpfs_component_file_query (ompio_file_t *fh, int *priority)
9292
if (OMPIO_ROOT == fh->f_rank) {
9393
fh->f_fstype = mca_fs_base_get_fstype ( (char *) fh->f_filename );
9494
}
95-
fh->f_comm->c_coll->coll_bcast (&(fh->f_fstype),
96-
1,
97-
MPI_INT,
98-
OMPIO_ROOT,
99-
fh->f_comm,
100-
fh->f_comm->c_coll->coll_bcast_module);
95+
if (MPI_COMM_NULL != fh->f_comm) {
96+
fh->f_comm->c_coll->coll_bcast (&(fh->f_fstype),
97+
1,
98+
MPI_INT,
99+
OMPIO_ROOT,
100+
fh->f_comm,
101+
fh->f_comm->c_coll->coll_bcast_module);
102+
}
101103
}
102104
else {
103105
if (!strncmp(fh->f_filename, "gpfs:", 5) ||

0 commit comments

Comments
 (0)