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
11
# include "
alpaka/atomic/AtomicAtomicRef.hpp
"
12
# include "
alpaka/atomic/AtomicStdLibLock.hpp
"
13
14
namespace
alpaka
15
{
16
# ifndef ALPAKA_DISABLE_ATOMIC_ATOMICREF
17
using
AtomicCpu
=
AtomicAtomicRef
;
18
# else
19
using
AtomicCpu
= AtomicStdLibLock<16>;
20
# endif
// ALPAKA_DISABLE_ATOMIC_ATOMICREF
21
22
}
// namespace alpaka
23
24
#endif
AtomicAtomicRef.hpp
AtomicStdLibLock.hpp
alpaka::AtomicAtomicRef
The atomic ops based on atomic_ref for CPU accelerators.
Definition
AtomicAtomicRef.hpp:42
alpaka
The alpaka accelerator library.
Definition
AccCpuOmp2Blocks.hpp:52
include
alpaka
atomic
AtomicCpu.hpp
Generated on Thu Jun 26 2025 08:02:44 for alpaka by
1.9.8