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

romio gpfs: select correct read buffer



ROMIO GPFSMPIO_P2PCONTIG threaded read needs to toggle first read buffer

When using both the GPFSMPIO_P2PCONTIG and GPFSMPIO_PTHREADIO
optimizations there was a correctness bug when reading where for the
first round the read buffer did not toggle to the two-phase buffer for
the pthread reader, resulting in diseminating the data from the wrong
buffer.  The fix is to do the toggle after the first read.
Signed-off-by: default avatarPaul Coffman <pkcoff@us.ibm.com>
Signed-off-by: Rob Latham's avatarRob Latham <robl@mcs.anl.gov>
parent 8a0887b9
...@@ -667,6 +667,7 @@ void ADIOI_P2PContigReadAggregation(ADIO_File fd, ...@@ -667,6 +667,7 @@ void ADIOI_P2PContigReadAggregation(ADIO_File fd,
ADIO_ReadContig(fd, read_buf,amountDataToReadThisRound, ADIO_ReadContig(fd, read_buf,amountDataToReadThisRound,
MPI_BYTE, ADIO_EXPLICIT_OFFSET, currentRoundFDStart, MPI_BYTE, ADIO_EXPLICIT_OFFSET, currentRoundFDStart,
&status, error_code); &status, error_code);
currentReadBuf = 1;
#ifdef ROMIO_GPFS #ifdef ROMIO_GPFS
endTimeBase = MPI_Wtime(); endTimeBase = MPI_Wtime();
......
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