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

fetch_min

Atomically compare operand to *m_data, storing the smaller of the two in *m_data.


T fetch_min(T operand, cl::sycl::memory_order mem_order) volatile
(1)
  1. Atomically compare operand to *m_data, storing the smaller of the two in *m_data.
    Parameters:
    • T operand : the value to compare to *m_data.
    • cl::sycl::memory_order mem_order : the ordering to use. Can only be memory_order_relaxed.
    Returns: the old value of *m_data.

syclreference.com — SYCL Reference Pages

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