Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-5716

Remove version constraint on opencv-python-headless

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Development Platform
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • AP Sprint 19, DP Sprint 20

      At the moment opencv-python-headless is constrained to <=4.11.0.86, the reason for this was bug in fromager (AIPCC-3340, upstream issue 655). The issue was recently fixed in fromager (upstream pull-request 775).

      opencv-python-headless 4.12.0.88 includes OpenCV 4.12 which introduced changes to opencv/cmake/OpenCVFindOpenBLAS.txt and opencv/cmake/OpenCVFindLAPACK.txt. On Fedora/RHEL, these changes prevent OpenCV from linking to the OpenBLAS library (CMake fails to find the cblas.h header, resulting in a build without LAPACK support). While the package otherwise builds fine in the builder, missing LAPACK support is undesirable from performance standpoint.

      To build opencv-python-headless with LAPACK support and remove version constraint we'll need to:

      • patch it in the builder so CMake can locate cblas.h,
      • patch it to link against libopenblasp.so from openblas-threads instead of libopenblas.so from openblas-serial (see AIPCC-4466 and its epic for similar work),
      • open pull requests to upstream both patches to OpenCV.

              rh-ee-myochpaz Michael Yochpaz
              lbrabec@redhat.com Lukas Brabec
              Antonio's Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: