E.V.E
v2023.02.15
Loading...
Searching...
No Matches

Detailed Description

Disables loop unrolling.

Variables

constexpr auto eve::algo::no_unrolling = unroll<1>

Variable Documentation

◆ no_unrolling

auto eve::algo::no_unrolling = unroll<1>
inlineconstexpr
Header file #include <eve/module/algo.hpp>
namespace eve::algo
{
inline constexpr auto no_unrolling = eve_implementation_defined;
}
constexpr auto no_unrolling
Definition traits.hpp:499

Disables loop unrolling: a loop step is a single SIMD register, as with unroll<1>. The effect of unrolling is described on eve::algo::unroll.

std::vector<float> data(1024);
// One register a step: the body is long enough on its own.
transform_inplace[no_unrolling](data, [](auto x) { return eve::exp(x); });
constexpr auto transform_inplace
same as;
Definition transform.hpp:72
constexpr auto exp
elementwise_callable object computing .
Definition exp.hpp:89
See also
unroll, expensive_callable