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

store

Atomically store operand in m_data. Calls C++11 equivalent on host, on device it calls exchange, discarding the result.


void store(T operand, cl::sycl::memory_order mem_order) volatile
(1)
  1. Atomically store operand in m_data. Calls C++11 equivalent on host, on device it calls exchange, discarding the result.
    Parameters:
    • T operand : the value to store in m_data.
    • cl::sycl::memory_order mem_order : the ordering to use. Can only be memory_order_relaxed.

syclreference.com — SYCL Reference Pages

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