Commit Graph

356 Commits

Author SHA1 Message Date
Ilya Lavrenov
2ad15ececc Removed excess rpath for libraries in wheel (#13218)
* Store OSX archs for sub-projects

* Removed useless rpath
2022-09-27 13:33:51 +02:00
Ilya Lavrenov
07d68b5895 Ability to build OpenVINO wheel based on OV developer package (#13197)
* Allow to compile wheel package based on OpenVINO developer package

* Added wheel specific runtime dir to avoid issues with generator expressions

* Added backward compatibility

* Trying to fix RHEL, U20

* Fixed cmake options in setup.py
2022-09-26 11:33:50 +04:00
Ilya Lavrenov
12f1e95c3d Improvements for OSX build (#13201)
* Hide some helper variables as internal ones

* Added an ability to test private API for TF FE

* OSX improvements

* Fixed project generation for xcode
2022-09-26 07:48:41 +04:00
Ilya Lavrenov
d82cdc39e4 Allow to extra modules by relative path (#13199) 2022-09-26 07:47:59 +04:00
Ilya Lavrenov
5c4564c214 Tensorflow func tests (#13198)
* Added auto-detect for SHUTDOWN_PROTOBUF option

* Hide some helper variables as internal ones

* Update frontends cmake files not to include tests folders

* Added an ability to test private API for TF FE

* Added an ability to test private API for TF FE

* Improved mock frontends in python tests

* Fixed compilation error

* Fixed link on WIndows
2022-09-25 16:54:26 +04:00
Pawel Raasz
4f683687de Enable mock fe tests in python api 2.0 tests (#12978)
* Building python frontend tests

* Enable mock tests in new python API:
- Fix mock_py frontend library name
- Set same destination for mock_py frontend as others frontends
- Fix importing mock_py frontend
- Minor changes in mock_py tests

* Fix flake8 issue

* Fix linking issue on windows

* Remove DISABLE_PYBIND11 option

* Build mock_py always as shared library
- put mock_py into ov::frontend namespace
- minor re-factor of mock_py

* Add mock c API fix warning on windows

* Fix installation of mock_py frontend

* Install mock_py frontend library in tests

* More detailed error message in python test
when cannot import frontend

* Restore IMPLEMENT_OPENVINO_API for windows build
of pybind_mock_frontend

* Set env paths for python API test on Azure CI
- skip tensorflow conversion ext test when not installed

* Correct skip tensorflow test decorator

* Add C API macro for mock1 frontend

* Ignore E999 error reported by flake8

* Fix conversion extension name for tf imports

* Fix flake8 issues

* Remove python3.8 path from LD_LIBRARY_PATH
on debian CI

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-09-20 11:56:46 +03:00
Artyom Anokhov
f8f82574ac [Packaging] RPM generation (#12810)
* Initial

* packaging: Fixed syntax

rpm.cmake: downgraded PYOPENVINO version to 3.6 as default

* install_build_dependencies: Added rpm-build

rpm.cmake: Removed SHLIBDEPS settings for RPMs creation. Replaced CPACK_RPM_PACKAGE_HOMEPAGE with CPACK_RPM_PACKAGE_URL. Set CPACK_RPM_PACKAGE_AUTOREQPROV to ON.

* rpm_post_build.cmake: Fixed warning if rpmlint not installed

rpm.cmake: Removed SHLIBDEPS usage.

* rpm.cmake: Updated comments

* Fixed naming

* developer_package/rpm.cmake: Fixed ov_rpm_add_latest_component macro with using lower case for CPACK_COMPONENT_XXX_DEPENDS set.
2022-09-19 23:16:07 +03:00
Ilya Churaev
b7d183e6e6 Fixed comments after coverage PR (#13100) 2022-09-19 17:20:05 +03:00
Ilya Churaev
c66c7064e0 Fixed ov_coverage target (#13090)
* Fixed ov_coverage target

* Added all components
2022-09-19 11:04:10 +04:00
Ilya Lavrenov
b6ce6f4d39 Added support of universal2 OSX binaries (#13093)
* Added support of universal2 OSX binaries

* Fixed openvino wheel for OSX: different library name structure
2022-09-19 10:14:07 +04:00
Ilya Lavrenov
99b450ef52 Check ONNX installation before usage (#13069) 2022-09-16 15:18:11 +04:00
Vitaliy Urusovskij
6e816b607b Fix install of static TBB libs (#13012)
In case of "Downloaded TBB" after second call of `cmake` it treats TBB as custom instead of downloaded, and doesn't install static libs correct way
2022-09-13 11:21:47 +04:00
Ilya Lavrenov
3c24ee6cda Install tbbmalloc for pkg-config case (#12960) 2022-09-12 22:12:50 +04:00
Ilya Lavrenov
bc8127f3b8 Fixed Android post-commit (#13005) 2022-09-12 07:57:21 +04:00
Ilya Lavrenov
53542ded57 Added support of pugixml search via pkg-config (#12958)
* Added support of pugixml search via pkg-config

* Updated old InferencEngineDEveloperPackage.cmake.in

* Removed debug print

* Fixed cmake stage for U18

* Added WA for pugixml on U18 for DevPackage as well

* Disable pkg-config generation for OpenVINO for U18

* Added option for pkg-config

* Now triplet is aut-detected

* Fixed U18 case
2022-09-10 01:10:24 +03:00
Tomasz Jankowski
5a42afb45b [Core] Reduce unit test dependencies (#12932)
* Remove manifest dependency

* Use generic TEST macro

* Remove test_control dependency

* Redo Sqrt layer test

* Remove unused files

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-09-08 09:04:04 +03:00
Ilya Lavrenov
9d55355daf OpenVINO requires TBB 2017.0 or higher (#12934)
* Added a error message if cmake < 3.16 is used with tbb.pc

* TBB

* Updates

* Ignore old TBBs

* Handle minimal version via pkg-config as well
2022-09-06 18:57:55 +04:00
Ilya Lavrenov
10f2cf40eb Cross-compilation of debian packages (#12919)
* Debian arm cross-compilation

* Pugixml::shared as system library

* Removed debug print of openvino.pc

* Set debian package arch for cross-compilation manually
2022-09-06 12:03:40 +03:00
Ilya Lavrenov
4d8d119dc5 Added a error message if cmake < 3.16 is used with tbb.pc (#12914) 2022-09-06 12:03:32 +04:00
Ilya Lavrenov
fb1faf8b2d Generate openvino.pc pkg-config file (#12779)
* Generate openvino.pc pkg-config file

* Added libva-dev as a dependency

* Fixed typo in install_build_dependencies.sh

* samples on CI

* Revert changes in samples; use pkg-config in tests

* Debug print

* Revert changes in fuzz tests

* Fixed TBB usage

* Fixed pkg-config usage for cross-compilation

* Fixed pkg_config_tbb_lib_dir

* Don't use PKG_CONFIG_EXECUTABLE unconditionally

* Fixed copy-patse

* Fixe

* Generate pkg-config file for Apple as well

* Fixes for ubuntu 22.04

* Disable apple
2022-09-05 13:40:21 +04:00
Ilya Lavrenov
32ecbb45b9 Enabled LTO for ONNX (#12889) 2022-09-05 13:19:19 +04:00
Ilya Lavrenov
836765874e LTO for frontends and python (#12890) 2022-09-05 08:10:11 +04:00
Ilya Lavrenov
fb8423dcee Apple "cross compilation" for protoc (#12881) 2022-09-03 10:50:01 +04:00
Ilya Lavrenov
1d3e63c40e Tuned TBB cmake finding (#12852)
* Tuned TBB cmake finding

* Fixed for cmake less 3.24

* Fixes for Android ARM

* Fixed Android build
2022-09-02 10:25:23 +04:00
Ilya Lavrenov
230ae977dc Replaced hardcoded core component with variable name (#12850) 2022-09-02 10:13:05 +04:00
Thomas
885d57424c Fix ENABLE_UNSAFE_LOCATIONS build flag (#8774)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-09-01 14:46:49 +04:00
Ilya Lavrenov
e19df6f85f Updated ia32 toolchain with system / processor (#12784)
* Updated ia32 toolchain with system / processor

* Allow pkg-config during cross-compilation

* added error message

* Search TBB using tbb.pc as well

* WA

* Fix for yocto

* Added print

* Use tbb.pc only when system libs are enabled

* Improved OpenVINOConfig.cmake

* Don't find pkg-config as required
2022-09-01 14:33:47 +04:00
Tomasz Jankowski
5a8f5b630b [ONNX FE] Combine ONNX FrontEnd tests (#12680)
* Move onnx_tests target dir

* Move onnx_frontend_tests target dir

* Move standalone_build target dir

* Move onnxImporterUnitTests target dir

* Combine onnx edytor tests

* Remove excessive target

* Merge onnx tests into one binary

part 1 : onnxImporterUnitTests into onnx_tests

* Merge onnx tests into one binary

part 2 : onnx_frontend_tests into onnx_tests

* Fix code style

* Update CI files

* Move onnx model test files

* Rename onnx tests target

* Avoid plurarity in target name

Rationale: Letter s and the end tells about implementation and
structure, while the purpose is singular - to validate OpenVINO ONNX
Frontend.

* Avoid loosing manifest filter flag

Issue occurred when gtest_filter was provided from command line

* Remove conflicting dependency

Linking to gtest_main (from googletest) via commonTestUtils caused
conflict while choosing main() function. OV defined in gtest_main_manifest
is prefered here as consider manifest file along with CLI arguments.

* Use proper naming
2022-08-31 17:39:21 +04:00
Ilya Lavrenov
e34dfb7fe6 Ported changes related to versiong handling (#12841) 2022-08-31 17:38:57 +04:00
Ilya Lavrenov
8a4cb9b332 Arm cross compilation (#12807)
* Fixed ARM out-of-box cross-compilation

* Improvements

* Fixed HDDL plugin
2022-08-30 22:23:14 +04:00
Ilya Lavrenov
675cce8325 Changed SOVERSION scheme (#12809)
* Changed SOVERSION scheme

* Simplified condition
2022-08-30 22:18:06 +04:00
Ilya Lavrenov
ee86968bbb Use TBB as default threading (#12783)
* Use TBB as default threading

* Use custom TBBConfigs only if TBBROOT is passed
2022-08-29 12:21:59 +04:00
Ilya Lavrenov
5a037dedbc Finalize with libraries versioning (#12704) 2022-08-26 09:45:27 +04:00
Ilya Lavrenov
ddf75def93 Print detailed errors if no reqs are found for either ENABLE_PYTHON / ENABLE_WHEEL are ON (#12755)
* Don't install onnx test requirements autonatically

* Added requirementst install to Azure CI

* Respect onnx_FOUND

* Use pdpd 2.3.0

* Remove numerous warnings

* Improved error messages for building python, python wheel

* Improvements

* More improvements

* Fixes

* Fixed CI

* Fixes

* Revert
2022-08-25 20:15:21 +04:00
Ilya Churaev
f994e307a9 Enable support of CPU plugin for Apple M1 (#12672)
* Enable support of CPU plugin for Apple M1

* Removed cmake option
2022-08-25 11:33:40 +04:00
Ilya Lavrenov
2ef6e2951c Use static TBBBind if dynamic one is not found (#12703) 2022-08-23 13:17:35 +04:00
Ilya Lavrenov
27cbc1a969 Debian packages for frontends (#12649)
* Created dedicated debian packages for frontends

* Fixed Azure CI

* Install TF FE with both names

* Disabled 2 QN tests

* Install python samples differently
2022-08-23 01:39:23 +04:00
Artyom Anokhov
9710bde87c coverage.cmake: Added general target for collecting coverage counters for whole project (#12652) 2022-08-22 18:19:56 +04:00
Ilya Lavrenov
0ac5cfd17a Improved dependencies handling for ie_wheel (#12666)
* Improved dependencies handling for ie_wheel

* Fixed compilation erros

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-08-22 11:09:56 +04:00
Ilya Churaev
9a4326012c Fixed generation of plugins.hpp and disabled some proxy tests (#12637) 2022-08-19 18:50:59 +03:00
Ilya Lavrenov
5d31a27f57 Fix conditions for python when cmake debug prefix is not empty (#12601) 2022-08-18 08:31:23 +04:00
Ilya Churaev
9e7c821477 Enabled plugins auto registration (#12573)
* Enabled plugins auto registration

* Fixed comments

* Skip CMakeLists.txt
2022-08-16 23:19:10 +04:00
Ilya Lavrenov
1a965bbd80 Added lintian post-build step (#12576)
* Added lintian post-build step

* Update cmake/developer_package/packaging/debian_post_build.cmake

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-08-16 16:44:11 +04:00
Ilya Lavrenov
2e7284cfa0 Automatically detect ENABLE_PYTHON, ENABLE_WHEEL default values (#12551)
* Add ENABLE_WHEEL=ON by default

* Adjust CMake options for GitHub checks

* Add ov_check_pip_package and ov_check_pip_packages CMake functions

* revert options

* skip empty lines

* formatting

* fix condition

* check for patchelf

* Add numpy dependency to condition

* Fix error:

    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (gast 0.4.0 (c:\hostedtoolcache\windows\python\3.7.6\x64\lib\site-packages), Requirement.parse('gast==0.3.3; platform_system == "Windows"'), {'paddlepaddle'})

* set DENABLE_WHEEL=OFF for openvino-onnx docker

* Supported newer versions of shellcheck

* Don't use excluded sources

* Improved NCC process of clang search

* Fixes

* A lot of updates

* Fixes after 2 PRs merge

* Fixed build

* Fixes

* Relaxed cython version a bit

* Try non-pip cython as well

* Fixed MacOsX

* Disable pybind usage for MO tests as well

* Added descriptive warning messages

* Fixed compilation on Windows

* Support for cmake < 3.15

* FIxed Windows linkage

* Fixed review comments

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>
2022-08-16 14:43:30 +04:00
Ilya Lavrenov
5b40ef1982 Debian conflicts (#12567)
* Supported newer versions of shellcheck

* Fixed installation against conflicting versions
2022-08-16 11:12:57 +04:00
Ilya Lavrenov
aecab4d12a U22 adoption in github actions (#12550)
* Supported newer versions of shellcheck

* Don't use excluded sources

* Improved NCC process of clang search

* Fixes
2022-08-14 20:53:41 +04:00
Tomasz Dołbniak
2503183f35 OpenCV build switched off by default [master] (#12173)
* OpenCV build switched off by default

* Removal of OCV copy from the "install tests" stage

* Switch off OCV dependent tests

* cmake code repositioning

* More OCV-dependent tests disabled

* OCV removed entirely from the C-API tests

* Final cleanup
2022-08-13 13:17:55 +03:00
Ilya Lavrenov
2b69057603 Fixed CVS-89248 (#12534)
* Fixed CVS-89248

* Fixes for TBB 2018-2019.4
2022-08-13 00:11:13 +04:00
Ilya Lavrenov
81e41f7c8e Added vresion generation as in CI (#12521) 2022-08-12 15:43:09 +04:00
Ilya Lavrenov
8b9aea9fad Fixed missed pugixml in case of system libs + wheel package (#12464)
* Fixed missed pugixml in case of system libs + wheel package

* Fixes

* Removed useless rpath
2022-08-12 11:35:56 +04:00