Commit Graph

255 Commits

Author SHA1 Message Date
Ilya Lavrenov
138fb37fde Use clang-12 for U20 (#9867) 2022-01-24 14:23:16 +03:00
Mikhail Nosov
d8e557b39c FrontEnds.cmake: FEM include headers as public (#9792)
ONNX/Paddle/TF frontends: added 'standalone_build' target to verify that frontends can be used standalone by applications
2022-01-21 13:43:07 +03:00
Alexey Suhov
a79830cb55 Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
Anton Dudchenko
eb299f819e [IE][VPU] Rename and move VPU plugin to src/plugins (#9110)
* [IE][VPU] Rename and move VPU plugin to src/plugins

* Update some dependencies

* Change .md

* Update some dependencies

* Update some dependencies (again)

* I'll rename this one

* Remove ENABLE_MYRIAD arg

* Update XLink.cmake

* Update thirdparty CMakeList

* Minor fixes
2022-01-14 14:02:08 +03:00
Pavel Zamelin
2e59029e68 Fix build error with -DBUILD_SHARED_LIBS=OFF (#9639)
* Add _ov_frontends_hpp dependency to frontend_common_obj

* Move _ov_frontends_hpp dependency to frontend_common_obj
2022-01-14 07:53:14 +03:00
Ilya Lavrenov
9ef48cbe6d Moved NCC check to U20 (#9631) 2022-01-14 07:50:55 +03:00
Ilya Lavrenov
5affdc3284 Added NCC support for source files (#9630) 2022-01-14 07:50:30 +03:00
mei, yang
e6d062e395 remove option ENABLE_SHUTDOWN_PROTOBUF (#9619)
* remove option ENABLE_SHUTDOWN_PROTOBUF

* shutdown protobuf library is enabled automatically if protobuf is used in frontend
2022-01-14 05:02:26 +03:00
Ilya Lavrenov
9fe5165ffa Support of clang-11 (#9620) 2022-01-13 14:31:25 +03:00
mei, yang
6ae0ba481e fix build issue on android on shutdown protobuf (#9615)
* fix build issue on android on shutdown protobuf

* add ie_dependent_option for shutdown protobuf
2022-01-13 11:47:54 +03:00
mei, yang
613facafde ShutdownProtobufLibrary when unload paddle frontend dynmaic library t… (#9442)
* ShutdownProtobufLibrary when unload paddle frontend dynmaic library to fix probuf memory leak

* ShutdownProtobufLibrary if the frontend libraries use protobuf

* make shutdown_protobuf a library
2022-01-12 13:07:51 +03:00
Dmitrii Khurtin
ddc4098473 [GNA] Fixed symbolic links in tarball (#9545) 2022-01-11 16:22:28 +03:00
Maxim Shevtsov
49b5e5728b Auto Batching impl (#7883)
* auto-batching POC squashed (all commits from auto-batch-2021.3 branch)

(cherry picked from commit d7742f2c747bc514a126cc9a4d5b99f0ff5cbbc7)

* applying/accomodating the API changes after rebase to the master

* replaying modified version of actual batch selection

* eearly experiments with model mem footprint

* changes from rebasing to the latest master

* experimenting with DG1 on the batch size selection, also collecting the mem footprint

* WIP:moving the auto-batching to the icore to let the MULT/AUTO support that, ALLOW_AUTO_BATCHING as a conventional config key. still fials hot device swap

* quick-n-dirty batch footpint vs device total mem

* code style

* testing which models perform badly due to kernels and NOT (batched) footprint

* stub  pipeline task to comunicate the readiness rather than promise/future

* quick-n-dirty timeout impl

* explicit _completionTasks,reverting BA to use the timeout

* inputs outputs copies, works with AUTO and demo now

* accomodate the config per device-id, after rebase to the latest master

* allowing the auto-batching only with tput hint to let more conventional tests pass

* fix the pre-mature timeout restaring via waiting for batch1 requests completion

* moved the bacthed request statring ( along with input copies) to the dedicated thread

* [IE CLDNN] Disable bs_fs_yx_bsv16_fsv16 format for int8 convolution

* code style

* increasing the timeout to test the ssd_* models perf (timeout?) issues

* reducing number of output stuff in BA to avoid bloating the logs in experiments

* more aggressive batching for experiments, not limited to 32 and also 4 as a min

* more accurate timeout debugging info

* getting the reqs limitation from the plugin SetConfig as well

* refactor the reshape logic a bit to accomodate CPU for bathcing, also added remeote context

* let the benchamrk_app to consume specific batch values for the auto-batching such as BATCH:GPU(4)

* auto-batching functional test (with results check vs ref) and GPU instance for that

* fixed arithemtic on blobs ptrs

* clang

* handling possible batched network failure

* BATCH as the constants device name in test

* ENABLE_BATCH

* func tests for CPU, also DetectionOutput hetero tests (CPU and GPU)

* DetectionOutput hetero test for the CPU

* reenabling the Auto-Batching in the AUTO

* auto-batching device enabled in the test

* fixed the DO test

* improve the loading loop logic

* brushed the config keys

* allow hetero code-path for explicit device name like BATCH:GPU(4), used in the hetero code-path tests

* fix the test after refactoring

* clang

* moving ThreadSafeQueue to the ie_parallel, as it is re-used in the AUTO/MULTI and BATCH now

* auto-batching hetero test (subgraph with DetectionOutput)

* fixed minor changes that were result of experiments with impl

* code-style

* brushing, disabling CPU's HETERO tests until planned activity for 22.2

* removing home-baked MAX_BATCH_SZIE and swicthing to the official impl by GPU team

* remote blobs tests for the auto-batching (old API)

* brushed names a bit

* CreateContext and LoadNEtwork with context for the Auto-Batching plus remote-blobs tests

* fixed the ieUnitTests with adding CreateContext stub to the MockICore

* clang

* improved remote-blobs tests

* revert the back BA from exeprimenents with AB + device_use_mem

* conformance tests for BATCH, alos batch size 1 is default for BATCH:DEVICE

* remote blobs 2.0 tests, issue with context having the orig device name

* debugging DG1 perf drop (presumably due to non-fitting the device-mem)

* disbaling WA with batch/=2 for excesive mem footptint, leaving only streams 2

* remote blobs 2.0 tests for different tensor sharing types

* converting assert to throw to accomodate legacy API where the lock() was possible to be called

* revert the timeout back to avoid mixing the studies, fixed the footprint calc

* reverting to estimating the max batch by extrapolating from bacth1 size

* more conservative footptint etimation (with bacth1), graceful bacth 1 handling without duplication

* even graceful batch 1 handling without duplication

* WA for MAX_BATCH_SIZE failure, removing batch4 as a min for the auto-batching

* AutoBatchPlugin -> ov_auto_batch_plugin

* WA for gcc 4.8

* clang

* fix misprint

* fixed errors resulted from recent OV's Variant to Any transition

* skip auto-batching for already-batched networks

* AUTO_BATCH_TIMEOUT and tests

* GPU-specific L3

* switched to pure config, also improved ALLOW_AUTO_BATCHING config key handling logic

* debugging device info

* enabling the config tests for the GPU and fixing the Auto-batching tests to pass

* making the default (when not recognized the driver) cache size more aggressive, to accomodate recent HW with old drivers

* skip auto-batching for RNNs and alikes (e.g. single CHW input)

* fixed fallback to the bacth1 and moved HETERO path under condition to avoid bloating

* brushing

* Auto plugin GetMetric support gpu auto-batch

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* add test case

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* add comments on test

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* brushing the vars names, alos adding the excpetion handling

* disabling the auto-batching for the networks with non-batched outputs and faster-rcnn and alikes (CVS-74085) to minimize the of #failures

* add try catch

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* brushing the code changed in the GPU plugin

* Auto-Batch requests tests

* brushed varibles a bit (ref)

* cleaned debug output from the ie_core

* cleaned cmake for the Auto-Batch

* removed batchN estimation from batch1

* cleaned from debug printf

* comments, cleanup

* WA the mock test errors introduced with merging the https://github.com/myshevts/openvino/pull/13

* Adding back  removed batchN estimation from batch1 to debug degradations on DG1 (resulted from too optimistic MAX_BATCH_SIZE?). This partially reverts commit e8f1738ac1.

* brushing ie_core.cpp

* fix 32bit compilation

* Code review: ENABLE_AUTO_BATCH

* consolidate the auot-batching logic in ie_core.cpp into single ApplyAutoBAtching

* renamed brushed the OPTIMAL_BATCH (now with_SIZE) and mimicks the MAX_BATCH_SZIE  wrt MODEL_PTR

* default value for the OPTIMAL_BATCH_SIZE

* clang

* accomodate new func tests location

* fix shuffle of headers after clang + copyrights

* fixed misprint made during code refactoring

* moving the common therad-safe containers (like ThreadSafeQueue) to the dedicated dev_api header

* switch from the device name to the OPTIMAL_BATCH_SIZE metric presence as a conditin to consider Auto-Batching

* switching from the unsafe size() and minimizing time under lock

* code style

* brushed the ApplyAutoBatching

* brushed the netric/config names and descriptions

* completed the core intergration tests for the auto-batching

* ExecGraphInfo and check for incorrect cfg

* removed explicit dependencies from cmake file of the plugin

* disabling Auto-Batching thru the tput hint (to preserve current product default), only excplicit like BATCH:GPU used in the tests

Co-authored-by: Roman Lyamin <roman.lyamin@intel.com>
Co-authored-by: Hu, Yuan2 <yuan2.hu@intel.com>
2021-12-24 12:55:22 +03:00
Ilya Churaev
5e1d241c11 Renamed template plugin and tests (#9389)
* Renamed template plugin and plugin's tests

* Renamed template_extension
2021-12-23 14:59:24 +03:00
Andrey Sapozhnikov
da67ba135c [GNA] Remove GNA Library versioning (#9319) 2021-12-23 14:32:58 +03:00
Vladislav Volkov
60a11a6348 [CPU] Renamed CPU plugin to ov_intel_cpu_plugin (#9342) 2021-12-23 11:49:25 +03:00
Ilya Lavrenov
4eea535e78 Includes in frontends (#9378)
* Used full paths in public includes

* Fixed install of ONNX include
2021-12-23 11:37:06 +03:00
Ilya Churaev
42350a705e Remove legacy targets (#9333)
* Remove some legacy targets

* Replace some targets

* Removed inference_engine_plugin_api dependency

* Minor comment for developer config

* Fixed include paths

* Small fixes for static build

* Try to fix build pyopenvino

* Fixed comments

* Try to fix build

* Include OpenVINODeveloperPackage inside InferenceEngineDeveloperPackageConfig

* Try to fix GAPI tests
2021-12-23 08:16:23 +03:00
Ivan Tikhonov
0bbda24186 Paddle FrontEnd Refactoring (#9157)
* Refactor PaddlePaddle FrontEnd

* Codestyle

* FrontEnd,InputModel,Place base classes -> abstract, renamed model file

* Fix unit tests

* fix unit tests

* ngraph:: to ov::

* Rename frontends dir to frontend

* Rename paddlepaddle to paddle; pdpd to paddle

* add missing file

* codestyle

* Remove local change

* paddlepaddle -> paddle for azure configs and .md files

* fix package name, fix config files

* Fix win build

* Revert Broadcast/AutoBroadcast changes

* codestyle

* fix FronEnd class

* fix ngraph_cpp_api.config

* codestyle

* merge master

* fix build

* refactoring; revert broadcast/autobroadcast changes

* codestyle

* fix MacOS config
2021-12-22 11:20:54 +03:00
Ilya Churaev
ec858fcffd Add OV developer config (#9298)
* Introduced OV developer package config

* Remove new targets from old configs

* Fixed python build

* Removed OpenVINO_SOURCE_DIR from developer config
2021-12-21 12:25:07 +03:00
Ilya Churaev
dbf8fcf556 Create ov_runtime library (#9199)
* Create ov_runtime library

* Added dev target

* Fixed SOURCE_DIR property for interface lib

* Fixed missed include path

* Fixed SOURCES for plugins and frontends

* Fixed Windows export

* Try to fix preproc build

* Fixed MKLDNNPlugin

* Fix C API

* Try to fix public CI

* Fixed comments

* Use TARGET_NAME variable

* Fixed static build

* Fixed target name in comfig

* Revert "Fixed target name in comfig"

This reverts commit f61c1e0c09.

* Try to remove WA with include path

* Try to fix TBB dependency for old CMake

* Revert install to lib for legacy tests

* Try to fix public tests

* Add WA for v7 reader

* Fixed dev export name

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2021-12-20 11:59:08 +03:00
Ilya Churaev
be86ec51ab Renamed frontends from *ov_frontend to ov_*_frontend (#9275)
* Renamed frontends from *ov_frontend to ov_*_frontend

* Fixed MO

* Fixed include
2021-12-18 13:25:42 +03:00
Ivan Tikhonov
59fca61dd5 [FrontEnds]: Fix build issue on Win platforms (#9274)
* include place.hpp into input_model.hpp

* resolve issues in api validator

* set full namespaces for Place::Ptr in input_model
2021-12-17 13:37:16 +03:00
Ivan Tikhonov
dbd2b5dc08 ONNX/IR/Common FrontEnds Refactoring (#9174)
* Refactor ONNX,IR,Common FrontEnds

* Rename frontends dir to frontend

* Rename frontend_manager, frontend_defs -> manager, defs; move Place, InputModel to src for Paddle FE

* remove exports for ir/input_model

* fix unit tests

* Fix unit tests

* revert ONNX_API/IR_API defines

* move manager.hpp to frontend dir

* delete common folder; rename defs to visibility; fix includes

* revert local changes

* codestyle

* fix build: set correct includes

* fix includes

* fix build; resolve review comments

* fix install paths

* correct installation folder for onnx_import

* use IE_THROW in ir frontend
2021-12-17 08:05:30 +03:00
Ilya Churaev
e8d5cf43d0 Move ie tests (#9161)
* Moved inference engine tests

* Fixed cmake

* Fixed paths

* Try to fix build

* Try to fix fluid tests

* Try to fix CI

* One more fix

* New issue

* Additional fix

* Disable Wall for tests

* Fixed old unit tests

* Revert "Disable Wall for tests"

This reverts commit 8b6e058f59.

* Fixed some tests

* Fixed master build

* Fix build

* Fixed some warning

* Fixed merge conflicts

* Try to fix LTO
2021-12-15 08:50:56 +03:00
Ilya Churaev
28756d6ccf Introduce separate install TBB script (#9175) 2021-12-13 23:46:39 +03:00
Ilya Churaev
4f62a48077 Remove ngraph backends (#9162) 2021-12-13 00:04:56 +03:00
Ilya Lavrenov
02e7706776 Merged ngraph & core components (#9101) 2021-12-09 15:38:44 +03:00
Ilya Lavrenov
e0ae61b06d Added optional for exclude_from_all targets (#9100) 2021-12-09 08:51:21 +03:00
Gleb Kazantaev
d18e80b604 Move back temp frolder to the CMAKE_SOURCE_DIR (#9072)
* Move back temp frolder to the CMAKE_SOURCE_DIR

* Fix windows azure
2021-12-09 00:00:36 +03:00
Ilya Lavrenov
64367fbca2 Export frontend_common as dev target (#9003) 2021-12-08 17:18:44 +03:00
Krzysztof Bruniecki
893dd4531e [GNA] Move to GNA Lib 3.0.0.1455 with extended CNN2D capabilities for GNA HW 3.0 (#8901)
* Switch to GNA Lib 3.0.0.1455, Adapt to new GNA 3.0 (ADL) limitations

   Apply limitations for GNA 3.0 CNN2D as in 22013786746
   Add new CNN2D tests for GNA 3.0 and update negative tests
   Switch download of 1455 to 01.org
   Fix weight reducer

* Apply review

	Increase max kernel number to 1024
	Update negative test
2021-12-08 14:55:20 +03:00
Ilya Churaev
d502208f6e Remove ngraph options (#9016)
* Renamed options

* Fixed configs

* Renamed unit tests

* Fixed cmake generation

* Fixed comments

* Fixed comments
2021-12-08 08:17:31 +03:00
Alexander Zhogov
b1d3be7eea Revert "Move back temp frolder to the CMAKE_SOURCE_DIR (#8945)" (#9058)
This reverts commit 2e290a6e72.
2021-12-07 13:27:34 +03:00
Gleb Kazantaev
2e290a6e72 Move back temp frolder to the CMAKE_SOURCE_DIR (#8945)
* Move back temp frolder to the CMAKE_SOURCE_DIR

* Remove package type search in MO
2021-12-07 12:38:45 +03:00
Mikhail Ryzhov
40691e9cc5 [GNA] Renamed plugin and moved it to new place (#8944)
* Renamed plugin

* Changed plugin source dir

* Fixed tests

* Renamed ENABLE_GNA to ENABLE_INTEL_GNA

* Fixed centos compile error

* One more renaming place

* HF for centos 7

* renamed the name in version api

* Fixed CI configurations

* Disabled GNA plugin for old gcc (<=5.4)

* Fixed Azure Win job
2021-12-06 13:00:35 +03:00
Wang, Yang
83a7d9bda3 [AUTO Plugin] Rename Multi plugin to ov_multi_plugin and move the src files to new (#8885)
place.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2021-12-06 05:58:05 +03:00
Evgeny Talanin
fb103e1dd0 Revert "Revert "disable debug postfix on mac (#6827)" (#8974)" (#9000)
This reverts commit e81e60b233.
2021-12-03 13:03:17 +03:00
Ilya Lavrenov
e81e60b233 Revert "disable debug postfix on mac (#6827)" (#8974)
This reverts commit 6f23458534.
2021-12-02 12:30:01 +03:00
Alexander Sesorov
4b8d6c59e3 Update sanitizer flags for windows (#8830) 2021-12-02 01:33:34 +03:00
Ilya Lavrenov
5a52a8e4a3 Don't install content of openvino-dev; install wheels (#8820)
* Don't install content of openvino-dev

* Install MO in tests

* Install python's BA tool only for tests
2021-12-01 14:34:50 +03:00
Vladimir Paramuzov
9b97619687 [GPU] Move plugin to new source dir (#8890) 2021-11-30 17:26:09 +03:00
Ilya Churaev
e07cef0191 Fixed coverage typo (#8889)
* Fixed coverage typo

* Renamed legacy

* Fixed names
2021-11-30 13:10:19 +03:00
Ilya Churaev
7678ab2b18 Move hetero plugin (#8872) 2021-11-29 14:05:08 +03:00
Ilya Churaev
a148e126b8 Fixed coverage paths (#8873) 2021-11-29 09:38:06 +03:00
Ilya Lavrenov
c02fe4b813 Static OpenVINO frontends (#8868)
* Static OpenVINO frontends

* ONNX tests with shared extension CustomOpUser_ONNXImporter

* Resolved issues with ONNX's NCC style check

* Reverted openvino => ngraph for frontend includes install

* Try to fix ONNX / Protobuf

* Try to fix CI

* Try

* Fixed cmake stage with BUILD_SHARED_LIBS

* Fixed export for linkable frontends

* Fixed warnings on Linux

* Fixed after ngraph => src
2021-11-28 21:36:24 +03:00
Ilya Churaev
77f6a0076b Move core components (#8869)
* Moved openvino to src

* Moved ngraph and frontends to src

* Fixed cmake generation

* Moved inference_engine libs to src

* Moved C API to src

* Fixed CMake generation

* Moved readers to tests, snippets and preprocessing to common

* Fixed CMake

* Moved transformations and lp_transformations

* Fixed transformations cmake

* Fixed build

* Fixed unit-tests and ci paths

* Fixed docs

* Fixed C API build

* Try to fix static build

* More clear order

* Renamed inference_engine_legacy_api to legacy

* Fixed some cmake scripts

* Fixed path to legacy

* Fixed Myriad plugin

* Fixed v7 reader

* Fixed plugin.hpp

* Fixed developer config

* Fixed ie_parallel
2021-11-27 18:53:12 +03:00
Ilya Lavrenov
5719192687 Use ninja multi-config (#8757)
* Use ninja multu-config

* Reused OV_GENERATOR_MULTI_CONFIG

* Try to use config in api_validator post build task

* Fixes

* Revert "[GPU] Fix multi configuration build of onednn_gpu (#8743)"

This reverts commit a862331732.

* Propogate disable deprecated for _RELEASE flags as well
2021-11-27 14:58:24 +03:00
Anton Pankratov
bd3e4fbe78 Added openvino any (#8288) 2021-11-26 12:23:25 +03:00
Maxim Vafin
2f612f776b Define common frontend (#8110)
* Rename and reorganize frontend_manager

* Apply codestyle

* Fix installing headers

* Fix codestyle
2021-11-24 18:56:05 +03:00