syclreference.com
  1. SYCL
  2. | API Reference
  3. | Atomics
  4. | atomic
  5. | load

load

Atomically load from m_data. Calls C++11 equivalent on host, on device it either calls atomic_add with operand = 0, discarding the result.


T load(cl::sycl::memory_order mem_order) const volatile
(1)
  1. Atomically load from m_data. Calls C++11 equivalent on host, on device it either calls atomic_add with operand = 0, discarding the result.
    Parameters:
    • cl::sycl::memory_order mem_order : the ordering to use. Can only be memory_order_relaxed.
    Returns: The value loaded from m_data.

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000