Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Conversation

@hjelmn
Copy link
Member

@hjelmn hjelmn commented Jan 22, 2016

This commit makes ompi_datatype_get_pack_description thread safe. The
call is used by osc/pt2pt to send the packed description to remote
peers. Before this commit if MPI_THREAD_MULTIPLE is enabled and the
user uses MPI_Put, MPI_Get, etc we could hit a race where multiple
threads attempt to store the packed description on the datatype. Since
the code in question is not performance-critical the threading fix
uses opal_atomic_* calls instead of bothering with OPAL_THREAD_*.

(cherry picked from open-mpi/ompi@b921831)

Fixes open-mpi/ompi#1317

:bot🏷️bug
:bot:milestone:v2.0.0
:bot:assign: @bosilca

Signed-off-by: Nathan Hjelm hjelmn@lanl.gov

This commit makes ompi_datatype_get_pack_description thread safe. The
call is used by osc/pt2pt to send the packed description to remote
peers. Before this commit if MPI_THREAD_MULTIPLE is enabled and the
user uses MPI_Put, MPI_Get, etc we could hit a race where multiple
threads attempt to store the packed description on the datatype. Since
the code in question is not performance-critical the threading fix
uses opal_atomic_* calls instead of bothering with OPAL_THREAD_*.

(cherry picked from open-mpi/ompi@b921831)

Fixes open-mpi/ompi#1317

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
@ompiteam-bot ompiteam-bot added this to the v2.0.0 milestone Jan 22, 2016
@bosilca
Copy link
Member

bosilca commented Jan 22, 2016

👍

@mellanox-github
Copy link

Test PASSed.
See http://bgate.mellanox.com/jenkins/job/gh-ompi-release-pr/1244/ for details.

@hppritcha
Copy link
Member

looks like this commit has not made it through MTT testing on master yet.

@hppritcha
Copy link
Member

@jsquyres
looks like this didn't cause mtt issues - was tested with the 70787d1 tarball.

jsquyres added a commit that referenced this pull request Jan 25, 2016
ompi/datatype: make datatype pack thread safe
@jsquyres jsquyres merged commit ffa07d9 into open-mpi:v2.x Jan 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ompi_datatype_get_pack_description not thread safe

6 participants