Description

  • All operations on atomic types must be performed using the built-in atomic functions. C11 and {cpp11} support operators on atomic types. OpenCL C does not support operators with atomic types. Using atomic types with operators should result in a compilation error.

  • The atomic_bool, atomic_char, atomic_uchar, atomic_short, atomic_ushort, atomic_intmax_t and atomic_uintmax_t types are not supported by OpenCL C.

  • OpenCL C requires that the built-in atomic functions on atomic types are lock-free.

  • The Atomic type specifier and Atomic type qualifier are not supported by OpenCL C.

  • The behavior of atomic operations where pointer arguments to the atomic functions refers to an atomic type in the private address space is undefined.

See Also

Document Notes

For more information, see the OpenCL C Specification

This page is extracted from the OpenCL C Specification. Fixes and changes should be made to the Specification, not directly.

Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.