24.02.1
|
#include <CPPTypes.h>
Public Member Functions | |
CPUInfo (CPUInfo const &)=delete | |
CPUInfo (CPUInfo &&)=delete | |
CPUInfo & | operator= (CPUInfo const &)=delete |
CPUInfo & | operator= (CPUInfo &&)=delete |
bool | has_fp16 () const |
Checks if the cpu model supports fp16. More... | |
bool | has_bf16 () const |
Checks if the cpu model supports bf16. More... | |
bool | has_svebf16 () const |
Checks if the cpu model supports bf16. More... | |
bool | has_dotprod () const |
Checks if the cpu model supports dot product. More... | |
bool | has_svef32mm () const |
Checks if the cpu model supports floating-point matrix multiplication. More... | |
bool | has_i8mm () const |
Checks if the cpu model supports integer matrix multiplication. More... | |
bool | has_svei8mm () const |
Checks if the cpu model supports integer matrix multiplication. More... | |
bool | has_sve () const |
Checks if the cpu model supports sve. More... | |
bool | has_sve2 () const |
Checks if the cpu model supports sve2. More... | |
bool | has_sme () const |
Checks if the cpu model supports sme. More... | |
bool | has_sme2 () const |
Checks if the cpu model supports sme2. More... | |
CPUModel | get_cpu_model (unsigned int cpuid) const |
Gets the cpu model for a given cpuid. More... | |
CPUModel | get_cpu_model () const |
Gets the current thread's cpu model. More... | |
cpuinfo::CpuIsaInfo | get_isa () const |
Gets the current cpu's ISA information. More... | |
unsigned int | get_L1_cache_size () const |
Gets the L1 cache size. More... | |
unsigned int | get_L2_cache_size () const |
Gets the L2 cache size. More... | |
unsigned int | get_cpu_num () const |
Return the maximum number of CPUs present. More... | |
Static Public Member Functions | |
static CPUInfo & | get () |
Access the KernelLibrary singleton. More... | |
Definition at line 66 of file CPPTypes.h.
|
static |
Access the KernelLibrary singleton.
This method has been deprecated and will be removed in future releases
Definition at line 41 of file CPPTypes.cpp.
Referenced by CpuFloorKernel::configure(), CpuSoftmaxKernel::configure(), CpuPool2dKernel::configure(), CpuActivationKernel::configure(), CpuMaxUnpoolingLayerKernel::configure(), CpuElementwiseUnaryKernel::configure(), CpuPool3dKernel::configure(), CpuSubKernel::configure(), CpuGemmMatrixAdditionKernel::configure(), CpuAddMulAddKernel::configure(), CpuDirectConv3dKernel::configure(), CpuDepthwiseConv2dNativeKernel::configure(), NEFuseBatchNormalizationKernel::configure(), CpuGemmMatrixMultiplyKernel::configure(), CpuScaleKernel::configure(), CpuAddKernel::configure(), IScheduler::cpu_info(), arm_compute::error_on_unsupported_cpu_bf16(), arm_compute::error_on_unsupported_cpu_fp16(), arm_compute::scale_utils::is_precomputation_required(), NEBatchNormalizationLayerKernel::run(), CpuDirectConv2dKernel::run_op(), CpuCastKernel::run_op(), and CpuElementwiseUnaryKernel::validate().
CPUModel get_cpu_model | ( | ) | const |
Gets the current thread's cpu model.
Definition at line 114 of file CPPTypes.cpp.
CPUModel get_cpu_model | ( | unsigned int | cpuid | ) | const |
Gets the cpu model for a given cpuid.
[in] | cpuid | the id of the cpu core to be retrieved, |
Definition at line 119 of file CPPTypes.cpp.
Referenced by CpuSubKernel::get_mws(), CpuAddKernel::get_mws(), CpuMulKernel::get_mws(), CpuArithmeticKernel::get_mws(), CpuDivisionKernel::get_mws(), and main().
unsigned int get_cpu_num | ( | ) | const |
Return the maximum number of CPUs present.
Definition at line 54 of file CPPTypes.cpp.
Referenced by main().
cpuinfo::CpuIsaInfo get_isa | ( | ) | const |
Gets the current cpu's ISA information.
Definition at line 124 of file CPPTypes.cpp.
Referenced by CpuPool2dKernel::configure(), NEFuseBatchNormalizationKernel::configure(), CpuDepthwiseConv2dNativeKernel::configure(), and CpuCastKernel::run_op().
unsigned int get_L1_cache_size | ( | ) | const |
Gets the L1 cache size.
Definition at line 129 of file CPPTypes.cpp.
unsigned int get_L2_cache_size | ( | ) | const |
Gets the L2 cache size.
Definition at line 134 of file CPPTypes.cpp.
bool has_bf16 | ( | ) | const |
Checks if the cpu model supports bf16.
Definition at line 64 of file CPPTypes.cpp.
Referenced by arm_compute::error_on_unsupported_cpu_bf16(), and main().
bool has_dotprod | ( | ) | const |
Checks if the cpu model supports dot product.
Definition at line 74 of file CPPTypes.cpp.
Referenced by main().
bool has_fp16 | ( | ) | const |
Checks if the cpu model supports fp16.
Definition at line 59 of file CPPTypes.cpp.
Referenced by arm_compute::error_on_unsupported_cpu_fp16(), and main().
bool has_i8mm | ( | ) | const |
Checks if the cpu model supports integer matrix multiplication.
Definition at line 84 of file CPPTypes.cpp.
Referenced by main().
bool has_sme | ( | ) | const |
Checks if the cpu model supports sme.
Definition at line 104 of file CPPTypes.cpp.
Referenced by main().
bool has_sme2 | ( | ) | const |
Checks if the cpu model supports sme2.
Definition at line 109 of file CPPTypes.cpp.
Referenced by main().
bool has_sve | ( | ) | const |
Checks if the cpu model supports sve.
Definition at line 94 of file CPPTypes.cpp.
Referenced by main().
bool has_sve2 | ( | ) | const |
Checks if the cpu model supports sve2.
Definition at line 99 of file CPPTypes.cpp.
Referenced by main().
bool has_svebf16 | ( | ) | const |
Checks if the cpu model supports bf16.
Definition at line 69 of file CPPTypes.cpp.
Referenced by main().
bool has_svef32mm | ( | ) | const |
Checks if the cpu model supports floating-point matrix multiplication.
Definition at line 79 of file CPPTypes.cpp.
Referenced by main().
bool has_svei8mm | ( | ) | const |
Checks if the cpu model supports integer matrix multiplication.
Definition at line 89 of file CPPTypes.cpp.
Referenced by main().