Commit Graph

278 Commits

Author SHA1 Message Date
Ilya Lavrenov
ee0bb79ed6 Fixed LTO build (#16629)
* Partially fixed LTO

* Fixed issues with cnpy LTO

* CPU

* Disabled failing GPU test
2023-03-31 11:34:42 +04:00
Ilya Lavrenov
e94f7b25c0 Fixed cmake dev warnings (#16655) 2023-03-30 21:01:41 +04:00
Przemyslaw Wysocki
591c3e61c5 [PyOV] Simplify requirement files (#15343)
* Partial progress

* Finish v1

* Cleanup

* Remove useless files

* Fix path to pdpd

* Fix onnx path

* Minor change

* Rework MO

* Minor change

* Remove some costraints

* Add MO constraints

* Update gitignore for MO

* Minor change

* Apply tech sync discussion

* Cleanup

* CR comment

* Debug ONNX FE

* simplify ONNX FE

* Update cmake

* Hardcode ONNX requirement

* Add dependency resolver to cmake

* Add constraints for openvino/tests

* Add missing pytest-html

* Fix -c path

* Revert debug changes to path

* Add cmake to copy constraints.txt

* Update dependabot

* Remove slash

* Remove cmake

* Debug prints

* Minor changes

* Move reqs check to separate file

* Add requirements parser to benchmark_tool

* Fix smoke tests constraints

* Minor fixes

* Minor change

* My fixes were apparently wrong

* Debug - self.executable_path

* Debug - add singledispatch to tests and tools

* Debug - print IE_APP_PATHs

* Revert "Debug - print IE_APP_PATHs"

This reverts commit 67ccb6d3f5.

* Revert "Debug - add singledispatch to tests and tools"

This reverts commit 3b945931e2.

* Revert "Debug - self.executable_path"

This reverts commit 3aa724eff6.

* update dependabot

* update dependabot

* Skip benchmark_app tests

* Use CMAKE_CURRENT_BINARY_DIR in cmake

* Remove debug prints

* minor change

---------

Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
2023-03-29 14:27:27 +04:00
Ilya Churaev
f3dcf93f96 Remove suppression Wno-delete-non-abstract-non-virtual-dtor (#16560)
* Remove suppression Wno-delete-non-abstract-non-virtual-dtor

* Fixed Allocator warning

* Suppress warning for GPU plugin

* Skip warning for GNA

* Fixed preprocessing

* Added virtual constructor for base plugin class

* Some fix for CPU

* Suppress for CPU

* Fixed any

* Fixed meta

* Disable warning for paddle

* Fixed Allocator tests

* Move suppress to paddle

* Fixed benchmark_app
2023-03-29 14:19:30 +04:00
Ilya Churaev
9eab122952 Disable QSpectre flag by default (#16526) 2023-03-24 13:55:42 +04:00
Georgy Krivoruchko
7601e8a874 Added compilation flag (#15436) 2023-03-24 07:09:29 +04:00
Ilya Churaev
a205c675db Fix leftovers after removing plugins.xml (#16487)
* Fixed comments

* Rename ie_plugins to ov_plugins

* Remove dependency from tests
2023-03-23 04:32:36 +00:00
Ilya Churaev
c23a1170ba Remove plugins xml (#16470)
* Update core_impl.cpp

Add first implementation of register_compile_time_plugins (needs to depend on the actual CMake configuration as a next step).

* Update core.cpp

Check for missing plugins.xml

* Update core_impl.cpp

Avoid exception for missing plugins.xml

* Update core_impl.hpp

Add register_compile_time_plugins function definition

* Plugin loading based on CMake configuration

* Remove debug output command

* Unify static/dynamic plugin loading

* Add CMake option for plugins.xml that defaults to off

* Move GENERATE_PLUGINS_XML option to features.cmake

* Add missing brace

* Remove unnecessary #ifdef check

* Prepare to resolve conflicts

* Fix compile error

* Activate generation of plugins.xml in OpenVINODeveloperPackageConfig.cmake

* Fix CMake installation

* Plugin loading logic implemented in ie_core.cpp as well

* Fix format

* Small fixes

* Fixed code style

* Skip if xml file wasn't found

* Added function to find compiled plugins

* Generalize plugins hpp

* Use new API

* Fixed old core

* Fixed static build

---------

Co-authored-by: CSBVision <bjoern.boeken@csb.com>
2023-03-22 15:51:07 +00:00
Ilya Lavrenov
f080a0d9cf Added NCC style for frontends sources (#16200)
* Ability to provide several source dirs for ncc-style checks

* Fixed include headers; added NCC to TF common

* Fixed NCC for frontends

* Fixed NCC for frontends

* Extra fixes

* Fixest push --f

* Clang-format

* Apply comments

* Add an option to specify required clang-format version

* Update src/frontends/tensorflow/src/decoder_proto.cpp

* Update src/frontends/tensorflow/src/decoder_proto.cpp
2023-03-13 14:54:00 +00:00
Ilya Lavrenov
e1fbb7d768 Fixes for multi-config generators (#16097) 2023-03-05 10:46:53 +04:00
Ilya Lavrenov
3c67509fc8 Removed custom cmake message (#16030) 2023-03-01 19:25:37 +04:00
Ilya Lavrenov
ba19d945ac Fixed clang-format for C API (#16024) 2023-03-01 16:36:20 +04:00
Ilya Churaev
113aefa3ff Move internal api to ov (#15964)
* Move cpu streams executor to new API

* Remove legacy headers from new dev API

* Fixed build issues

* Fixed build

* Fixed typo

* Fixed typo

* Fixed build

* Fixed code style

* Add exception for template constructor of SoPtr
2023-03-01 14:00:55 +04:00
Vitaliy Urusovskij
5e48941f53 Apply Apivalidator to extra TBB libs (#15938) 2023-02-28 15:34:14 +04:00
Ilya Lavrenov
713b37cb25 Detection of WoA ARM64 in all places (#15960) 2023-02-27 10:29:14 +04:00
Ilya Lavrenov
5526969eba Turn off apiValidator for ARM64 WoA hosts (#15958) 2023-02-26 22:51:37 +04:00
Ilya Lavrenov
15990afea2 Prevent infinite recursion (#15953) 2023-02-25 23:32:45 +04:00
Ilya Lavrenov
c0ef9a862e Fix for apiValidator when more than 1 target needs to be checked (#15950) 2023-02-25 16:33:08 +04:00
Ilya Lavrenov
6d7b94b8cd Improved API validator logic (#15942) 2023-02-25 01:11:50 +04:00
Ilya Lavrenov
95c7c39b91 Supported rpmlint versions less 2.0 (#15856) 2023-02-22 01:35:28 +04:00
Maxim Kurin
f347968a1d Don't use gold linker if mold linker is provided (#15746) 2023-02-21 10:57:41 +04:00
Ilya Lavrenov
ed5fa69b41 Fixed compilation on CI (#15787) 2023-02-17 22:28:48 +04:00
Ilya Lavrenov
672522492e Changed sample's format_reader libraries type from dynamic to static (#15756) 2023-02-17 09:30:19 +04:00
Ilya Churaev
b83ccdd432 Removed TREAT_WARNING_AS_ERROR option (#15608)
* Removed TREAT_WARNING_AS_ERROR option

* Removed warning as error for samples if cmake option is not defined
2023-02-10 21:43:08 +04:00
Ilya Lavrenov
84ecacda26 Windows ARM64 support via LLVM (#15585) 2023-02-09 11:30:07 +04:00
Ilya Lavrenov
1f3e469c5e Added -Wall for Clang and GCC (#15513)
* Added -Wall for Clang and GCC

* Fixes

* Don't use /J

* Fixed warnings

* Fixed warnings

* More fixes

* Fixed for MSVC

* Fixed more warnings on Windows

* Suppressed some warnings in template plugin

* Update src/tests/functional/plugin/shared/include/behavior/plugin/caching_tests.hpp

* Added suppression for PT FE

* Suppressed warnings in TF FE

* Suppressed warnings on Core unit tests

* Suppress warnings in python

* Suppressed Windows warning for 3rd party modules

* Suppresed one more warning
2023-02-08 15:01:00 +04:00
Ilya Lavrenov
5743805bd1 Added warning (#15505) 2023-02-04 14:32:52 +04:00
Ilya Churaev
1bb8223ecd Template ov plugin (#15220)
* Initial migration of TemplatePlugin to ov::IPlugin interface

* Fixed segfault

* Fixed static build and some template tests

* Fixed code style

* Fixed some template tests

* Fixed scale tests

* Disabled transformations in the template plugin

* Fixed ONNX tests

* Fixed compilation

* Fixed core tests

* Fixed some crashes

* Small fixes

* Migrate to ICompiledModel

* Fixed some behaviour tests (add legacy names and supported_properties)

* Fixed output precisions

* Fixed some tests

* Changed parameter->result test

* Fixed some preprocessing tests

* Added mean image preprocessing

* Disabled some tests

* Fixed some template tests

* Try to fix not implemented false

* Try to fix template tests

* Fixed doc

* Catch ov::NotImplemented exception

* Small changes

* Fixed build

* Try to fix build

* Fixed some comments

* Use new properties

* Fixed documentation

* Fixed properties
2023-02-03 13:37:40 +04:00
Ilya Lavrenov
3a1159eb5f Fixed WASM build for tests (#15376)
* Fixed WASM build for tests

* Update cmake/developer_package/models.cmake
2023-01-28 10:55:44 +04:00
Ilya Lavrenov
290947da84 Added libflatbuffers-dev as a dependency for build (#15371)
* Added libflatbuffers-dev as a dependency for build

* Extra improvements
2023-01-27 20:00:26 +04:00
Evgenya Stepyreva
0513a79a79 Tensorflow Lite frontend (#14977)
* Infrastructure for tflite

* Removed submodule flatbuffers

* Added flatbuffers submodule. Fixed version to v22.12.06 aka acf39ff

* Move headers back

* Flatbuffers integration

* Small fixes

* Started parsing the Model

* flatbuffer changes

* decoder_flatbuffer changes

* Lite Input Model -- not needed as of now but looks cool

* Rolled back inherritance from ov::frontend::tensorflow::InputModel

* Results are not treated as outputs, but its ok

* Fix missplaced input vs output

* Refactor

* Load model op-by-op. Frontend API finalized

* Debugging still, there are prints here and there. Decoder is not sane

* Convolution with all attributes is translated and quantization is applied for inputs and constatants. TODO: quantize intermediate tensors, separate decoder specific logic?

* Float ssd and posenet models are showing good accuracy

* Need to refactor but work flawlessly

* Telemetry and lightweight model cutting

* Code style and test changes. Extensions supported

* Quantization and style

* Style refinements

* Move onednn back

* New portion of operations enabled

* TFLite FE doesn't inherrit TF FE

* Moved files to another directory

* Rename header op_table.hpp to common_op_table.hpp for all files in src/frontends/tensorflow_common/src/op/

* Removed visability macroses

* CMake changes

* Unit-test execution in .ci

* Update labeler.yml

* Codeowners

* Style check and fix

* Static Build arrangement

* Addressing the comments

* install common headers to previous place

* New approach with public decoder and graph_iterator

* New approach with public decoder and graph_iterator

* Move GraphIterator back

* Comments addressed

* Comments adressed

* Preliminary TF FE README.md changes

* Added target_compile_definitions OPENVINO_STATIC_LIBRARY for static build

* Fixed conflicts and added TF to common places

* Frontends use only openvino::core::dev API

* Merged common tensorflow changes and made code build and work on selective number of models

* Style

* Rollback unnecessary changes from Tensorflow FE

* Rollback unnecessary changes from Tensorflow Common

* Minor refactor

* cmake minor refactoring

* Mixed commit

* Style and merge fix

* Low hanging fruit operations

* Fix windows build

* Refactor quantization parameters representation

* license compliance. approved by OS PDT

* copyrights in generic file

* dependabot

* labeler

* Unit Test to be triggered in CI

* cmake variables naming. corrected copyright years in copyrights/generic file

* library renamed in .ci/ calls

* Copyright year update

* Set openvino-tf-frontend-maintainers as owner of /src/frontends/tensorflow_lite/

* Fixed flatc corss-compilation

* Cleaned flatbuffers header usage

* Nitpicks solved

* Update cmake/templates/OpenVINOConfig.cmake.in

* Compile with flatbuffers headers

* Fixed "which is prefixed in the source directory"

* Fixed typo in flatbuffers cmake

* Removed flatbuffers submodule

* Added fork submodule

* Fixed static build

* Fixed cross-compilatio

* Fixed -Wshadow warning

* Fixed warning on Windows

* Use only headers from flatbuffers library

* Added LTO and fixed compilation errors on Windows

* Fixed warnings in tensorflow_common

* Move ctors implementation to cpp file

* Added information about new frontends to common FEm part

* Temporaryily disable warnings

* Fixed code style using clang-format

* Fixed Windows

* reverted changes in onnx

* Revert changes in onnx_common

* Removed pragma once frm cpp

Co-authored-by: missjane <estepyreva@gmail.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-27 06:27:59 +04:00
Artemy Skrebkov
bf98d31393 Remove SDL check WA for VPUX (#15106)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-25 19:24:12 +04:00
Ilya Lavrenov
0970bc8fcf Moved legacy library and deprecated tests to GNA (#15244) 2023-01-25 11:36:22 +04:00
Ilya Lavrenov
c4eeecfec5 Remove myriad plugin (#15131)
* Removed Intel MYRIAD plugin

* Removed Intel MYIAD from CI files

* Removed Intel MYRIAD from cmake folder

* Removed MYRIAD, HDDL from samples

* Removed MYRIAD, HDDL from scripts folder

* Removed MYRIAD from bindings folder (C and Python API)

* Removed MYRIAD tests

* Removed MYRIAD from tests folder

* Removed MYRIAD from tools folder

* Removed HDDL (VAD), MYRIAD (NSC2) from documentation

* Fixed build for AUTO unit tests

* Fixed clang code style

* Fixed comments and issues

* removed MYRIAD from AUTO tests

* Disabled MULTI tests in CI

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

* Update docs/get_started/get_started_demos.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

* Update docs/OV_Runtime_UG/deployment/local-distribution.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2023-01-18 15:19:44 +04:00
Ilya Lavrenov
c29f111717 Enabled Windows ARM64 build using MSVC cl compiler (#15132)
* Fixed Windows Arm64 build

* Fixed linker warnings in docs

* Fixed Windowd ARM build

* Reverted changes in docs

* Added OpenVINO level macro to define CPU architecture

* Properly remove xbyak from reference kernels optimizations

* Added documentation for cmake functions

* Fixed samples build

* Added installation dir for host protoc

* Fixed installation stage for host_protoc

* Added build dir

* Fixed compilation on Apple

* cççç

* Fixed clang code-style

* Tely on CPU id from xbyak

* Fixed build

* Fixed compilation on mac

* Fixed compilation
2023-01-17 17:29:00 +04:00
Marcin Kusmierski
745ef24e19 [CMAKE][NCC] Enable custom ncc style file and Improve ncc usage for windows. (#15031)
* add possibility to set custom ncc style file
* add possibility to run NCC on Windows in case Clang is installed
    and available in PATH
2023-01-17 15:10:13 +04:00
Ilya Lavrenov
8eed22b477 Remove excess dependencies from scripts (#14995)
* Remove excess Azure Pipelines steps

* Installed unzip inside Azure pipelibes

* Added --no-install-recommends

* Move ccache to build tools

* Added libffi-dev for python _stypes

* Exit if debian packages cannot be installed

* Added comment

* Install wget for cmake downloading

* Update Azure

* Try to fix samples tests on Debian Linux

* Fixes

* Moved env

* More refactoring

* Fixes

* Revert: bash => script back

* Fixed arm64 linux

* Fixed CUDA

* Fixed mac

* Try to fix

* Try to fix cuda

* Fixed CUDA

* Fixes

* Optimize Mac build

* Fixed windows

* Try to fix debian

* Build CC COLLECT

* Use ninja for CC

* Try to fix WinCC

* Apply suggestions from code review

* Fixed sample spath

* Update .ci/azure/windows_conditional_compilation.yml

* Apply suggestions from code review

* Fixed CC ON compilation with ninja

* Improvements

* Print CC header content

* Try to fix Ninja build for Win CC

* Added explicit dependency between targets

* Reverted changes in Windows CC Azure config

* Update cmake/developer_package/compile_flags/os_flags.cmake
2023-01-16 12:12:57 +04:00
Ilya Churaev
0c9abf43a9 Updated copyright headers (#15124)
* Updated copyright headers

* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"

This reverts commit 372699ec49.
2023-01-16 11:02:17 +04:00
Ilya Lavrenov
efa5c51122 Compilation for WebAssembly: part 1 (#15008) 2023-01-10 13:02:22 +04:00
Ilya Lavrenov
808a6b7b83 cmake: arm rasp-pi cross-compilation on macOS (#14894) 2023-01-03 11:48:33 +04:00
Ilya Churaev
a8fa767f41 Fixed sanitizer flags for Ubuntu (#14763) 2023-01-02 12:33:29 +04:00
Arseniy Obolenskiy
b5ee9a8d3a Fix samples build on ARM (32-bit) (#14832) 2022-12-28 12:35:25 +03:00
Ilya Churaev
139a9de45b Revert zi fs flags (#14782)
* Revert "[VPUX] - add replacement /Z7 -> /Zi /FS (#14753)"

This reverts commit 4dc44a5a26.

* Revert "Use Zi FS instead of Z7 (#14741)"

This reverts commit 1147777808.

* Revert "[OV][VPUX] - Debug build flags (#14651)"

This reverts commit d300abf743.
2022-12-23 10:59:14 +04:00
Daria Mityagina
4dc44a5a26 [VPUX] - add replacement /Z7 -> /Zi /FS (#14753) 2022-12-22 12:22:00 +03:00
Daria Mityagina
d300abf743 [OV][VPUX] - Debug build flags (#14651)
* [TEST] - Debug build flags

* Remove the pdb config to let each project use own vxx.pdb file.

Co-authored-by: Xin Wang <xin1.wang@intel.com>
2022-12-20 11:38:43 +04:00
Ilya Churaev
59e04c9c59 Fixed sanitizer for Apple clang (#14556)
* Fixed sanitizer for Apple clang

* Update cmake/developer_package/compile_flags/sanitizer.cmake

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-12-12 14:00:49 +04:00
Ilya Lavrenov
6dd8a93735 Made OpenVINO cmake scripts Linux flavors agnostic (#14384)
* Use prebuilt cmake in install-dependencies steps

* Removed building of custom python to save Azure CI time

* Adjusted conditions in cmake

* Download VPU custom kernels compiler only for x86

* Removed -pyver argument

* Improvements

* Detect glibc version

* Usage of new glic variable

* Fixed typo

* Increased glibc version for MYRIAD case

* Made OpenVINO cmake Linux flavors agnostic

* Detect glibc version on RedHat

* Use clcompiler only since ubuntu 18.04

* Universal way to detect glibc version

* Revert some changes

* Apply suggestions from code review

fixes issue with GNA

* Apply suggestions from code review

fixed typo
2022-12-04 22:55:52 +04:00
Ilya Lavrenov
3ec084074a RPM packages improvements: part 2 (#14306)
* Updated install_dependencies.sh

* Added Fedora support

* Improvements for RPM generation

* Refactored work with gflags

* Apply suggestions from code review

* Improvements

* Several improvements for Ubuntu 18.04

* Improvements in gflags

* Update thirdparty/CMakeLists.txt

temporary install samples dependencies

* Fixed several mistakes

* Fixed issues with gflags

* Don't install dependencies on Linux

* Added nlohmann findinds on debian9 case

* Added FATAL_ERROR is gflags is not found in samples

* Fixes for samples on CentOS 7

* Cross-compiled debian packakges with proper libraries location

* Fixed include for old nlohman-json versions

* Fixed compilation with old json

* Applied review comments

* Added support of old nlohmann versions via submodule

* Temporary WA for CentOS 7

* Fixed compilation with old gflags

* Fixed compilation of C samples

* Fixed gflags on RHEL8.2 / Debian 9
2022-12-01 23:57:23 +04:00
Zlobin Vladimir
c09af40b4c No-break space->space, asssuming->assuming (#14276)
* No-break space->space, asssuming->assuming

* benchmark_app: don't print warning each iteration

* Russian с->English c

* Warn no batch only once

* Allow anonymus namespaces

* Keep only one report of model bach size, warn_if_no_batch for static model as well
2022-11-30 11:25:16 +00:00
Ilya Lavrenov
79c6968024 Added older pugixml version support (#14260)
* Added pugixml finding w/o cmake, pkg-config

* Fixed findings

* Pugixml

* Removed sudo from install_build_dependencies.sh

* Fixed compilation with old pugixml

* Fixed Azure pipelines

* Updated clang-format step

* Add new approach for pugixml find to OpenVINO Developer package

* Fixed compilation with older pugixml

* Added openssl-devel for cmake build

* Fixed finding pugixml in developer package
2022-11-28 11:54:54 +04:00