The atomic functions are shown below. Click an item in the table below for details about that function.
The optional extension
cl_khr_int64_base_atomics implements atomic operations on 64-bit signed and unsigned integers to locations in
cl_khr_int64_extended_atomics extension enables additional atomic functions using types
An application that wants to use this extension will need to include the
#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable in the OpenCL program source.
As of OpenCL version 1.1,
cl_khr_local_int32_extended_atomics extensions are core features.
The built-in atomic function names are changed to use the
atomic_ prefix instead of
The list of supported atomic type names are:
If the device address space is 64-bits, the data types
atomic_ptrdiff_t are supported if the
cl_khr_int64_extended_atomics extensions are supported.
Arguments to a kernel can be declared to be a pointer to the above atomic types or the
The representation of atomic integer, floating-point and pointer types have the same size as their corresponding regular types.
atomic_flag type must be implemented as a 32-bit integer.