28 template<
typename DataType,
typename T_Device, alpaka::concepts::QueueKind T_QueueKind>
32 DataType
const& neutralElement,
34 auto&& binaryReduceFn,
39 internal::transformReduce(
49 internal::transformReduce(
63 template<
typename DataType,
typename T_Device, alpaka::concepts::QueueKind T_QueueKind>
66 DataType
const& neutralElement,
68 auto&& binaryReduceFn,
#define ALPAKA_TYPEOF(...)
Get the type of instance.
#define ALPAKA_FORWARD(instance)
Perfectly forward an instance as argument.
Concept to check for an executor.
Interface concept for objects describing multidimensional memory access.
constexpr AnyExecutor anyExecutor
Automatic executor selection.
Functionality which is usable on the host CPU controller thread.
constexpr auto defaultExecutor(internal::concepts::DeviceHandle auto deviceHandle)
Select a default executor for the given device.
void reduce(Queue< T_Device, T_QueueKind > const &queue, alpaka::concepts::Executor auto const exec, DataType const &neutralElement, alpaka::concepts::IMdSpan auto out, auto &&binaryReduceFn, auto &&in)
accumulate the results into a scalar value.
typename GetValueType< T >::type GetValueType_t