Click an item in the table below for details about that function.
atomic_add | atomic_sub | atomic_xchg | atomic_inc |
atomic_dec | atomic_cmpxchg | atomic_min | atomic_max |
atomic_and | atomic_or | atomic_xor |
The following extensions enable additional atomic functions using types long and unsigned long:
cl_khr_int64_base_atomics | Optional extensions that implement atomic operations on 64-bit signed and unsigned integers to locations in __global and __local memory. |
cl_khr_int64_extended_atomics | Optional extensions that implement atomic operations on 64-bit signed and unsigned integers to locations in __global and __local memory. |
These transactions are atomic for the device executing these atomic functions. There is no guarantee of atomicity if the atomic operations to the same memory location are being performed by kernels executing on multiple devices.