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

Everything the threaded nest decides for one call: the ic step it will actually use, the block counts that follow, and the thread grid. More...

#include <gemm_blocked.hpp>

Public Attributes

std::size_t mc
 ic step actually used (post-cap, post-balance)
std::size_t nc
 jc step actually used (the selected model's, #479)
std::size_t nib
 ic blocks that mc produces
std::size_t njb
 jc blocks
unsigned ic_nt
 ic threads (1 when the nest runs serially)
unsigned jc_nt
 jc teams (1 when the nest runs serially)
unsigned budget
 threads the pool actually allowed
nc_model model
 which nc model produced nc

Detailed Description

Everything the threaded nest decides for one call: the ic step it will actually use, the block counts that follow, and the thread grid.

This exists so the decision has ONE implementation and can be RECORDED. Three stages separate the configured mc from the one the loops step by – the L2 bound in blocking_params, the budget cap in plan_gemm_grid, and the round-off in balanced_mc – and a benchmark that writes the first of them writes a number no loop ever saw. The committed A/B data (#430) records mc=213 for i7 runs whose nest stepped 210 single-threaded and 128 on eight threads, which left the parameter under test unrecoverable from the record.

Member Data Documentation

◆ budget

unsigned mtl::detail::gemm_plan::budget

threads the pool actually allowed

◆ ic_nt

unsigned mtl::detail::gemm_plan::ic_nt

ic threads (1 when the nest runs serially)

◆ jc_nt

unsigned mtl::detail::gemm_plan::jc_nt

jc teams (1 when the nest runs serially)

◆ mc

std::size_t mtl::detail::gemm_plan::mc

ic step actually used (post-cap, post-balance)

◆ model

nc_model mtl::detail::gemm_plan::model

which nc model produced nc

◆ nc

std::size_t mtl::detail::gemm_plan::nc

jc step actually used (the selected model's, #479)

◆ nib

std::size_t mtl::detail::gemm_plan::nib

ic blocks that mc produces

◆ njb

std::size_t mtl::detail::gemm_plan::njb

jc blocks


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