-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
atomicMax equivalent (and other atomics) #2401
Comments
Which other ones are you looking for? AtomicMax and Min is certainly one we should add. Probably we should have all of the ones we also support for reducers. |
Those are the only ones I need, and it looks like I can use the atomic CAS to get around it. I also had to convert an atomicInc before, which I replaced with a fetch add. It works fine, I was just thinking it might be nice to have a conversion chart in the docs. |
atomic increment should actually be there, but lets make this into a request for min and max. |
@crtrott, I actually think this is a good idea more generally, cheat sheets for "I use Where |
Hello all - Did atomic max and min ever get implemented? I was looking through https://github.com/kokkos/kokkos/wiki/Atomic-Operations and didn't see a way to construct an equivalent to atomic max from the existing listed operations. |
@ascheinb Here's how Tpetra does atomic |
@janciesko You wanna do this? Or maybe @jrmadsen ? |
@janciesko will look into this |
Hi all, I'm trying to convert a cuda atomicMax to Kokkos. In general, I see that there are a number of cuda atomics that do not have kokkos equivalents. I think that there is a way to effectively do an atomic max with the available kokkos atomics? In general, it would be nice to have guidance/documentation for the most efficient kokkos equivalent to the various cuda atomics.
The text was updated successfully, but these errors were encountered: