|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <cstdint>#include <cstring>#include <string>#include <thread>#include <mtl/util/cpuid.hpp>#include <fstream>#include <sys/utsname.h>Classes | |
| struct | mtl::util::cpu_info |
| CPU identity and the SIMD feature flags that matter for kernel dispatch. More... | |
| struct | mtl::util::os_info |
| Operating-system name and a best-effort version/build string. More... | |
| struct | mtl::util::compiler_info |
| Compiler identity, resolved entirely at compile time. More... | |
| struct | mtl::util::system_info |
Namespaces | |
| namespace | mtl |
| namespace | mtl::util |
| namespace | mtl::util::detail |
Macros | |
| #define | MTL5_SYSINFO_X86 MTL5_HAS_X86_CPUID |
Functions | |
| void | mtl::util::detail::fill_cpu_fallback_brand (cpu_info &cpu) |
| os_info | mtl::util::detail::detect_os () |
| compiler_info | mtl::util::detail::detect_compiler () |
| system_info | mtl::util::identify () |
| Detect the current machine's CPU, OS, and compiler identity. | |
| std::string | mtl::util::simd_feature_list (const cpu_info &c) |
| Space-separated list of the detected x86 SIMD features (empty on non-x86). | |
| std::string | mtl::util::build_isa_list () |
| The ISA the BINARY WAS COMPILED FOR, read from the compiler's own predefined macros (empty if none apply). | |
| std::string | mtl::util::to_string (const system_info &si) |
| Human-readable multi-line summary, suitable for a benchmark output header. | |
| std::string | mtl::util::to_keyvals (const system_info &si) |
| Flat, machine-parseable key=value lines – for embedding in CSV headers or building a tag for docs/benchmarks/systems.md. | |
| #define MTL5_SYSINFO_X86 MTL5_HAS_X86_CPUID |