|
| bool | env_block_size (const char *name, std::size_t &out) |
| | A blocking override from environment variable name: a whole positive decimal that fits in std::size_t (digits only, no sign, space or trailing characters); false otherwise, and the derived value stays.
|
| constexpr std::size_t | ceil_div (std::size_t a, std::size_t b) |
| constexpr std::size_t | round_up (std::size_t n, std::size_t m) |
| constexpr std::size_t | round_down (std::size_t n, std::size_t m) |
| constexpr std::size_t | isqrt_ceil (std::size_t n) |
| template<typename T> |
| constexpr blocking_params | default_blocking_for_target () |
Blocking parameters for T using the compiled SIMD width and the target hardware traits.
Compile-time, and the source of the mr x nr register tile (a micro-kernel template argument) everywhere.
MTL5_GEMM_MR_OVERRIDE=<n> is a DIAGNOSTIC (#643): it sets mr and nothing else, so a tile sweep can put 6x4, 8x4, 10x4 and 12x4 side by side from one source. The model cannot express those directly – vec_registers moves mr in steps of 3/4 of the file over NRVEC – and #351 had to sweep by editing fma_latency/fma_units, which also moves nr. A macro rather than the environment because mr is a template argument; the bench sidecar records it as mr_override, so a run cannot be mistaken for the shipped tile.
| bool mtl::simd::detail::env_block_size |
( |
const char * | name, |
|
|
std::size_t & | out ) |
|
inline |
A blocking override from environment variable name: a whole positive decimal that fits in std::size_t (digits only, no sign, space or trailing characters); false otherwise, and the derived value stays.
It was std::atol into a long, 32 bits on Windows against the std::size_t rule for sizes, which also read "96x" as 96 and an out-of-range value as whatever atol returned (issue 878).