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

CPU identity and the SIMD feature flags that matter for kernel dispatch. More...

#include <system_info.hpp>

Public Attributes

std::string brand
 marketing brand string, e.g. "AMD Ryzen 9 8945HS"
std::string vendor
 "GenuineIntel", "AuthenticAMD", or "" if unknown
std::string arch
 "x86_64", "aarch64", ...
unsigned logical_cores = 0
bool sse2 = false
bool avx = false
bool avx2 = false
bool fma = false
bool avx512f = false

Detailed Description

CPU identity and the SIMD feature flags that matter for kernel dispatch.

logical_cores is the number of hardware threads the OS exposes; physical core / P-E topology is not portably derivable and stays out of scope here.

Member Data Documentation

◆ arch

std::string mtl::util::cpu_info::arch

"x86_64", "aarch64", ...

◆ avx

bool mtl::util::cpu_info::avx = false

◆ avx2

bool mtl::util::cpu_info::avx2 = false

◆ avx512f

bool mtl::util::cpu_info::avx512f = false

◆ brand

std::string mtl::util::cpu_info::brand

marketing brand string, e.g. "AMD Ryzen 9 8945HS"

◆ fma

bool mtl::util::cpu_info::fma = false

◆ logical_cores

unsigned mtl::util::cpu_info::logical_cores = 0

◆ sse2

bool mtl::util::cpu_info::sse2 = false

◆ vendor

std::string mtl::util::cpu_info::vendor

"GenuineIntel", "AuthenticAMD", or "" if unknown


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