mrpt.pymrpt.mrpt.cpu
index
(built-in)

Bindings for mrpt::cpu namespace

 
Classes
       
pybind11_builtins.pybind11_object(builtins.object)
feature

 
class feature(pybind11_builtins.pybind11_object)
    
Method resolution order:
feature
pybind11_builtins.pybind11_object
builtins.object

Methods defined here:
__eq__(...)
__eq__(self: object, other: object) -> bool
__getstate__(...)
__getstate__(self: object) -> int
__hash__(...)
__hash__(self: object) -> int
__index__(...)
__index__(self: mrpt.pymrpt.mrpt.cpu.feature) -> int
__init__(...)
__init__(self: mrpt.pymrpt.mrpt.cpu.feature, value: int) -> None
__int__(...)
__int__(self: mrpt.pymrpt.mrpt.cpu.feature) -> int
__ne__(...)
__ne__(self: object, other: object) -> bool
__repr__(...)
__repr__(self: object) -> str
__setstate__(...)
__setstate__(self: mrpt.pymrpt.mrpt.cpu.feature, state: int) -> None
__str__ = name(...)
name(self: handle) -> str

Readonly properties defined here:
__members__
name
name(self: handle) -> str
value

Data and other attributes defined here:
AVX = <feature.AVX: 8>
AVX2 = <feature.AVX2: 9>
FEATURE_COUNT = <feature.FEATURE_COUNT: 10>
MMX = <feature.MMX: 0>
POPCNT = <feature.POPCNT: 1>
SSE = <feature.SSE: 2>
SSE2 = <feature.SSE2: 3>
SSE3 = <feature.SSE3: 4>
SSE4_1 = <feature.SSE4_1: 6>
SSE4_2 = <feature.SSE4_2: 7>
SSSE3 = <feature.SSSE3: 5>

Static methods inherited from pybind11_builtins.pybind11_object:
__new__(*args, **kwargs) from pybind11_builtins.pybind11_type
Create and return a new object.  See help(type) for accurate signature.

 
Functions
       
features_as_string(...) method of builtins.PyCapsule instance
features_as_string() -> str
 
Returns a string with detected features: "MMX:1 SSE2:0 etc."
 
 
 
 
 
C++: mrpt::cpu::features_as_string() --> std::string
overrideDetectedFeature(...) method of builtins.PyCapsule instance
overrideDetectedFeature(f: mrpt.pymrpt.mrpt.cpu.feature, newValue: bool) -> None
 
Blindly enables/disables a CPU feature flag in the list
 of detected features to be reported in subsequent calls to
 mrpt::cpu::supports(). Could be used to disable a given CPU feature for
 benchmarking dynamically-dispatched functions.
 
 
 Enabling a feature that is not actually supported by the current CPU
 would probably lead to program crashes.
 
 
 
 
 
C++: mrpt::cpu::overrideDetectedFeature(enum mrpt::cpu::feature, bool) --> void
supports(...) method of builtins.PyCapsule instance
supports(f: mrpt.pymrpt.mrpt.cpu.feature) -> bool
 
Returns true if the current CPU (and OS) supports the given CPU feature.
 
 
 
 
 
C++: mrpt::cpu::supports(enum mrpt::cpu::feature) --> bool