Visual Servoing Platform  version 3.2.1 under development (2019-12-07)
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 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;
}

Function Documentation

◆ checkAVX()

bool vpCPUFeatures::checkAVX ( )

Definition at line 53 of file vpCPUFeatures.cpp.

Referenced by vpMatrix::transpose().

◆ checkAVX2()

bool vpCPUFeatures::checkAVX2 ( )

Definition at line 55 of file vpCPUFeatures.cpp.

◆ checkSSE2()

◆ checkSSE3()

bool vpCPUFeatures::checkSSE3 ( )

Definition at line 45 of file vpCPUFeatures.cpp.

◆ checkSSE41()

bool vpCPUFeatures::checkSSE41 ( )

Definition at line 49 of file vpCPUFeatures.cpp.

◆ checkSSE42()

bool vpCPUFeatures::checkSSE42 ( )

Definition at line 51 of file vpCPUFeatures.cpp.

◆ checkSSSE3()

◆ printCPUInfo()

void vpCPUFeatures::printCPUInfo ( )

Definition at line 57 of file vpCPUFeatures.cpp.

Variable Documentation

◆ cpu_features

const FeatureDetector::cpu_x86 vpCPUFeatures::cpu_features
static

Definition at line 41 of file vpCPUFeatures.cpp.