alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
iota.hpp File Reference
#include "alpaka/api/trait.hpp"
#include "alpaka/onHost/algo/internal/iota.hpp"
#include <type_traits>

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 T_DataType, typename T_Device, alpaka::concepts::QueueKind T_QueueKind>
requires ( std::is_convertible_v<T_DataType, alpaka::trait::GetValueType_t<ALPAKA_TYPEOF(out0)>> && std::conjunction_v< std::is_convertible<T_DataType, typename alpaka::trait::GetValueType_t<ALPAKA_TYPEOF(outOther)>>...>)
void alpaka::onHost::iota (Queue< T_Device, T_QueueKind > const &queue, alpaka::concepts::Executor auto const exec, T_DataType const &initValue, alpaka::concepts::IMdSpan auto &&out0, alpaka::concepts::IMdSpan auto &&... outOther)
 Fill data with sequentially increasing index (iota value).
template<typename T_DataType, typename T_Device, alpaka::concepts::QueueKind T_QueueKind>
requires ( std::is_convertible_v<T_DataType, alpaka::trait::GetValueType_t<ALPAKA_TYPEOF(out0)>> && std::conjunction_v< std::is_convertible<T_DataType, typename alpaka::trait::GetValueType_t<ALPAKA_TYPEOF(outOther)>>...>)
void alpaka::onHost::iota (Queue< T_Device, T_QueueKind > const &queue, T_DataType const &initValue, alpaka::concepts::IMdSpan auto &&out0, alpaka::concepts::IMdSpan auto &&... outOther)
 An available default executor will be selected automatically.