MeVisLab Toolbox Reference
|
CPU information. More...
#include <macCPUInfo.h>
Public Types | |
enum | CPUType { CPUTypeUnknown = -1 , CPUTypePPC , CPUTypePPC64 , CPUTypeI386 , CPUTypeX86_64 , CPUTypeARM , CPUTypeARM_64 } |
CPU types. More... | |
Static Public Member Functions | |
static CPUType | getCPUType () |
Return CPU type. More... | |
static bool | is64BitCapable () |
Check if 64 bit support is present. More... | |
static bool | isMMXPresent () |
Check if MMX vector instructions are present. More... | |
static bool | isSSEPresent () |
Check if Streaming SIMD Extensions are present. More... | |
static bool | isSSE2Present () |
Check if Streaming SIMD Extensions 2 are present. More... | |
static bool | isSSE3Present () |
Check if Streaming SIMD Extensions 3 are present. More... | |
static bool | isSSSE3Present () |
Check if Supplemental Streaming SIMD Extensions 3 are present. More... | |
static bool | isSSE4_1Present () |
Check if Streaming SIMD Extensions 4.1 are present. More... | |
static bool | isSSE4_2Present () |
Check if Streaming SIMD Extensions 4.2 are present. More... | |
static bool | isAVX1Present () |
Check if AVX1 instructions are present and enabled in the OS. More... | |
static bool | isAVX2Present () |
Check if AVX2 instructions are present and enabled in the OS. More... | |
static bool | isAESPresent () |
Check if AES Extensions are present. More... | |
static uint64_t | getCPUFrequency () |
Get CPU frequency in hertz. More... | |
static uint64_t | getL1CacheSize () |
Get first level cache size in bytes. More... | |
static uint64_t | getL2CacheSize () |
Get second level cache size in bytes. More... | |
static uint64_t | getL3CacheSize () |
Get third level cache size in bytes. More... | |
static unsigned int | getVirtualCoresCount () |
Return number of virtual cpus per processor package. More... | |
static std::string | getCPUVendor () |
Return CPU vendor string e.g. More... | |
static std::string | getCPUBrandString () |
Return CPU brand string e.g. More... | |
CPU information.
Definition at line 28 of file macCPUInfo.h.
CPU types.
Enumerator | |
---|---|
CPUTypeUnknown | unknown CPU |
CPUTypePPC | PPC. |
CPUTypePPC64 | 64-bit PPC |
CPUTypeI386 | I386. |
CPUTypeX86_64 | 64-bit X86 |
CPUTypeARM | 32-bit ARM |
CPUTypeARM_64 | 64-bit ARM |
Definition at line 33 of file macCPUInfo.h.
|
inlinestatic |
Return CPU brand string e.g.
Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Definition at line 136 of file macCPUInfo.h.
References macos::SysCtl::stringByName().
|
inlinestatic |
Get CPU frequency in hertz.
Definition at line 102 of file macCPUInfo.h.
References macos::SysCtl::uint64ByName().
|
static |
Return CPU type.
|
inlinestatic |
Return CPU vendor string e.g.
GenuineIntel
Definition at line 130 of file macCPUInfo.h.
References macos::SysCtl::stringByName().
|
inlinestatic |
Get first level cache size in bytes.
Definition at line 107 of file macCPUInfo.h.
References macos::SysCtl::uint64ByName().
|
inlinestatic |
Get second level cache size in bytes.
Definition at line 113 of file macCPUInfo.h.
References macos::SysCtl::uint64ByName().
|
inlinestatic |
Get third level cache size in bytes.
Definition at line 118 of file macCPUInfo.h.
References macos::SysCtl::uint64ByName().
|
inlinestatic |
Return number of virtual cpus per processor package.
Definition at line 123 of file macCPUInfo.h.
References macos::SysCtl::uint32ByName().
|
inlinestatic |
Check if 64 bit support is present.
Definition at line 47 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if AES Extensions are present.
Definition at line 97 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if AVX1 instructions are present and enabled in the OS.
Definition at line 87 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if AVX2 instructions are present and enabled in the OS.
Definition at line 92 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if MMX vector instructions are present.
Definition at line 52 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if Streaming SIMD Extensions 2 are present.
Definition at line 62 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if Streaming SIMD Extensions 3 are present.
Definition at line 67 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if Streaming SIMD Extensions 4.1 are present.
Definition at line 77 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if Streaming SIMD Extensions 4.2 are present.
Definition at line 82 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if Streaming SIMD Extensions are present.
Definition at line 57 of file macCPUInfo.h.
References macos::SysCtl::boolByName().
|
inlinestatic |
Check if Supplemental Streaming SIMD Extensions 3 are present.
Definition at line 72 of file macCPUInfo.h.
References macos::SysCtl::boolByName().