num::kernel::gemm_config¶
Defined in header <kernel/dense.hpp>
template <std::floating_point T>
struct gemm_config;
Block sizes GEMM uses on this target: an mr x nr inner kernel over packed panels.
Members¶
| member | description |
|---|---|
static constexpr idx width = / sizeof(T) |
Elements per vector register. |
static constexpr idx b_vectors = (>= 32 && width <= 2) ? 3 : 2 |
B vectors per microkernel. |
static constexpr idx mr = std::min<idx>(14, ((- b_vectors - 2) / b_vectors) & ~idx{1}) |
Register tile rows. |
static constexpr idx nr = b_vectors * width |
Register tile columns. |
static constexpr idx kc = std::clamp<idx>(detail::round_down((/ 2) / (sizeof(T) * nr), 8), 8, 512) |
Inner block depth; the kc x nr B sliver fills half of L1. |
static constexpr idx mc = std::max<idx>( mr, detail::round_down(std::min<idx>(/ 2, idx{1} << 20) / (sizeof(T) * kc), mr)) |
Packed A rows; the slab fills half of L2. |
static constexpr idx nc = std::max<idx>(nr, detail::round_down(/ (sizeof(T) * kc), nr)) |
Packed B columns. |
static constexpr idx workspace = (mc * kc) + (kc * nc) |
Workspace elements at the largest block sizes. |