10 #include <type_traits>
22 template<
typename TBlockSync,
typename TSfinae =
void>
26 template<
typename TOp,
typename TBlockSync,
typename TSfinae =
void>
35 template<
typename TBlockSync>
54 return currentResult +
static_cast<T
>(value !=
static_cast<T
>(0));
70 return static_cast<T
>(currentResult && (value !=
static_cast<T
>(0)));
86 return static_cast<T
>(currentResult || (value !=
static_cast<T
>(0)));
99 template<
typename TOp,
typename TBlockSync>
#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_FN_HOST_ACC
#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.
The alpaka accelerator library.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto syncBlockThreads(TBlockSync const &blockSync) -> void
Synchronizes all threads within the current block (independently for all blocks).
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto syncBlockThreadsPredicate(TBlockSync const &blockSync, int predicate) -> int
Synchronizes all threads within the current block (independently for all blocks), evaluates the predi...
The logical and function object.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto operator()(T const ¤tResult, T const &value) const -> T
The counting function object.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto operator()(T const ¤tResult, T const &value) const -> T
The logical or function object.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto operator()(T const ¤tResult, T const &value) const -> T
The block synchronization and predicate operation trait.
The block synchronization operation trait.