Skip to content

Conversation

@edgargabriel
Copy link
Member

No description provided.

If MPI_MODE_SEQUENTIAL was used when opening the file, the special displacement  MPI_DISPLACEMENT_CURRENT
has to be used during file_set_view. The displacement is set to the current position of the shared file pointer
in this case. It is illegal to use MPI_DISPLACEMENT_CURRENT unless amode MPI_MODE_SEQUENTIAL was used.

Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
(cherry picked from commit 6168dde)
aio_return returns the number of bytes written/read, and can indicate a partial completion.
This fix ensures that a partially completed aio_read/write operation is reposted correctly.
Fixes the i_bigtype test from the mpich testsuite.

Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
(cherry picked from commit 79561ee)
you cannot access parts of a file if the file view contains a description
that leads ultimately to a negative offset. This fix ensures that
we return an error in this case (MPI_ERR_IO).

This fix was triggered by an investigation into mpich/test/mpi/io/tst_fileview testcase.
Running this test with ompio still leads to a number of 'failures' since
we return MPI_ERR_TYPE in some instances, while the testcode expects MPI_ERR_IO.
I will not fix those issues, since this is like playing guacamole (fixing the error
code expected by one testsuite makes another testsuite fail). However, this commit
fixes the one case where we returned MPI_SUCCESS instead of an error code.

Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
(cherry picked from commit 0761c0b)
@edgargabriel edgargabriel added this to the v4.0.6 milestone Feb 3, 2021
@hppritcha
Copy link
Member

@edgargabriel were these commits triggered by a user report?

@hppritcha hppritcha merged commit bfeb240 into open-mpi:v4.0.x Feb 9, 2021
@edgargabriel edgargabriel deleted the pr/v4.0.x-mpich3.4-tstsuite-fixes branch March 3, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants