alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
AtomicCpu.hpp
Go to the documentation of this file.
1/* Copyright 2025 Andrea Bocci, Felice Pantaleo
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
7#if defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED) || defined(ALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLED) \
8 || defined(ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED) || defined(ALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLED) \
9 || defined(ALPAKA_ACC_CPU_B_TBB_T_SEQ_ENABLED)
10
13
14namespace alpaka
15{
16# ifndef ALPAKA_DISABLE_ATOMIC_ATOMICREF
18# else
19 using AtomicCpu = AtomicStdLibLock<16>;
20# endif // ALPAKA_DISABLE_ATOMIC_ATOMICREF
21
22} // namespace alpaka
23
24#endif
The atomic ops based on atomic_ref for CPU accelerators.
The alpaka accelerator library.