Visual Servoing Platform  version 3.6.1 under development (2024-12-03)
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::cpuX86 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>
#ifdef ENABLE_VISP_NAMESPACE
using namespace VISP_NAMESPACE_NAME;
#endif
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 58 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkAVX2()

bool vpCPUFeatures::checkAVX2 ( )

Definition at line 60 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkNeon()

bool vpCPUFeatures::checkNeon ( )

◆ checkSSE2()

◆ checkSSE3()

bool vpCPUFeatures::checkSSE3 ( )
Examples
testCPUFeatures.cpp.

Definition at line 50 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkSSE41()

bool vpCPUFeatures::checkSSE41 ( )

Definition at line 54 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkSSE42()

bool vpCPUFeatures::checkSSE42 ( )

Definition at line 56 of file vpCPUFeatures.cpp.

References cpu_features.

◆ checkSSSE3()

bool vpCPUFeatures::checkSSSE3 ( )
Examples
testCPUFeatures.cpp.

Definition at line 52 of file vpCPUFeatures.cpp.

References cpu_features.

◆ getCPUCacheL1()

size_t vpCPUFeatures::getCPUCacheL1 ( )

Definition at line 63 of file vpCPUFeatures.cpp.

◆ getCPUCacheL2()

size_t vpCPUFeatures::getCPUCacheL2 ( )

Definition at line 65 of file vpCPUFeatures.cpp.

◆ getCPUCacheL3()

size_t vpCPUFeatures::getCPUCacheL3 ( )

Definition at line 67 of file vpCPUFeatures.cpp.

◆ printCPUInfo()

void vpCPUFeatures::printCPUInfo ( )
Examples
testCPUFeatures.cpp.

Definition at line 72 of file vpCPUFeatures.cpp.

References cpu_features.

Variable Documentation

◆ cpu_features

const FeatureDetector::cpuX86 vpCPUFeatures::cpu_features
static