21.02
|
#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... | |
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_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 115 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 68 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 111 of file CPPTypes.cpp.
unsigned int get_cpu_num | ( | ) | const |
Return the maximum number of CPUs present.
Definition at line 54 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 63 of file CPPTypes.cpp.
Referenced by main().
bool has_fp16 | ( | ) | const |
Checks if the cpu model supports fp16.
Definition at line 58 of file CPPTypes.cpp.
Referenced by main().
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 45 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 97 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 82 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 92 of file CPPTypes.cpp.