24.02.1
|
Aggregate class that contains CPU related information. More...
#include <CpuInfo.h>
Public Member Functions | |
CpuInfo ()=default | |
Default constructor. More... | |
CpuInfo (CpuIsaInfo isa, std::vector< CpuModel > cpus) | |
Construct a new Cpu Info object. More... | |
bool | has_neon () const |
bool | has_sve () const |
bool | has_sve2 () const |
bool | has_sme () const |
bool | has_sme2 () const |
bool | has_fp16 () const |
bool | has_bf16 () const |
bool | has_svebf16 () const |
bool | has_dotprod () const |
bool | has_i8mm () const |
bool | has_svei8mm () const |
bool | has_svef32mm () const |
const CpuIsaInfo & | isa () const |
const std::vector< CpuModel > & | cpus () const |
CpuModel | cpu_model (uint32_t cpuid) const |
CpuModel | cpu_model () const |
uint32_t | num_cpus () const |
Static Public Member Functions | |
static CpuInfo | build () |
CpuInfo builder function from system related information. More... | |
Aggregate class that contains CPU related information.
Contains information about the numbers of the CPUs, the model of each CPU, ISA related information and more
|
default |
Default constructor.
CpuInfo | ( | CpuIsaInfo | isa, |
std::vector< CpuModel > | cpus | ||
) |
Construct a new Cpu Info object.
[in] | isa | ISA capabilities information |
[in] | cpus | CPU models information |
Definition at line 301 of file CpuInfo.cpp.
|
static |
CpuInfo builder function from system related information.
Definition at line 305 of file CpuInfo.cpp.
References ARM_COMPUTE_CPU_FEATURE_HWCAP_CPUID, ARM_COMPUTE_GET_FEATURE_REG, CpuIsaInfo::dot, arm_compute::mlgo::parser::end(), CpuIsaInfo::fp16, arm_compute::test::validation::info, arm_compute::cpuinfo::init_cpu_isa_from_hwcaps(), arm_compute::cpuinfo::init_cpu_isa_from_regs(), CpuInfo::isa(), arm_compute::cpuinfo::midr_to_model(), and CpuIsaInfo::neon.
CpuModel cpu_model | ( | ) | const |
Definition at line 388 of file CpuInfo.cpp.
CpuModel cpu_model | ( | uint32_t | cpuid | ) | const |
Definition at line 379 of file CpuInfo.cpp.
|
inline |
|
inline |
Definition at line 86 of file CpuInfo.h.
References CpuIsaInfo::bf16.
|
inline |
Definition at line 94 of file CpuInfo.h.
References CpuIsaInfo::dot.
Referenced by arm_compute::test::validation::TEST_CASE().
|
inline |
Definition at line 82 of file CpuInfo.h.
References CpuIsaInfo::fp16.
Referenced by arm_compute::test::validation::TEST_CASE().
|
inline |
Definition at line 98 of file CpuInfo.h.
References CpuIsaInfo::i8mm.
Referenced by arm_compute::test::validation::TEST_CASE().
|
inline |
Definition at line 62 of file CpuInfo.h.
References CpuIsaInfo::neon.
Referenced by arm_compute::test::validation::TEST_CASE().
|
inline |
|
inline |
Definition at line 78 of file CpuInfo.h.
References CpuIsaInfo::sme2.
|
inline |
|
inline |
Definition at line 70 of file CpuInfo.h.
References CpuIsaInfo::sve2.
Referenced by arm_compute::test::validation::TEST_CASE().
|
inline |
Definition at line 90 of file CpuInfo.h.
References CpuIsaInfo::svebf16.
|
inline |
Definition at line 106 of file CpuInfo.h.
References CpuIsaInfo::svef32mm.
|
inline |
Definition at line 102 of file CpuInfo.h.
References CpuIsaInfo::svei8mm.
|
inline |
Definition at line 111 of file CpuInfo.h.
Referenced by CpuInfo::build().
uint32_t num_cpus | ( | ) | const |
Definition at line 398 of file CpuInfo.cpp.