conan-center-index
conan-center-index copied to clipboard
openvino: Add threading option supporting tbb and omp
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.
- [x] I've read the contributing guidelines.
- [x] I've used a recent Conan client version close to the currently deployed.
- [ ] I've tried at least one configuration locally with the conan-center hook activated.
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 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 v1 pipeline :heavy_check_mark:
All green in build 3 (cc1a3f2aef621c23409637213a339df46bfe3b9b):
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.
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.
Suppressed by https://github.com/conan-io/conan-center-index/pull/25698
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.
This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.