alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::onAcc::traverse::Flat Struct Reference

Linearize the index domain for traversing. More...

#include <traverse.hpp>

Static Public Member Functions

static ALPAKA_FN_HOST_ACC constexpr auto make (auto const &idxRange, auto const &threadSpace, auto const &idxLayout, alpaka::concepts::CVector auto const &cSelect)

Detailed Description

Linearize the index domain for traversing.

Maps each linear index into the M-dimensional index space. Mapping the linear index to a MD-index is increasing the computations (usage of multiplications and additions) and can therefore slow down the performance.

Definition at line 21 of file traverse.hpp.

Member Function Documentation

◆ make()

ALPAKA_FN_HOST_ACC constexpr auto alpaka::onAcc::traverse::Flat::make ( auto const & idxRange,
auto const & threadSpace,
auto const & idxLayout,
alpaka::concepts::CVector auto const & cSelect )
inlinestaticconstexpr

Definition at line 23 of file traverse.hpp.


The documentation for this struct was generated from the following file: