conan-center-index icon indicating copy to clipboard operation
conan-center-index copied to clipboard

openvino: Add threading option supporting tbb and omp

Open Greendogo opened this issue 1 year ago • 6 comments
trafficstars

Specify library name and version: openvino/*

Adds the option to set the threading cmake option to either tbb or omp.

Currently has an issue upon cmake config with projects using this option with openvino.


Greendogo avatar Mar 12 '24 08:03 Greendogo

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 12 '24 08:03 CLAassistant

Conan v1 pipeline :x:

Sorry, the build is only launched for Access Request users. You can request access writing in this issue.

Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Sorry, the build is only launched for Access Request users. You can request access writing in this issue.

conan-center-bot avatar Mar 12 '24 08:03 conan-center-bot

Conan v1 pipeline :x:

Failure in build 2 (cc1a3f2aef621c23409637213a339df46bfe3b9b):

An unexpected error happened and has been reported. Help is on its way! :horse_racing:


Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 1 (cc1a3f2aef621c23409637213a339df46bfe3b9b):

  • openvino/2024.0.0: Didn't run or was cancelled before finishing

  • openvino/2023.1.0: Didn't run or was cancelled before finishing

  • openvino/2023.2.0: Didn't run or was cancelled before finishing

  • openvino/2023.3.0: An unexpected error happened and has been reported


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Mar 15 '24 12:03 conan-center-bot

Conan v1 pipeline :heavy_check_mark:

All green in build 3 (cc1a3f2aef621c23409637213a339df46bfe3b9b):

  • openvino/2024.0.0: All packages built successfully! (All logs)

  • openvino/2023.3.0: All packages built successfully! (All logs)

  • openvino/2023.2.0: All packages built successfully! (All logs)

  • openvino/2023.1.0: All packages built successfully! (All logs)

conan-center-bot avatar Mar 16 '24 17:03 conan-center-bot

Thanks!

You will need to add llvm-openmp dependency for OpenMP support, since it's (a) not available for Clang and AppleClang out of the box and (b) you will need to export compiler-specific linker flags for it otherwise.

I see that #pragma omp is being used in public headers (https://github.com/openvinotoolkit/openvino/blob/2024.0.0/src/core/include/openvino/core/parallel.hpp#L186-L190) as well, so you will need to set appropriate cflags and cxxflags for OpenMP regardless.

Somewhat blocked by #22353, though.

valgur avatar Mar 24 '24 17:03 valgur

Conan v1 pipeline :x:

Failure in build 4 (ed1860b9f1a386d50c36c19836c483f7294e55d0):

  • openvino/2024.0.0: Didn't run or was cancelled before finishing

  • openvino/2023.3.0: Didn't run or was cancelled before finishing

  • openvino/2023.2.0: Didn't run or was cancelled before finishing

  • openvino/2023.1.0: CI failed to create some packages (All logs)

    Logs for packageID aa3b2ab9b2c878ebab4afb04587bb6c76654203f:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=7
    os=Linux
    [options]
    openvino:shared=False
    
    [...]
         catch (const InferenceEngine::ExceptionType&) {   \
                                                    ^
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/common.h:41:5: note: in expansion of macro ‘CATCH_IE_EXCEPTION’
         CATCH_IE_EXCEPTION(NETWORK_NOT_READ, NetworkNotRead)      \
         ^~~~~~~~~~~~~~~~~~
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/ov_tensor.cpp:143:5: note: in expansion of macro ‘CATCH_OV_EXCEPTIONS’
         CATCH_OV_EXCEPTIONS
         ^~~~~~~~~~~~~~~~~~~
    In file included from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/ie_common.h:33:0,
                     from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/details/ie_exception.hpp:17,
                     from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/common.h:13,
                     from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/ov_tensor.cpp:6:
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/ie_common.h:389:36: note: declared here
     INFERENCE_ENGINE_DECLARE_EXCEPTION(NetworkNotRead, NETWORK_NOT_READ)
                                        ^
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/ie_api.h:25:45: note: in definition of macro ‘INFERENCE_ENGINE_API_CLASS’
     #    define INFERENCE_ENGINE_API_CLASS(...) __VA_ARGS__
                                                 ^~~~~~~~~~~
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/ie_common.h:389:1: note: in expansion of macro ‘INFERENCE_ENGINE_DECLARE_EXCEPTION’
     INFERENCE_ENGINE_DECLARE_EXCEPTION(NetworkNotRead, NETWORK_NOT_READ)
     ^
    In file included from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/ov_tensor.cpp:6:0:
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/common.h:18:48: warning: ‘InferCancelled’ is deprecated: The Inference Engine API is deprecated and will be removed in the 2024.0 release. For instructions on transitioning to the new API, please refer to https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html [-Wdeprecated-declarations]
         catch (const InferenceEngine::ExceptionType&) {   \
                                                    ^
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/common.h:42:5: note: in expansion of macro ‘CATCH_IE_EXCEPTION’
         CATCH_IE_EXCEPTION(INFER_CANCELLED, InferCancelled)       \
         ^~~~~~~~~~~~~~~~~~
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/ov_tensor.cpp:143:5: note: in expansion of macro ‘CATCH_OV_EXCEPTIONS’
         CATCH_OV_EXCEPTIONS
         ^~~~~~~~~~~~~~~~~~~
    In file included from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/ie_common.h:33:0,
                     from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/details/ie_exception.hpp:17,
                     from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/common.h:13,
                     from /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/bindings/c/src/ov_tensor.cpp:6:
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/ie_common.h:392:36: note: declared here
     INFERENCE_ENGINE_DECLARE_EXCEPTION(InferCancelled, INFER_CANCELLED)
                                        ^
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/ie_api.h:25:45: note: in definition of macro ‘INFERENCE_ENGINE_API_CLASS’
     #    define INFERENCE_ENGINE_API_CLASS(...) __VA_ARGS__
                                                 ^~~~~~~~~~~
    /home/conan/workspace/prod-v1/bsr/11538/bdbdc/.conan/data/openvino/2023.1.0/_/_/source/src/src/inference/include/ie/ie_common.h:392:1: note: in expansion of macro ‘INFERENCE_ENGINE_DECLARE_EXCEPTION’
     INFERENCE_ENGINE_DECLARE_EXCEPTION(InferCancelled, INFER_CANCELLED)
     ^
    openvino/2023.1.0: WARN: openvino recipe builds GPU plugin without oneDNN (dGPU) support during static build, because CPU plugin compiled with different oneDNN version may cause ODR violation. To enable oneDNN support for GPU plugin, please, either use shared build configuration or disable CPU plugin by setting 'enable_cpu' option to False.
    openvino/2023.1.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    openvino/2023.1.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    ERROR: openvino/2023.1.0: Error in package_info() method, line 314
    	openvino_runtime.append("onetbb::libtbb")
    	AttributeError: 'Component' object has no attribute 'append'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Mar 29 '24 03:03 conan-center-bot

Suppressed by https://github.com/conan-io/conan-center-index/pull/25698

ilya-lavrenov avatar Oct 29 '24 05:10 ilya-lavrenov

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 21 '25 06:03 github-actions[bot]

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

github-actions[bot] avatar Apr 21 '25 06:04 github-actions[bot]