![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
#include "alpaka/api/trait.hpp"#include "alpaka/mem/concepts/IDataStorage.hpp"#include "alpaka/onHost/algo/internal/transformReduce.hpp"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::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. | |
| 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::reduce (Queue< T_Device, T_QueueKind > const &queue, DataType const &neutralElement, alpaka::concepts::IMdSpan auto out, auto &&binaryReduceFn, alpaka::concepts::IDataSource auto &&in) |
| A available default executor will be selected automatically. | |