Kokkos Core Kernels Package Version of the Day
Loading...
Searching...
No Matches
Kokkos_Atomic.hpp File Reference

Atomic functions. More...

#include <Kokkos_Macros.hpp>
#include <Kokkos_Atomics_Desul_Wrapper.hpp>

Go to the source code of this file.

Detailed Description

Atomic functions.

This header file defines prototypes for the following atomic functions:

  • exchange
  • compare and exchange
  • add

Supported types include:

  • signed and unsigned 4 and 8 byte integers
  • float
  • double

They are implemented through GCC compatible intrinsics, OpenMP directives and native CUDA intrinsics.

Including this header file requires one of the following compilers:

  • NVCC (for CUDA device code only)
  • GCC (for host code only)
  • Intel (for host code only)
  • A compiler that supports OpenMP 3.1 (for host code only)

Definition in file Kokkos_Atomic.hpp.