11 #if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED)
21 # if !defined(ALPAKA_HOST_ONLY)
23 # if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) && !BOOST_LANG_CUDA
24 # error If ALPAKA_ACC_GPU_CUDA_ENABLED is set, the compiler has to support CUDA!
27 # if defined(ALPAKA_ACC_GPU_HIP_ENABLED) && !BOOST_LANG_HIP
28 # error If ALPAKA_ACC_GPU_HIP_ENABLED is set, the compiler has to support HIP!
40 # if BOOST_COMP_CLANG && BOOST_LANG_CUDA && BOOST_COMP_CLANG < BOOST_VERSION_NUMBER(18, 0, 0)
41 return __popc(
static_cast<int>(value));
43 return static_cast<std::int32_t
>(__popc(
static_cast<unsigned int>(value)));
51 # if BOOST_COMP_CLANG && BOOST_LANG_CUDA && BOOST_COMP_CLANG < BOOST_VERSION_NUMBER(18, 0, 0)
52 return __popcll(
static_cast<long long>(value));
54 return static_cast<std::int32_t
>(__popcll(
static_cast<unsigned long long>(value)));
65 return static_cast<std::int32_t
>(__ffs(
static_cast<int>(value)));
71 return static_cast<std::int32_t
>(__ffsll(
static_cast<long long>(value)));
The alpaka accelerator library.
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...