59 template<
typename DataType,
typename T_Device, alpaka::concepts::QueueKind T_QueueKind>
63 DataType
const& neutralElement,
65 auto&& binaryReduceFn,
96 template<
typename DataType,
typename T_Device, alpaka::concepts::QueueKind T_QueueKind>
99 DataType
const& neutralElement,
101 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.
void transformReduce(auto const &queue, alpaka::concepts::Executor auto const exec, T_DataType const &neutralElement, alpaka::concepts::IMdSpan auto out, auto &&reduceFn, auto &&transformFn, auto &&in0, alpaka::concepts::IDataSource auto &&... in)
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 transformReduce(Queue< T_Device, T_QueueKind > const &queue, alpaka::concepts::Executor auto const exec, DataType const &neutralElement, alpaka::concepts::IMdSpan auto out, auto &&binaryReduceFn, auto &&transformFn, alpaka::concepts::IDataSource auto &&... in)
Transform the input data with the given function and accumulate the results into a scalar value.
typename GetValueType< T >::type GetValueType_t