Atomic function

Is it possible to create my own atomic function in cuda?
I searched at documentation, but cant find anything.
Thanks for all.

Henrique.

You should be able to create any atomic function you want with AtomicCompareExchange.