alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
transformReduce.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  alpaka
 main alpaka namespace.
namespace  alpaka::onHost
 Functionality which is usable on the host CPU controller thread.

Functions

template<typename DataType, typename T_Device, alpaka::concepts::QueueKind T_QueueKind>
requires (std::same_as<DataType, alpaka::trait::GetValueType_t<ALPAKA_TYPEOF(out)>>)
void alpaka::onHost::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.
template<typename DataType, typename T_Device, alpaka::concepts::QueueKind T_QueueKind>
requires (std::same_as<DataType, alpaka::trait::GetValueType_t<ALPAKA_TYPEOF(out)>>)
void alpaka::onHost::transformReduce (Queue< T_Device, T_QueueKind > const &queue, DataType const &neutralElement, alpaka::concepts::IMdSpan auto out, auto &&binaryReduceFn, auto &&transformFn, alpaka::concepts::IDataSource auto &&... in)
 An available default executor will be selected automatically.