alpaka
Abstraction Library for Parallel Kernel Acceleration
AtomicCpu.hpp
Go to the documentation of this file.
1 /* Copyright 2021 Andrea Bocci, Felice Pantaleo
2  * SPDX-License-Identifier: MPL-2.0
3  */
4 
5 #pragma once
6 
7 #include <boost/version.hpp>
8 
9 #ifndef ALPAKA_DISABLE_ATOMIC_ATOMICREF
10 # define ALPAKA_DISABLE_ATOMIC_ATOMICREF
11 #endif
12 
15 
16 namespace alpaka
17 {
18 #ifndef ALPAKA_DISABLE_ATOMIC_ATOMICREF
19  using AtomicCpu = AtomicAtomicRef;
20 #else
21  using AtomicCpu = AtomicStdLibLock<16>;
22 #endif // ALPAKA_DISABLE_ATOMIC_ATOMICREF
23 
24 } // namespace alpaka
The alpaka accelerator library.
AtomicStdLibLock< 16 > AtomicCpu
Definition: AtomicCpu.hpp:21