MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::quad_int_dot Concept Reference

Does dot<Accumulator, Result>(v1, v2) name the quad-widening 8-bit kernel? More...

#include <dot.hpp>

Concept definition

template<typename Accumulator, typename Result, typename V1, typename V2>
std::is_same_v<Accumulator, simd::quad_accumulator_t<typename V1::value_type,
typename V2::value_type>> &&
std::is_same_v<Result, Accumulator>
Concept satisfied by dense vector types of an 8-bit element that the quad multiply-accumulate can wid...
Definition dispatch_traits.hpp:197
Does dot<Accumulator, Result>(v1, v2) name the quad-widening 8-bit kernel?
Definition dot.hpp:38
Is (A, B) a quad-widening pair the hardware op accepts?
Definition batch.hpp:169
typename quad_accumulator< A, B >::type quad_accumulator_t
Definition batch.hpp:165

Detailed Description

Does dot<Accumulator, Result>(v1, v2) name the quad-widening 8-bit kernel?

Unlike the 16-bit predicate this does NOT require the two element types to match: (uint8, int8) is VNNI's native pairing and the one quantized inference actually uses. quad_accumulator decides which pairings exist and what each accumulates into, so the predicate defers to it rather than restating the rule.