Commit c2ce2188 authored by Paul Coffman's avatar Paul Coffman Committed by Rob Latham
Browse files

fix failure to update status in p2pcontig case



ADIOI_GPFS_WriteStridedColl and ADIOI_GPFS_ReadStridedColl need to call
MPIR_Status_set_bytes when GPFSMPIO_P2PCONTIG=1.

When the GPFSMPIO_P2PCONTIG optimization is set, the code path for
ADIOI_GPFS_WriteStridedColl and ADIOI_GPFS_ReadStridedColl returns
before MPIR_Status_set_bytes is called.  Duplicate the call to
MPIR_Status_set_bytes in the GPFSMPIO_P2PCONTIG code path.
Signed-off-by: Rob Latham's avatarRob Latham <robl@mcs.anl.gov>
parent 410ba24a
......@@ -299,8 +299,8 @@ void ADIOI_GPFS_ReadStridedColl(ADIO_File fd, void *buf, int count,
ADIOI_Free(end_offsets);
ADIOI_Free(fd_start);
ADIOI_Free(fd_end);
goto fn_exit;
return;
}
}
......@@ -398,6 +398,7 @@ void ADIOI_GPFS_ReadStridedColl(ADIO_File fd, void *buf, int count,
ADIOI_Free(fd_start);
ADIOI_Free(fd_end);
fn_exit:
#ifdef HAVE_STATUS_SET_BYTES
MPI_Type_size_x(datatype, &size);
bufsize = size * count;
......
......@@ -288,7 +288,7 @@ void ADIOI_GPFS_WriteStridedColl(ADIO_File fd, const void *buf, int count,
ADIOI_Free(fd_start);
ADIOI_Free(fd_end);
return;
goto fn_exit;
}
}
......@@ -370,6 +370,7 @@ void ADIOI_GPFS_WriteStridedColl(ADIO_File fd, const void *buf, int count,
ADIOI_Free(fd_start);
ADIOI_Free(fd_end);
fn_exit:
#ifdef HAVE_STATUS_SET_BYTES
if (status) {
MPI_Count bufsize, size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment