Visual Servoing Platform  version 3.4.0
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

bool vpCPUFeatures::checkAVX ( )

Definition at line 53 of file vpCPUFeatures.cpp.

bool vpCPUFeatures::checkAVX2 ( )

Definition at line 55 of file vpCPUFeatures.cpp.

bool vpCPUFeatures::checkSSE3 ( )

Definition at line 45 of file vpCPUFeatures.cpp.

bool vpCPUFeatures::checkSSE41 ( )

Definition at line 49 of file vpCPUFeatures.cpp.

bool vpCPUFeatures::checkSSE42 ( )

Definition at line 51 of file vpCPUFeatures.cpp.

bool vpCPUFeatures::checkSSSE3 ( )

Definition at line 47 of file vpCPUFeatures.cpp.

void vpCPUFeatures::printCPUInfo ( )

Definition at line 57 of file vpCPUFeatures.cpp.

Variable Documentation

const FeatureDetector::cpu_x86 vpCPUFeatures::cpu_features
static

Definition at line 41 of file vpCPUFeatures.cpp.