Mask parameter for atomic_cas() #7370
Unanswered
rRajeev1755
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why does atomic_cas() not have a mask parameter similar to atomic_xchg()? Is this a design choice or a gap?
As far as what I understood from comparing the PTX generated by both atomic_cas() and atomic_exch(), they are similar.
The only difference lies in how the predicate register is set. The generated atomic_cas program sets the predicate register to 0xFFFFFFFF, whereas atomic_xchg uses the supplied mask input.
From the high-level implementation, this looks like there are no fundamental changes required to incorporate this feature.
Please read the request #4165
Beta Was this translation helpful? Give feedback.
All reactions