Commit Graph

374 Commits

Author SHA1 Message Date
Artyom Anokhov
769d87b400 debian.cmake: Suppress openvino_latest ubu18 description-starts-with-package-name error (#13714) 2022-10-28 16:38:16 +04:00
Ilya Lavrenov
fbd6d14c3b Several fixes for compilation fixes (#13674)
* Added i386 support

* Cross-compiled wheel package

* Fixes

* Try to use cross-env

* Fixed path to crossenv

* Strict dependency

* Removed numpy dependency

* explicitly activate crossenv

* Don't install ONNX for tests conversions during cross-compilation

* Updates

* Extra improvements

* Fixed compilation with strict flags

* Fixes

* Revert changesin .ci/azure/linux_arm64.yml
2022-10-27 17:30:24 +04:00
Artyom Anokhov
65293b1492 Added frontends RPMs generation (#13618)
* cmake/packaging/rpm.cmake: Added Frontends

* rpm_post_build: Added link to Fedoraproject wiki with rpmlint errors info

* RPM: Throw warning for rpmlint findings instead of FATAL ERROR till there is no filtering/suppression of errors

debian.cmake: Added one more error to suppress
thirdparty/CMakeLists.txt: added CentOS(RHEL) for gflags shared libs case
install_openvino_dependencies: Added gflags installation

* Fixed gflags issues for RHEL/CentOS

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-10-27 10:08:54 +04:00
Ilya Churaev
848d880eb3 Fix Warning as error for Android ARM64 build (#13638)
* Fix Warning as error for Android ARM64 build

* Fixed preprocessing build

* Fixed cmake options

* Try to fix android build

* Disable some warning
2022-10-26 12:56:44 +04:00
Sun Xiaoxia
6d665e5b77 update tbb 2020 package which fix memory leak issue (#13552)
* update tbb version 2020.3 commitid is 617e9a71

* set USE_NEW_LOCATION TRUE

* modify SHA256

Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-10-25 18:46:02 +04:00
Ilya Churaev
2a344b66cb Update to the latest cmake for Windows (#13604)
* Update to the latest cmake for Windows

* Skip new warnings

* Added compiler flags for old cmake

* Disabled some warnings

* Suppress new warnings

* Fixed some errors

* Disable some warning for lpt

* Fix some warnings

* Disable new warnings

* Fix some warnings

* Disabled Was error for arm

* Fixed some errors

* Fixed some new warnings

* Fixed auto plugin

* Fixed Windows warning

* Fixed Windows

* Disable some warnings

* Some changes

* Small test fixes

* Fixed python build

* Added skip warnings for legacy python API
2022-10-25 18:11:46 +04:00
trixirt
a7d275bea6 check if ncc is enabled before looking for ncc.py (#13598)
If ENABLE_NCC_STYLE=OFF, the check for ncc.py still happens.
A confusing warning is reported and a redundant setting of
ENABLE_NCC_STYLE to OFF is done.

Check that ENABLE_NCC_SYTLE is enabled before looking for ncc.py

Signed-off-by: Tom Rix <trix@redhat.com>

Signed-off-by: Tom Rix <trix@redhat.com>
2022-10-23 22:44:50 +04:00
Ilya Lavrenov
88c2b28bd1 Use TBB dependency only for static libraries (#13535)
* Use TBB dependency only for static libraries

* Rename IE_EXTRA_MODULES to OPENVINO_EXTRA_MODULES

* call find_tbb in DevPackage
2022-10-19 14:22:18 +04:00
Ryszard Jezierski
17e702776b Update GNA library version (#13188)
* Changed GNA library version from 1455.2 to 1815

* fixed new URL to GNA in cmake

* fixed gna lib version in linux CI

* use Gna2ExportTlv from new library

* Updated GNA to 1815.1
2022-10-19 13:40:21 +04:00
Ilya Lavrenov
dc1fe22fed Trying to fix lib-debian (#13524) 2022-10-19 07:23:33 +04:00
Ilya Lavrenov
2e336e4bb8 Fixes for brew support on OSX (#13476)
* Fixes for brew support on OSX

* Added new policy

* added quotes

* Used OpenVINODeveloperPackage

* Extra fixes

* Use standard verbose variable

* Fixed pkg-config generation
2022-10-15 00:15:03 +03:00
Ilya Lavrenov
4a727ea54d Disabled TBB and OpenCV downloading for aarch64, keeping only for yocto (#13462) 2022-10-13 14:16:20 +04:00
Ilya Lavrenov
c2911adf94 Conda-forge fixes (#13392) 2022-10-12 12:16:13 +04:00
Ilya Lavrenov
c83ad806d9 Enabled LTO for OSX (#13266) 2022-10-07 12:09:44 +04:00
Ilya Churaev
8a9c19e3eb Warning as error for Windows (#13291)
* parent 6e7016ccda
author Ilya Churaev <ilya.churaev@intel.com> 1664281499 +0400
committer Ilya Churaev <ilya.churaev@intel.com> 1664510018 +0400

Fixed warnings on local machine

* Added CMAKE_COMPILE_WARNING_AS_ERROR usage

* Fixed style

* Fixed merge conflicts

* Fixed typo

* Fixed myriad build for macOS

* Fixed warning

* Fixed tests

* Disabled incorrect test

* Try to fix linux tests

* Revert "Try to fix linux tests"

This reverts commit 29224c93ff.

* Fixed tests

* Revert logic with incorrect cast

* Fixed log softmax

* Disable warning as error for cuda

* Try to fix inference_engine_s

* Fixed cmake

* Revert "Fixed cmake"

This reverts commit 87e9e4e674.

* Revert "Try to fix inference_engine_s"

This reverts commit a1adca8b05.

* WA for static symbols in inference_engine_s test library

* Fixed code style

* Fixed static definition for master

* Revert "Fixed static definition for master"

This reverts commit 20d00d215a.

* Revert "Fixed code style"

This reverts commit 0eb2362543.

* Revert "WA for static symbols in inference_engine_s test library"

This reverts commit 75ef86a79d.

* Fixed linker issue for Windows

* Disable WaE by default

* Disable warning as error in the developer package

* Try to fix dev package

* Try to fix Windows Jenkins

* Revert old behavior for tread_warn_as_err variable
2022-10-06 13:44:21 +04:00
Ilya Lavrenov
1bb15b1d18 Compilation with conda build (#13083)
* Compilation with conda forge

* Fixed compilation with gcc 12

* Fixed tests compilation

* use macro instead of function

* Fixed uninitialized variable in tests

* Conda

* Conda
2022-10-05 08:38:38 +04:00
Ilya Lavrenov
76fc9cb109 Proper folder during compilation for arm64 on intel (#13331) 2022-10-05 00:34:36 +04:00
Ilya Churaev
943f77d9ec Move template plugin to plugin folder (#13269)
* Moved template_plugin

* Move template extension

* Changed cmake configs

* Try to fix build

* Moved plugin to standalone folder and fixed build

* Try to fix doc

* Try to fix doc

* Update CMakeLists.txt

* Moved extensions to src/core
2022-10-03 15:47:20 +04:00
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