Skip to content

PPC64: Unable to detect CPU features when optimization is disabled #19698

@seiko2plus

Description

@seiko2plus

which leads to a fatal error during initializing the core module if build option DCV_ENABLE_INTRINSICS was off.

Error message:

******************************************************************
* FATAL ERROR:                                                   *
* This OpenCV build doesn't support current CPU/HW configuration *
*                                                                *
* Use OPENCV_DUMP_CONFIG=1 environment variable for details      *
******************************************************************

Required baseline features:
    ID=200 (VSX) - NOT AVAILABLE
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.5.2-pre) /opencv/opencv/modules/core/src/system.cpp:625: error: (-215:Assertion failed) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function 'initialize

steps to produce

build OpenCV with -DDCV_ENABLE_INTRINSICS=OFF

workaround

skip baseline validation via environment variable OPENCV_SKIP_CPU_BASELINE_CHECK

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions