MeVisLab Toolbox Reference
macos::CPUInfo Class 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...
 

Detailed Description

CPU information.

Definition at line 28 of file macCPUInfo.h.

Member Enumeration Documentation

◆ CPUType

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.

Member Function Documentation

◆ getCPUBrandString()

static std::string macos::CPUInfo::getCPUBrandString ( )
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().

◆ getCPUFrequency()

static uint64_t macos::CPUInfo::getCPUFrequency ( )
inlinestatic

Get CPU frequency in hertz.

Definition at line 102 of file macCPUInfo.h.

References macos::SysCtl::uint64ByName().

◆ getCPUType()

static CPUType macos::CPUInfo::getCPUType ( )
static

Return CPU type.

◆ getCPUVendor()

static std::string macos::CPUInfo::getCPUVendor ( )
inlinestatic

Return CPU vendor string e.g.

GenuineIntel

Definition at line 130 of file macCPUInfo.h.

References macos::SysCtl::stringByName().

◆ getL1CacheSize()

static uint64_t macos::CPUInfo::getL1CacheSize ( )
inlinestatic

Get first level cache size in bytes.

Definition at line 107 of file macCPUInfo.h.

References macos::SysCtl::uint64ByName().

◆ getL2CacheSize()

static uint64_t macos::CPUInfo::getL2CacheSize ( )
inlinestatic

Get second level cache size in bytes.

Definition at line 113 of file macCPUInfo.h.

References macos::SysCtl::uint64ByName().

◆ getL3CacheSize()

static uint64_t macos::CPUInfo::getL3CacheSize ( )
inlinestatic

Get third level cache size in bytes.

Definition at line 118 of file macCPUInfo.h.

References macos::SysCtl::uint64ByName().

◆ getVirtualCoresCount()

static unsigned int macos::CPUInfo::getVirtualCoresCount ( )
inlinestatic

Return number of virtual cpus per processor package.

Definition at line 123 of file macCPUInfo.h.

References macos::SysCtl::uint32ByName().

◆ is64BitCapable()

static bool macos::CPUInfo::is64BitCapable ( )
inlinestatic

Check if 64 bit support is present.

Definition at line 47 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isAESPresent()

static bool macos::CPUInfo::isAESPresent ( )
inlinestatic

Check if AES Extensions are present.

Definition at line 97 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isAVX1Present()

static bool macos::CPUInfo::isAVX1Present ( )
inlinestatic

Check if AVX1 instructions are present and enabled in the OS.

Definition at line 87 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isAVX2Present()

static bool macos::CPUInfo::isAVX2Present ( )
inlinestatic

Check if AVX2 instructions are present and enabled in the OS.

Definition at line 92 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isMMXPresent()

static bool macos::CPUInfo::isMMXPresent ( )
inlinestatic

Check if MMX vector instructions are present.

Definition at line 52 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isSSE2Present()

static bool macos::CPUInfo::isSSE2Present ( )
inlinestatic

Check if Streaming SIMD Extensions 2 are present.

Definition at line 62 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isSSE3Present()

static bool macos::CPUInfo::isSSE3Present ( )
inlinestatic

Check if Streaming SIMD Extensions 3 are present.

Definition at line 67 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isSSE4_1Present()

static bool macos::CPUInfo::isSSE4_1Present ( )
inlinestatic

Check if Streaming SIMD Extensions 4.1 are present.

Definition at line 77 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isSSE4_2Present()

static bool macos::CPUInfo::isSSE4_2Present ( )
inlinestatic

Check if Streaming SIMD Extensions 4.2 are present.

Definition at line 82 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isSSEPresent()

static bool macos::CPUInfo::isSSEPresent ( )
inlinestatic

Check if Streaming SIMD Extensions are present.

Definition at line 57 of file macCPUInfo.h.

References macos::SysCtl::boolByName().

◆ isSSSE3Present()

static bool macos::CPUInfo::isSSSE3Present ( )
inlinestatic

Check if Supplemental Streaming SIMD Extensions 3 are present.

Definition at line 72 of file macCPUInfo.h.

References macos::SysCtl::boolByName().


The documentation for this class was generated from the following file: