Skip to content

Commit

Permalink
fix CI: nvcc + clang compile
Browse files Browse the repository at this point in the history
- disable atomic_ref for clang<=11&nvcc<11.6

This PR fix current CI issues with clang + nvcc.
  • Loading branch information
psychocoderHPC authored and fwyzard committed Jun 19, 2024
1 parent 20fbb60 commit 217120b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/alpaka/atomic/AtomicCpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

#include "alpaka/core/BoostPredef.hpp"

// clang 9 fails at compile time when using boost::atomic_ref
// clang 9/10/11 together with nvcc<11.6.0 as host compiler 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
# if(BOOST_COMP_CLANG < BOOST_VERSION_NUMBER(12, 0, 0) && BOOST_COMP_NVCC \
&& BOOST_COMP_NVCC < BOOST_VERSION_NUMBER(11, 6, 0))
# if !defined(ALPAKA_DISABLE_ATOMIC_ATOMICREF)
# define ALPAKA_DISABLE_ATOMIC_ATOMICREF
# endif
# endif
Expand Down

0 comments on commit 217120b

Please sign in to comment.