Template Function poet::dynamic_for(T1, T2, T3, Func&&)

Function Documentation

template<std::size_t Unroll, typename T1, typename T2, typename T3, typename Func>
constexpr void poet::dynamic_for(T1 begin, T2 end, T3 step, Func &&func)

Runs [begin, end) with compile-time unrolled blocks.

func may take (index) or (lane, index), where lane is std::integral_constant<std::size_t, L>. Use the lane form for multi-accumulator kernels; prefer a plain for loop for trivial index-only work.