Simple example of atomic operations in Julia using CUDA

Hello,
I’ve been struggling to write a simple working example of CUDA.atomic_min!() and CUDA.atomic_cas!(). If anyone can provide an example I would really appreciate it.
Thanks