Skip to content

Conversation

@edgargabriel
Copy link
Member

This commit fixes the calculation of the buffer length that
needs to be read when using data sieving. The original code implicitely
assumed that the ub of an iov at index j+1 is larger than
the ub of the iov at index j. This is not necessarily the case
for read operations. Hence, the code needs to keep track of the max.
ub found.

Fixes issue #10546

Signed-off-by: Edgar Gabriel [email protected]
(cherry picked from commit 6891cee)

This commit fixes the calculation of the buffer length that
needs to be read when using data sieving. The original code implicitely
assumed that the ub of an iov at index j+1 is larger than
the ub of the iov at index j. This is not necessarily the case
for read operations. Hence, the code needs to keep track of the max.
ub found.

Fixes issue open-mpi#10546

Signed-off-by: Edgar Gabriel <[email protected]>
(cherry picked from commit 6891cee)
@edgargabriel edgargabriel added this to the v4.1.5 milestone Jul 18, 2022
@edgargabriel edgargabriel requested a review from devreal July 18, 2022 13:25
@bwbarrett bwbarrett merged commit 9c8e020 into open-mpi:v4.1.x Jul 18, 2022
@edgargabriel edgargabriel deleted the pr/v4.1-read-data-sieving-fix branch March 3, 2023 14:20
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.

3 participants