Skip to content

Commit

Permalink
Enable AtomicAtomicRef when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard authored and psychocoderHPC committed Jun 12, 2024
1 parent c753174 commit 73642da
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions include/alpaka/atomic/AtomicCpu.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
/* Copyright 2021 Andrea Bocci, Felice Pantaleo
/* Copyright 2024 Andrea Bocci, Felice Pantaleo
* SPDX-License-Identifier: MPL-2.0
*/

#pragma once

#include <boost/version.hpp>
#include "alpaka/core/BoostPredef.hpp"

#ifndef ALPAKA_DISABLE_ATOMIC_ATOMICREF
# define ALPAKA_DISABLE_ATOMIC_ATOMICREF
#endif
// clang 9 fails at compile time when using boost::atomic_ref
#ifdef BOOST_COMP_CLANG_AVAILABLE
# if BOOST_COMP_CLANG < BOOST_VERSION_NUMBER(11, 0, 0)
# ifndef ALPAKA_DISABLE_ATOMIC_ATOMICREF
# define ALPAKA_DISABLE_ATOMIC_ATOMICREF
# endif
# endif
#endif // BOOST_COMP_CLANG_AVAILABLE

#include "alpaka/atomic/AtomicAtomicRef.hpp"
#include "alpaka/atomic/AtomicStdLibLock.hpp"
Expand Down

0 comments on commit 73642da

Please sign in to comment.