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

osc/pt2pt: do no use OPAL_THREAD_ADD64 for lock serial number #1008

Merged
merged 1 commit into from
Mar 15, 2016

Conversation

hjelmn
Copy link
Member

@hjelmn hjelmn commented Mar 8, 2016

Some platforms do no support 64-bit atomic math. osc/pt2pt was using
OPAL_THREAD_ADD64 unconditionally which was causing compilation to
fail on these platforms. The function in question was alreay grabbing
a lock on the osc/pt2pt module so moved the increment to after the
lock to protect the module member (instead of using an atomic).

Fixes open-mpi/ompi#1162

Signed-off-by: Nathan Hjelm [email protected]

Some platforms do no support 64-bit atomic math. osc/pt2pt was using
OPAL_THREAD_ADD64 unconditionally which was causing compilation to
fail on these platforms. The function in question was alreay grabbing
a lock on the osc/pt2pt module so moved the increment to after the
lock to protect the module member (instead of using an atomic).

Fixes open-mpi/ompi#1162

Signed-off-by: Nathan Hjelm <[email protected]>
@mellanox-github
Copy link

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

@hjelmn
Copy link
Member Author

hjelmn commented Mar 8, 2016

:bot🏷️bug
:bot:milestone:v1.10.3
:bot:assign: @jsquyres

@ompiteam-bot ompiteam-bot added this to the v1.10.3 milestone Mar 8, 2016
@jsquyres
Copy link
Member

👍

rhc54 pushed a commit that referenced this pull request Mar 15, 2016
osc/pt2pt: do no use OPAL_THREAD_ADD64 for lock serial number
@rhc54 rhc54 merged commit a3b4735 into open-mpi:v1.10 Mar 15, 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.

5 participants