Visual Servoing Platform  version 3.5.1 under development (2022-11-26)
vpCPUFeatures Namespace Reference

Functions

VISP_EXPORT bool checkSSE2 ()
 
VISP_EXPORT bool checkSSE3 ()
 
VISP_EXPORT bool checkSSSE3 ()
 
VISP_EXPORT bool checkSSE41 ()
 
VISP_EXPORT bool checkSSE42 ()
 
VISP_EXPORT bool checkAVX ()
 
VISP_EXPORT bool checkAVX2 ()
 
VISP_EXPORT bool checkNeon ()
 
VISP_EXPORT size_t getCPUCacheL1 ()
 
VISP_EXPORT size_t getCPUCacheL2 ()
 
VISP_EXPORT size_t getCPUCacheL3 ()
 
VISP_EXPORT void printCPUInfo ()
 

Variables

static const FeatureDetector::cpu_x86 cpu_features
 

Detailed Description

Check CPU features (hardware capabilities).

The example below shows how to check or get CPU capabilities.

#include <visp3/core/vpCPUFeatures.h>
int main()
{
std::cout << "checkSSE2: " << vpCPUFeatures::checkSSE2() << std::endl;
std::cout << "CPU info: " << vpCPUFeatures::printCPUInfo() << std::endl;
return 0;
}
VISP_EXPORT void printCPUInfo()
VISP_EXPORT bool checkSSE2()

Function Documentation

◆ checkAVX()

bool vpCPUFeatures::checkAVX ( )

Definition at line 55 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkAVX2()

bool vpCPUFeatures::checkAVX2 ( )

Definition at line 57 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkNeon()

bool vpCPUFeatures::checkNeon ( )

◆ checkSSE2()

◆ checkSSE3()

bool vpCPUFeatures::checkSSE3 ( )

Definition at line 47 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkSSE41()

bool vpCPUFeatures::checkSSE41 ( )

Definition at line 51 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkSSE42()

bool vpCPUFeatures::checkSSE42 ( )

Definition at line 53 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkSSSE3()

bool vpCPUFeatures::checkSSSE3 ( )

Definition at line 49 of file vpCPUFeatures.cpp.

References cpu_features.

◆ getCPUCacheL1()

size_t vpCPUFeatures::getCPUCacheL1 ( )

Definition at line 59 of file vpCPUFeatures.cpp.

◆ getCPUCacheL2()

size_t vpCPUFeatures::getCPUCacheL2 ( )

Definition at line 61 of file vpCPUFeatures.cpp.

◆ getCPUCacheL3()

size_t vpCPUFeatures::getCPUCacheL3 ( )

Definition at line 63 of file vpCPUFeatures.cpp.

◆ printCPUInfo()

void vpCPUFeatures::printCPUInfo ( )

Definition at line 67 of file vpCPUFeatures.cpp.

References cpu_features.

Variable Documentation

◆ cpu_features

const FeatureDetector::cpu_x86 vpCPUFeatures::cpu_features
static