Skip to content

G-API: Ifdef OpenVINO API 1.0 functionality#24878

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
TolyaTalamanov:at/g-api-ifdef-openvino-api10-backend
Jan 18, 2024
Merged

G-API: Ifdef OpenVINO API 1.0 functionality#24878
asmorkalov merged 1 commit intoopencv:4.xfrom
TolyaTalamanov:at/g-api-ifdef-openvino-api10-backend

Conversation

@TolyaTalamanov
Copy link
Copy Markdown
Contributor

Overview

OpenVINO introduced the new API 2.0 since 2022.1.0 version and plan to completely remove the old API by 2024.0.0.

The suggestion is to check INF_ENGINE_RELEASE < 2024000000 and if so, completely disable IE backend and its unit tests that rely on API 1.0.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

#include "backends/ie/giebackend.hpp"

#ifdef HAVE_INF_ENGINE
#if defined HAVE_INF_ENGINE && INF_ENGINE_RELEASE < 2024000000
Copy link
Copy Markdown
Contributor Author

@TolyaTalamanov TolyaTalamanov Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make since to introduce HAVE_OPENVINO for versions GE than 2022.1 and set HAVE_INF_ENGINE to false for versions GE 2024.0? In that case ifdef HAVE_INF_ENGINE would be enough.

@dmatveev dmatveev self-assigned this Jan 17, 2024
@dmatveev dmatveev added this to the 4.10.0 milestone Jan 17, 2024
@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

@asmorkalov Could you merge this, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants