Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Kokkos::atomic_load

Daniel Arndt edited this page May 1, 2020 · 3 revisions

Kokkos::atomic_load

Header File: Kokkos_Core.hpp

Usage:

value = atomic_load(ptr_to_value);

Atomically reads the value at the address given by ptr_to_value.

Synopsis

  template<class T>
  T atomic_load(T* const ptr_to_value);

Description

  • template<class T>
    T atomic_load(T* const ptr_to_value);

    Atomically executes value = *ptr_to_value; return value;.

    • ptr_to_value: address of the to be updated value.
    • value: value at address ptr_to_value.
Clone this wiki locally