21.05
|
#include <CPPTypes.h>
Public Member Functions | |
CPUInfo () | |
Constructor. More... | |
CPUInfo & | operator= (const CPUInfo &cpuinfo)=delete |
Disable copy constructor and assignment operator to avoid copying the vector of CPUs each time CPUInfo is initialized once in the IScheduler and ThreadInfo will get a pointer to it. More... | |
CPUInfo (const CPUInfo &cpuinfo)=delete | |
CPUInfo & | operator= (CPUInfo &&cpuinfo)=default |
CPUInfo (CPUInfo &&cpuinfo)=default | |
bool | has_fp16 () const |
Checks if the cpu model supports fp16. More... | |
bool | has_dotprod () const |
Checks if the cpu model supports dot product. More... | |
bool | has_sve () const |
Checks if the cpu model supports sve. 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... | |
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... | |
void | set_L1_cache_size (unsigned int size) |
Set the L1 cache size. More... | |
void | set_L2_cache_size (unsigned int size) |
Set the L2 cache size. More... | |
void | set_fp16 (const bool fp16) |
Set fp16 support. More... | |
void | set_dotprod (const bool dotprod) |
Set dot product support. More... | |
void | set_sve (const bool sve) |
Set sve support. More... | |
void | set_cpu_model (unsigned int cpuid, CPUModel model) |
Set the cpumodel for a given cpu core. More... | |
void | set_cpu_num (unsigned int cpu_count) |
Set max number of cpus. More... | |
unsigned int | get_cpu_num () const |
Return the maximum number of CPUs present. More... | |
Definition at line 121 of file CPPTypes.h.
CPUInfo | ( | ) |
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 79 of file CPPTypes.cpp.
References arm_compute::GENERIC.
Referenced by NEConvolutionLayer::get_convolution_method(), and main().
CPUModel get_cpu_model | ( | ) | const |
Gets the current thread's cpu model.
Definition at line 122 of file CPPTypes.cpp.
unsigned int get_cpu_num | ( | ) | const |
Return the maximum number of CPUs present.
Definition at line 59 of file CPPTypes.cpp.
Referenced by main().
unsigned int get_L1_cache_size | ( | ) | const |
unsigned int get_L2_cache_size | ( | ) | const |
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 69 of file CPPTypes.cpp.
Referenced by main().
bool has_sve | ( | ) | const |
Checks if the cpu model supports sve.
Definition at line 64 of file CPPTypes.cpp.
Disable copy constructor and assignment operator to avoid copying the vector of CPUs each time CPUInfo is initialized once in the IScheduler and ThreadInfo will get a pointer to it.
void set_cpu_model | ( | unsigned int | cpuid, |
CPUModel | model | ||
) |
Set the cpumodel for a given cpu core.
[in] | cpuid | the id of the core to be set. |
[in] | model | the CPUModel to be set. |
Definition at line 50 of file CPPTypes.cpp.
References ARM_COMPUTE_ERROR_ON.
Referenced by arm_compute::utils::cpu::get_cpu_configuration().
void set_cpu_num | ( | unsigned int | cpu_count | ) |
Set max number of cpus.
[in] | cpu_count | the number of CPUs in the system. |
Definition at line 108 of file CPPTypes.cpp.
Referenced by arm_compute::utils::cpu::get_cpu_configuration().
void set_dotprod | ( | const bool | dotprod | ) |
Set dot product support.
[in] | dotprod | whether the cpu supports dot product. |
Definition at line 40 of file CPPTypes.cpp.
Referenced by arm_compute::utils::cpu::get_cpu_configuration().
void set_fp16 | ( | const bool | fp16 | ) |
Set fp16 support.
[in] | fp16 | whether the cpu supports fp16. |
Definition at line 35 of file CPPTypes.cpp.
Referenced by arm_compute::utils::cpu::get_cpu_configuration().
void set_L1_cache_size | ( | unsigned int | size | ) |
Set the L1 cache size.
[in] | size | the new size to be set. |
Definition at line 93 of file CPPTypes.cpp.
void set_L2_cache_size | ( | unsigned int | size | ) |
Set the L2 cache size.
[in] | size | the new size to be set. |
Definition at line 103 of file CPPTypes.cpp.
void set_sve | ( | const bool | sve | ) |
Set sve support.
[in] | sve | whether the cpu supports sve. |
Definition at line 45 of file CPPTypes.cpp.
Referenced by arm_compute::utils::cpu::get_cpu_configuration().