11 #include <type_traits>
23 template<
typename TWarp,
typename TSfinae =
void>
27 template<
typename TWarp,
typename TSfinae =
void>
31 template<
typename TWarp,
typename TSfinae =
void>
35 template<
typename TWarp,
typename TSfinae =
void>
39 template<
typename TWarp,
typename TSfinae =
void>
43 template<
typename TWarp,
typename TSfinae =
void>
47 template<
typename TWarp,
typename TSfinae =
void>
51 template<
typename TWarp,
typename TSfinae =
void>
55 template<
typename TWarp,
typename TSfinae =
void>
64 template<
typename TWarp>
89 template<
typename TWarp>
113 template<
typename TWarp>
136 template<
typename TWarp>
163 template<
typename TWarp>
197 template<
typename TWarp,
typename T>
198 ALPAKA_FN_ACC auto shfl(TWarp
const& warp, T value, std::int32_t srcLane, std::int32_t width = 0)
235 template<
typename TWarp,
typename T>
273 template<
typename TWarp,
typename T>
311 template<
typename TWarp,
typename T>
#define ALPAKA_FN_ACC
All functions that can be used on an accelerator have to be attributed with ALPAKA_FN_ACC or ALPAKA_F...
#define ALPAKA_NO_HOST_ACC_WARNING
Disable nvcc warning: 'calling a host function from host device function.' Usage: ALPAKA_NO_HOST_ACC_...
typename detail::ImplementationBaseType< TInterface, TDerived >::type ImplementationBase
Returns the type that implements the given interface in the inheritance hierarchy.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto all(TWarp const &warp, std::int32_t predicate) -> std::int32_t
Evaluates predicate for all active threads of the warp and returns non-zero if and only if predicate ...
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto ballot(TWarp const &warp, std::int32_t predicate)
Evaluates predicate for all non-exited threads in a warp and returns a 32- or 64-bit unsigned integer...
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto shfl_up(TWarp const &warp, T value, std::uint32_t offset, std::int32_t width=0)
Exchange data between threads within a warp. It copies from a lane with lower ID relative to caller....
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto any(TWarp const &warp, std::int32_t predicate) -> std::int32_t
Evaluates predicate for all active threads of the warp and returns non-zero if and only if predicate ...
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto shfl_down(TWarp const &warp, T value, std::uint32_t offset, std::int32_t width=0)
Exchange data between threads within a warp. It copies from a lane with higher ID relative to caller....
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto activemask(TWarp const &warp) -> decltype(trait::Activemask< interface::ImplementationBase< ConceptWarp, TWarp >>::activemask(warp))
Returns a 32- or 64-bit unsigned integer (depending on the accelerator) whose Nth bit is set if and o...
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto getSize(TWarp const &warp) -> std::int32_t
Returns warp size.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto shfl_xor(TWarp const &warp, T value, std::int32_t mask, std::int32_t width=0)
Exchange data between threads within a warp. It copies from a lane based on bitwise XOR of own lane I...
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto shfl(TWarp const &warp, T value, std::int32_t srcLane, std::int32_t width=0)
Exchange data between threads within a warp.
The ballot warp vote trait.
The shfl down warp swizzling trait.
The shfl up warp swizzling trait.
The shfl xor warp swizzling trait.
The shfl warp swizzling trait.