Atomics
Types
Type | Definition | Notes |
---|---|---|
atomic<cl::sycl::cl_float> |
atomic float object with default global address space |
|
atomic<cl::sycl::cl_int> |
atomic int object with default global address space |
|
atomic<cl::sycl::cl_uint> |
atomic unsigned int object with default global address space |
Enumerations
Only relaxed memory order is supported in SYCL 1.2.1 |
Classes
Implementation of the SYCL atomic class according to 1.2 spec. (section 3.8). On host, calls C++ atomic functions on an std::atomic; on device uses SPIR-mangled OpenCL 1.2 functions to achieve same result. |
|
Retrieves the address space, suitable for use in an atomic, from the access::target::local access target |
|
Retrieves the address space, suitable for use in an atomic, from the access target. |
Functions
Global function atomic_compare_exchange. Calls compare_exchange on SYCL atomic object. |
|
Global function atomic_exchange. Calls exchange on SYCL atomic object. |
|
Global function atomic_add. Calls add on SYCL atomic object. |
|
Global function atomic_and. Calls and on SYCL atomic object. |
|
Global function atomic_max. Calculates max(object, operand), storing the result in object. |
|
Global function atomic_min. Calculates min(object, operand), storing the result in object. |
|
Global function atomic_or. Calls or on SYCL atomic object. |
|
Global function atomic_sub. Calls sub on SYCL atomic object. |
|
Global function atomic_xor. Calls xor on SYCL atomic object. |
|
Returns *object |
|
Global function atomic_store. Calls store on SYCL atomic object. |