Skip to content

Commit d216865

Browse files
authored
Merge pull request #4997 from edgargabriel/topic/sequential-mode-fix
io/ompio: don't reset amode if MODE_SEQUENTIAL is set
2 parents 44a1c78 + c4879ec commit d216865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/common/ompio/common_ompio_file_open.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int mca_common_ompio_file_open (ompi_communicator_t *comm,
111111

112112
/* This fix is needed for data seiving to work with
113113
two-phase collective I/O */
114-
if ( mca_io_ompio_overwrite_amode ) {
114+
if ( mca_io_ompio_overwrite_amode && !(amode & MPI_MODE_SEQUENTIAL) ) {
115115
if ((amode & MPI_MODE_WRONLY)){
116116
amode -= MPI_MODE_WRONLY;
117117
amode += MPI_MODE_RDWR;

0 commit comments

Comments
 (0)