Commit Graph

77 Commits

Author SHA1 Message Date
Ilya Lavrenov 6a63cb9122
Enabled naming style check for FEM, ONNX FE (#6970)
* Enabled naming style check for FEM, ONNX FE

* Used custom version of ncc

* Added self-check

* Removed submdoule

* Moved to public ncc
2021-08-09 15:38:08 +03:00
Ilya Lavrenov 5d781afe73
Naming convention tool integration (#6967)
* Fixed cycle dependency

* Added NCC infra

* Add submodule

* Added substitution for clang lib

* target depends on target_ncc_check

* Try find_package(Clang QUIET)

* Added github actions

* Try U18 + clang9

* Fixed nnc

* Updated style

* Works for clang-9

* Works for clang-7

* Fixes
2021-08-07 09:55:45 +03:00
Ilya Churaev fc39303677
Moved IE public headers to IE library (#6941)
* Moved IE public headers to IE library

* Fixed documentation

* Fixed fast build

* Fixed doc
2021-08-06 10:05:51 +03:00
Alexey Lebedev 6f23458534
disable debug postfix on mac (#6827)
Co-authored-by: Your Name <you@example.com>
2021-08-04 10:45:41 +03:00
Ilya Lavrenov b9b0a8b34a
Fixed compilation with clang (#6917) 2021-08-04 09:28:20 +03:00
Ilya Churaev 8a612fa55e
Moved current IE API to separate folder (#6735)
* Moved current IE API to separate folder

* Fix install

* Fix documentation

* Fixed install path

* Try to fix CI

* Changed installation path

* Use ONNXRuntime rel-1.8.1 version
2021-08-03 12:24:05 +03:00
Ilya Lavrenov eabec388e2
Enabled LTO for ONNX FE (#6878)
* Fixed Windows public precommit

* ONNX LTO
2021-08-02 13:48:33 +03:00
Ilya Lavrenov c38f08b777
Use protobuf-lite for ONNX FE by default (#6829) 2021-07-31 17:21:35 +03:00
Ilya Lavrenov 518ec79cb0
Updated samples compile options (#6818)
* Don't warn about obsolete cmake usage

* Removed build flags for samples

* Fixed ngraph with -Wpedantic

* cmake for 3rdparty
2021-07-30 13:54:09 +03:00
Andrey Somsikov d498653d1f
Fix clang sanitizer build (#6853) 2021-07-29 15:45:27 +03:00
Mikhail Nosov 5d3ab3108f
Paddlepaddle unit tests CI fixes (#6820)
Win+Lin: add "clean build dir" step to ensure generated test models are taken from install
Windows fix: execute "pip show" on same drive where python is installed
Windows: execute tests with FE_TEST_MODELS env variable
2021-07-28 17:34:30 +03:00
Andrey Somsikov 2e26dfd4dd
Fix sanitizer build (#6790)
Use default linker for sanitizer builds

Compiler out of memory tracking variables in GPU tests.
This trigger recompilation without tracking. Disabling
tracking globally as not required option.

UBSan build is failing on maybe uninitialized variable.
Temporarily disable the check.
2021-07-27 15:29:34 +03:00
Ilya Lavrenov 37c619b0b8
Fixed compilation with Intel compiler (#6788)
* Fixed compilation with Intel compiler

* Fixed template containers for VPU

* Fixe one-dnn

* Updated submodule
2021-07-26 12:42:05 +03:00
Andrey Somsikov d921e7a9c4
Enable mistakenly wiped sanitizer instrumentation (#6780) 2021-07-23 17:51:17 +03:00
Ilya Lavrenov 11875c6694
Fixed sanitizer (#6727) 2021-07-21 13:06:49 +03:00
Ilya Lavrenov 7d85d61083
Fix for cmake 3.21.x (#6722)
* Fix for cmake 3.21.x

* Removed a lot -Wno-* compile options
2021-07-21 11:55:41 +03:00
Andrey Somsikov 89e53bb739
Allow configuring cpack strip from command line (#6712)
Check if CPACK_STRIP_FILES configured before setting it
ON by default. This allows to configre it from command
line when required.
2021-07-20 17:26:48 +03:00
Ilya Lavrenov bc36425381
Added suggest-override flag (#6631) 2021-07-16 18:55:05 +03:00
Ilya Lavrenov 1621c66ad8
Static protobuf for FEs (#6588)
* protobuf static + mixed editor and importer

* merged onnx common

* remove ngraph_test_util to onnx_importer and onnx

* styles applied

* Revert "remove ngraph_test_util to onnx_importer and onnx".

* test ngraph_test_util dependencies

* Fixed static protobuf

* Next

* Fixes

* Fixed cross-compilation

* Don't export / install onnx_proto

* Fixed Windows

* Fixed opencl headers

* Fix

* Added exclude-all for exe as well

* Fixed code style

* Try without LTO

* LTO off only for onnx importer

Co-authored-by: mbencer <mateusz.bencer@intel.com>
2021-07-16 07:25:40 +03:00
Ilya Lavrenov ba3a667730
Used generator expression for CONFIG (#6557) 2021-07-08 13:03:02 +03:00
Ilya Lavrenov 652c6f6247
Extract OpenVINO version from header, if CI one is not defined (#6555) 2021-07-08 13:01:54 +03:00
Andrey Somsikov 1ffc42ef43
Add ENABLE_UNDEFINED_BEHAVIOR_SANITIZER option (#6385)
Add a configuration for the UndefinedBehavior sanitizer, disabled by default.

Refactor sanitizer configuration to split options which are common across sanitizers.
Unify sanitizer runtime linkage accross sanitizers to use compiler default.
2021-07-05 18:53:11 +03:00
Ilya Lavrenov 50c73e6914
Allow aliased targets for apiValidator check (#6508) 2021-07-05 09:48:05 +03:00
Ilya Lavrenov 8cc1737b5d
Removed EXPORT_DEPENDENCIES from addIeTarget (#6502)
* Added pugixml as submodule

* CVS-34900: updated pugixml to v1.11.4

* Fixed link with pugixml

* USe pugixml::static

* Try to fix bug

* Removed GITHUB_PULL_REQUEST

* Replaced  OpenVINO_MAIN_SOURCE_DIR -> OpenVINO_SOURCE_DIR

* Removed some usages of IE_MAIN_SOURCE_DIR

* Use ngraph target directly

* Removed EXPORT_DEPENDENCIES
2021-07-02 17:17:44 +03:00
Ilya Lavrenov fc7f80a34e
CVS-34900: updated pugixml to v1.11.4 (#6301)
* Added pugixml as submodule

* CVS-34900: updated pugixml to v1.11.4

* Fixed link with pugixml

* USe pugixml::static

* Try to fix bug

* Removed GITHUB_PULL_REQUEST

* Replaced  OpenVINO_MAIN_SOURCE_DIR -> OpenVINO_SOURCE_DIR

* Removed some usages of IE_MAIN_SOURCE_DIR

* Use ngraph target directly
2021-07-02 11:36:31 +03:00
Ilya Lavrenov 07f94ea602
Minimized usage of `IE_MAIN_SOURCE_DIR` (#6422)
* Minimized IE_MAIN_SOURCE_DIR hardcode

* Used COMPILE_OPTIONS instead of COMPILE_FLAGS

* Fixed compilation

* Enabled NGRAPH_DYNAMIC_COMPONENTS_ENABLE by default

* Fixes

* Moved GNA related file

* Fixed backend compilation

* Fixed Windows for ngraph

* Fixed <root>/tests build

* More updates

* Fixed scripts install

* Fixed Windows

* Fixed Windows
2021-06-30 18:15:41 +03:00
Ilya Lavrenov db0145be1e
Proper location for IRv7 reader unit tests (#6444) 2021-06-29 21:50:56 +03:00
Ilya Lavrenov e050b5f97a
CLDNN cmake simplification (#6384)
* CLDNN cmake simpplification

* bfbgf
2021-06-28 22:50:41 +03:00
Ilya Lavrenov 391aeebf7e
Added install rules for tests (#6344)
* Moved cmake/templates to <root>

* Removed ngraph versioning, reused IE one

* Merged converage

* Removed duplicatde ngraph cmake options

* Moved dependencies to <root>/cmake

* Removed installing of VERSION

* Start #1

* cpack

* Added component type

* Added installation of tests targets

* Added ngraph tests target install

* Fixed runtime dependencies location

* Disable GNA unit tests

* Revert "Disable GNA unit tests"

This reverts commit da5398622f.

* Installed only core component

* Replaced ENABLE_DEV_PKG_INSTALL with EXCLUDE_FROM_ALL

* Removed extra cmake options
2021-06-25 15:17:17 +03:00
Ilya Lavrenov 56adef710a
Added missed include(ExternalProject) (#6366) 2021-06-25 12:54:24 +03:00
Ilya Lavrenov 92239b39bf
Partially merge ngraph / IE cmakes (#6316)
* Moved cmake/templates to <root>

* Removed ngraph versioning, reused IE one

* Merged converage

* Removed duplicatde ngraph cmake options

* Moved dependencies to <root>/cmake

* Removed installing of VERSION
2021-06-24 13:14:04 +03:00
Ilya Lavrenov 1fa225e7bf
Python in OpenVINO: improvements (#6027)
* enable make clean to remove ie_wheel artifacts

* ./setup.py:132:1: E302 expected 2 blank lines

* fix CI build issue

* Removed not-needed components from ie_wheel

* Use explicit python3 vresion in ngraph pythpn

* Use python3 everywhere

* Reuse python3 more

* Added function to build with Py_LIMITED_API

* Sync 2 cmake python modules

* Fix for tools

* Fixed typo

* Enable python by default

* Enable python build iff python-dev is found

* More migration to Python3_VERSION

* Install wheel requirements

* Fixed ngraph Python separate build

* Fixed cython compilation

* Revert to old packages

* Added suffix

* Specify python version explicitly

* Don't depend on python interp to build python itself

* More improvements

* Revert offline transformations back to ie_wheel

* Refactoring

* Trying to build wheel independently on C++ runtime

* Build wheel only with main OpenVINO

* Fixed typo in test_utils cmake lists

* Adding link stage

* small fix

* git diff

* Try to fix python tests

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>
2021-06-07 10:52:48 +03:00
Ilya Lavrenov 8498560a26
Removed WA in versions.cmake for DLB (#6047) 2021-06-07 10:35:06 +03:00
Ilya Lavrenov 11400135de
Developer package update (#5970)
* Updated developer package generation

* Try to fix

* Reuse find_package(InferenceEngine) inside DeveloperPackage

* Fixes for ARM

* Fixed double InferenceEngineDeveloperPackage include

* WA for OpenCV
2021-06-03 12:45:12 +03:00
Ilya Lavrenov c470024f50
Respect COMPONENTS in InferenceEngineConfig.cmake (#5857)
* Added note abour custom version of find_dependency

* Warning about improper version in find_package()

* Removed ENABLE_ALTERNATIVE_TEMP

* Respect COMPONENTS in InferenceEngine cmake config

* Added Jira ticket #
2021-05-27 16:56:56 +03:00
Ilya Churaev cc810297f4
Align style doc with samples (#5709)
* Added clang-format config

* Fixed style

* Fixed code-style for snippets and fixed build

* Disable clang-format for snippets

* Fixed comments
2021-05-25 10:32:48 +03:00
Ilya Lavrenov de58c8d008
WA for DLBench (#5737) 2021-05-21 12:53:18 +03:00
Ilya Lavrenov 1d5d43e402
Fixed condition for versioning (#5719) 2021-05-20 14:30:49 +03:00
Ilya Lavrenov 2bdd955d6e
Inference engine versioning (#5562)
* Exclude xbyak from install

* Added automatically generated InferenceEngineConfig.cmake

* Reverted a version back

* Fixed issues with target aliases

* Make TBB dependency private

* Made ie_parallel.cmake self-sufficient

* Don't expose ie_paralle.cmake to end users

* Fixed compilation with TBB

* Fixes for TBB

* Fixed vpu_graph_transformer compilation

* Fixed tests compilation

* Added install of ie_parallel.cmake

* Switched ENABLE_ALTERNATIVE_TEMP to OFF. Fixed COMPONENTS for TBB

* Fixed file name in install rules

* Added find_dependency for TBB in ie_parallel.cmake

* WA for cmake bug with PACKAGE_PREFIX_DIR

* Fixed no-deprecation to fix speech-library build

* Reverted version from 2.1.0 to 2.1

* Revert "Reverted version from 2.1.0 to 2.1"

This reverts commit 7cb5d1563c.

* Added versions to cmake

* Added versions to ie_version.hpp

* Returned custom version file back

* Added InferenceEngineConfig-version.cmake to share as well

* Disabled one more GPU test

* Added one more WA for CI

* WA for CI issue for C API

* Added InferenceEngineConfig-version.cmake to share as well

* Added verison parsing from ie_version.hpp

* Revert "[CPU] Add Roll support (#5112)"

This reverts commit 5d8f209df6.

* Revert "[CPU] windows_Interpolate_fused-FQ_nearest-mode_nspc-layout_fix (#5317)"

This reverts commit 0808975a37.

* Revert "[INT8][BF16] INT8 + BF16 feature was enabled (#5059)"

This reverts commit 7d2ec02d65.

* Support for components

* No version for IEDevScripts package

* Removed IE_VS_VER_HAS_VERSION from vs_version.rc.in

* Added compatibility for 2.x old versioning
2021-05-20 10:21:44 +03:00
Ilya Lavrenov 02b31b2cc7
Follow-up for PR 5638 (#5659) 2021-05-17 21:02:56 +03:00
Ilya Lavrenov 1353ed1f85
Support old TBBs in cmake (#5638)
* Support old TBBs

* Don't reset environment

* Removed useless NO_CMAKE_FIND_ROOT_PATH

* Fixed build with old TBB for Windows

* Fixed ngraph code style
2021-05-15 11:42:09 +03:00
Ilya Lavrenov 349e2910fe
Openvino autogenerated cmake (#5484)
* Exclude xbyak from install

* Added automatically generated InferenceEngineConfig.cmake

* Reverted a version back

* Fixed issues with target aliases

* Make TBB dependency private

* Made ie_parallel.cmake self-sufficient

* Don't expose ie_paralle.cmake to end users

* Fixed compilation with TBB

* Fixes for TBB

* Fixed vpu_graph_transformer compilation

* Fixed tests compilation

* Added install of ie_parallel.cmake

* Switched ENABLE_ALTERNATIVE_TEMP to OFF. Fixed COMPONENTS for TBB

* Fixed file name in install rules

* Added find_dependency for TBB in ie_parallel.cmake

* WA for cmake bug with PACKAGE_PREFIX_DIR

* Fixed no-deprecation to fix speech-library build

* Reverted version from 2.1.0 to 2.1

* Revert "Reverted version from 2.1.0 to 2.1"

This reverts commit 7cb5d1563c.

* Returned custom version file back

* Added InferenceEngineConfig-version.cmake to share as well

* Disabled one more GPU test

* Added one more WA for CI

* WA for CI issue for C API

* WIP
2021-05-07 11:57:51 +03:00
Kate Generalova 99df448669
refactor: add clang style check for samples (#5306)
* refactor: add clang style check for samples

* fix: add .clang-format for ie

* fix: style check for missing headers

* refactor: remove cpplint for IE samples

* fix: setw is not a member of std for classification_results.hpp

* feat: add indent after ifdefine

* feat: set up google style for IE samples

* fix indents for w_dirent headers

* fix: include issues for utils.cpp due to clang-format
2021-04-22 14:02:54 +03:00
Dmitrii Khurtin b718de0cee
[GNA] Update GNA library (#5228)
* [GNA] Update GNA library to 1191 version

* append symlink to libgna.so

* append selective unpacking of the archive

* changed the criterion for checking the unpacking process (exit code)

* remove tabs

* add equalToReferenceWithDelta_1191

* removed equalToReferenceWithDelta_1191

* master -> update_gna_library
2021-04-21 10:34:45 +03:00
Roman Donchenko d822bb0a87
cross_compiled_func.cmake: use native CMake functions instead of custom ones (#5200)
Also, use the appropriate property (COMPILE_DEFINITIONS) for definitions
instead of COMPILE_FLAGS.
2021-04-14 11:31:11 +03:00
Ilya Lavrenov cae6a3bdcd
Turn clang-format targets off is no clang (#5202) 2021-04-12 23:40:18 +03:00
Roman Donchenko b92d1c1bdd
Fix building MKLDNNPlugin when the source path contains spaces (#5109)
The key changes are:

* Using VERBATIM to ensure CMake property passes command-line arguments
  to child processes.

* Using the INCLUDE_DIRECTORIES property instead of COMPILE_FLAGS to add
  include directories, because COMPILE_FLAGS are treated as space-separated
  values. (A small side benefit is that this doesn't rely on -I being
  the include directory option.)

In addition, some changes had to be made in order to preserve behavior:

* The _GEN_ARGS_LIST variable has to be inlined, because ARCH_SET is a list,
  and therefore the "-DXARCH_SET=..." argument gets split into multiple arguments
  (this happens to work by coincidence without VERBATIM). IMO, the code looks
  better this way anyway.

* It's no longer necessary to replace spaces in XARCH_SET in
  cross_compiled_disp_gen.cmake, because those spaces were an artifact of how
  the CMake arguments were passed before.
2021-04-12 13:27:49 +03:00
Ilya Churaev 007078de49
Added coverage cmake script for nGraph (#4979)
* Added coverage cmake script for nGraph

* Added common GCDA folder
2021-03-28 20:05:45 +03:00
Egor Duplensky 1ffeb24a41
Prevent unloading libraries at runtime for sanitizer builds (#4986)
Otherwise sanitizer is not able to resolve libraries symbols
at the end of binary execution
2021-03-27 23:11:57 +03:00
Ilya Lavrenov 8a3ff9aeae
Removed not needed suppressions for deprecated API in ngraph (#4992)
* Removed not needed suppressions for deprecated API in ngraph

* Fixed compilation with deprecated API in 3rd party with MSVC
2021-03-27 14:32:17 +03:00