Compare commits

...
Author SHA1 Message Date
Ilya Lavrenov a5a969886b Preparation for python debian package (#13800) 2022-11-03 08:19:18 +04:00
Tetiana Gubanova a9a064b4b2 [GPU] Add blocked layout support to ExperimentalDetectronTopKRois operation (#12456)
* Addapt ExperimentalDetectronTopKRois to support blocked layouts

* Reformat arg_max_gpu_test

* Add support and tests to arg_max_min 2D case to support for ExperimentalDetectronTopKROIs operation
2022-11-03 06:14:54 +03:00
Roman Kazantsev fdee4ac703 [TF FE] Refactor Pad, PadV2, MirrorPad and add layer tests (#13597)
* [TF FE] Refactor Pad, PadV2, MirrorPad and add layer tests

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Recover translators for DynamicStitch

* Apply code-review feedback and workaround for i32 paddings

* Return required type for convert_pad_mode function

* Work around IR reader limitation with i32 type for Pad

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-03 02:02:36 +03:00
Ilya Lavrenov 838a6503a0 Pdpd tests moved to folder with frontend (#13414)
* Moved pdpd tests to folder with pdpd frontend

* Restored old requirements.txt for paddle temporarily

* FIxed requirements path for pdpd

* Restore old dependency
2022-11-02 21:23:32 +04:00
Anastasia Kuporosova efb987d60f [PyOV] Fix building of wheel on windows from cmake (#13795) 2022-11-02 20:18:49 +04:00
b9e9f0a4d2 Docs: Update "Install OpenVINO Runtime on macOS from Archive File" page (#13347)
* docs: Update intro and step 1

* docs: finish updates

* docs: fix duplicate section

* docs: fix curl command

* docs: clarify archive install is for C++ users

* docs: add link to PyPI install page

* docs: minor fixes

* docs: add link to Release Notes

* docs: Change back to numbered instructions

* docs: typo fix

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Apply suggestions from code review

* Update installing-openvino-from-archive-macos.md

* Update installing-openvino-from-archive-macos.md

* Update installing-openvino-from-archive-macos.md

* Update installing-openvino-from-archive-macos.md

* Update installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

* Update docs/install_guides/installing-openvino-from-archive-macos.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
2022-11-02 23:20:47 +08:00
f5300fdb98 Docs: Update "Install OpenVINO Runtime on Linux from Archive File" page (#13345)
* docs: begin updates to install instructions

* docs: change instructions for downloading and unpacking archive

* docs: finish changes to Step 2 and Step 3

* docs: change whats next section

* docs: minor updates and fix typos

* docs: change link to GitHub archive page

* docs: typo fix

* docs: minor change

* docs: replace wget command with curl

* docs: clarify archive install is for C++ users

* docs: add link to PyPI page

* Update docs/install_guides/installing-openvino-from-archive-linux.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/installing-openvino-from-archive-linux.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/installing-openvino-from-archive-linux.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* docs: add link to Release Notes

* docs: Change back to numbered instructions and remove Debian from OS list

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* docs: change wget commands to curl

* docs: change wget commands to curl

* Update docs/install_guides/installing-openvino-from-archive-linux.md

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

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

* Update installing-openvino-from-archive-linux.md

* Update installing-openvino-from-archive-linux.md

* Update installing-openvino-from-archive-linux.md

* Update installing-openvino-from-archive-linux.md

* Update installing-openvino-from-archive-linux.md

* Update installing-openvino-from-archive-linux.md

* Update docs/install_guides/installing-openvino-from-archive-linux.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-11-02 18:09:43 +03:00
Alexandra Sidorova db0e2be481 [Snippets] Fixed input and output original precisions in Subgraph (#13451) 2022-11-02 18:45:54 +04:00
Konstantin Beluchenko c6528ee4ea [GPU] Matrix NMS (#13137) 2022-11-02 18:16:57 +04:00
Krzysztof Bruniecki f8b12b4f1a [SAMPLES] [GNA] Remove port assertion in speech_sample when importing (#13687)
* [SAMPLES] [GNA] Remove port assertion in speech_sample when importing the GNA fromat model

* Fix code style
2022-11-02 15:53:04 +03:00
Karol Blaszczak 764525ba6f adjust footer content to meet legal requirement (#13720) 2022-11-02 11:25:10 +01:00
Sebastian Golebiewski 30759eb350 Fixing indentation in Local Distribution - for master (#13376)
A minor fix that corrects the indentation of note admonition in the unordered list of Libraries for Execution Modes.

Porting:
https://github.com/openvinotoolkit/openvino/pull/13338
2022-11-02 11:15:41 +01:00
Sebastian Golebiewski d63362b81a Fix pot best practices for master (#13304)
A minor fix that corrects an ordered list in "Tuning Hyperparameters of the Default Quantization" section.
2022-11-02 11:10:08 +01:00
Mateusz Tabaka 063ff5a5c5 [GPU] Insert transpose for gemm input if its trans attr is set (#8460)
If gemm input dimensions are not multiple of 16 and any of
transpose_a/transpose_b attribute is set - cldnn picks
'gemm_ref' kernel in favor of faster 'gemm_tiled_opt'.
By emplacing explicit permute operation on the gemm input that it requires,
we make cldnn to pick 'gemm_tiled_opt', which in result improves
performance.
For some input shapes, transpose(s) + gemm_tiled_opt can be slower than
just gemm_ref. Based on benchmarks - the cutoff point was set for inputs shapes > (64, 64).

Ticket: 67271
2022-11-02 10:42:52 +01:00
Sebastian Golebiewski 378e334ee6 DOCS: API 2.0 Inference Pipeline Fix - for master (#13384)
* Update common_inference_pipeline.md
2022-11-02 10:15:29 +01:00
Sebastian Golebiewski a098845c5a Fixing snippet in Optimization for Throughput - for master (#13378)
A minor fix that corrects the code snippets.

Porting:
https://github.com/openvinotoolkit/openvino/pull/13341
2022-11-02 10:11:53 +01:00
Maciej Smyk e1dba9870c DOCS: Port to master - fix for archive installation docs (#13298)
* Fix

* Update installing-openvino-from-archive-linux.md

* fix

* Python 3.10 fix
2022-11-02 17:04:06 +08:00
Sebastian Golebiewski 4f67a3587a Fixing list in Deployment Manager Tool - for 22.2 (#13379)
A minor fix that corrects the numbered list of steps in Deploying Package on Target Systems
2022-11-02 10:00:22 +01:00
Sebastian Golebiewski 6b4fa954b7 Model-Formats-fix (#13386)
Standardized Additional Resources section for Supported Model Formats along with fixing some ref links in articles.
2022-11-02 09:58:49 +01:00
Maciej Smyk ad3fd7c71e DOCS: Model Optimizer Usage fix port to master (#13454)
* ref link fix
2022-11-02 09:55:58 +01:00
Sebastian GolebiewskiandMaciej Smyk ad1bd95e7b Fixing indentation in Build Plugin Using CMake (#13477)
Minor fixes that correct indentation of code snippets and note admonitions.

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
2022-11-02 09:51:28 +01:00
Sebastian Golebiewski 3e1a8f9f99 DOCS: Replace image in Protecting Model Guide - for master (#13631)
* Replacing image with a scalable svg file

Replacing image in Protecting Model Guide -changing the png image to scalable svg format.
Removing image project files.
2022-11-02 09:48:17 +01:00
Luo Cheng 5537ee9625 disable gen control flow testcases (#13732) 2022-11-02 16:34:03 +08:00
Sergey Shlyapnikov a1b496e051 [GPU] Default context for each device (#13658)
* [GPU] Add default context for each device

* [GPU] Replace operator== overloading with independent function
2022-11-02 11:04:56 +04:00
Sergey Lyalin 311f4cb064 Update add_openvino_ops.md (#13768)
More clear direction for Python users who face the need to implement a new op.
2022-11-02 10:51:45 +04:00
Oleksandr Zhydkov 329e22e5d6 [GPU] Tile blocked layouts support (#12480)
* add tile blocked layouts support

* build fixed
2022-11-01 22:38:13 -07:00
Oleksandr Zhydkov 4324dcf695 [GPU] Gather tree blocked layouts support (#12803)
* added gather tree blocked layout support

* gather tree blocked layout support review cleanup

* gather tree blocked layout support review cleanup

* gather tree blocked layout support review cleanup

* gather tree blocked layout support review cleanup

* gather tree blocked layout support review cleanup

* build fixed
2022-11-01 22:31:57 -07:00
Paul Youngsoo Ahn f7005ca297 [GPU] Allow crop optimization for static shape(#13710) (#13710) 2022-11-01 21:59:18 -07:00
Ekaterina AidovaandIlya Lavrenov b48d13c781 [OMZ]: relax torch dependencies (#13762)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-02 08:24:42 +04:00
Ilya Lavrenov c40d225b6f Removed duplicated files from OpenVINO wheel (#13725) 2022-11-02 07:58:58 +04:00
Andrei Kochin 592e250714 [MO TESTS] replace Caffe2 backend with ONNX RT (#13759)
* [MO Tests] Replace Caffe2 backend with ONNX RT

* fix broken PReLU test - broadcastable shape

* xfail GPU test
2022-11-01 23:13:47 +00:00
Eddy Kim e55e987456 [GPU] copying required information at inference time to primitive_inst and kernel_impl_params (#13733)
* usage of program and program_node are changed to use kernerl_impl_params

* pointer to network is replaced with reference

* moved primitive specific parameters out of kernel_impl_params

* use impl_params instead of program_node in onednn_impl

* relocate params from impl_params to primitive_inst

* added conditional directives around fused_desc_onednn

* removal of unnecessary changes

* node_output is separated from impl_param->output
2022-11-01 09:45:57 -07:00
Vladimir Paramuzov af9724e8da [GPU] Baseline for enabling GPUs from other vendors (#12577) 2022-11-01 18:02:29 +04:00
Ilya Lavrenov 7595fd4c4e Improvements in rpm / debian build (#13750)
* Improvements in rpm / debian build

* Fixed several debian warnings

* Supported old gflags from CentOS 7

* Reverted back OpenCV version

* Fixed clang-format
2022-11-01 18:02:07 +04:00
Tomasz Dołbniak a2c842bd74 Unique-10 operator (#13532) 2022-11-01 11:44:51 +01:00
Roman KazantsevandAndrei Kochin 77b3faeb55 [TF FE] Refactor translators for Select and SelectV2 and test it (#13699)
* [TF FE] Refactor translators for Select and SelectV2 and test it

It fixes a case when the condition of a smaller rank than operands in Select
Separately added tests for Select and SelectV2
Do not mix-up Select with Where, so tests for Where are moved to test_tf_Where.py

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert extra changes

* Apply code-review feedback: support undefined rank

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-11-01 12:38:20 +04:00
Roman Kazantsev af99d52ee4 [TF FE] Add translator for IsFinite and test it (#13728)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-01 06:56:13 +00:00
Jade Cho f90bd6b524 [GPU][DG2] Select cldnn reduce kernel when dtype of input/output is FP32. (#13747) 2022-11-01 13:43:39 +09:00
Jade Cho 54ea15fbf9 [GPU] Fix a bug that occurred when the optimized layer is executed. (#13568) 2022-11-01 13:43:09 +09:00
Konstantin Beluchenko d31c9b0b3a program_node refactoring (#13576) 2022-10-31 21:03:35 -07:00
Mykhailo Hnap ca31a4f1c7 [GPU] Fix IRDFT output rank. (#13630) 2022-10-31 21:02:59 -07:00
Roman Kazantsev c6dda68387 [TF FE] Refactor translators for Reverse, ReverseV2 and test it (#13602)
* [TF FE] Refactor translators for Reverse, ReverseV2 and test it

Make these operations reshapeable. Add layer tests for them to the pre-commit

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-review feedback: simplify checks in Reverse

* Apply the rest of code-review feedback: simplify code for Reverse

* Remove redundant check for axes

* Apply code-review feedback: support dynamic rank

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-01 07:39:41 +04:00
OlehKravchyshynandozhydkov-lohika ebbf5e3f10 [GPU] add blocked format to experimental detectron detection output (#12561)
* [GPU] add blocked format to experimental detectron detection output

* [GPU] add this kernel in whitelist of program.cpp

Co-authored-by: ozhydkov-lohika <ozhydkov@lohika.com>
2022-10-31 17:50:10 -07:00
Mykhailo Hnapandozhydkov-lohika 4e519eb110 [GPU] Implement GridSample-9 (#13460)
* [GPU] Implement GridSample-9

* [GPU] Implement kernel GridSample-9

Co-authored-by: ozhydkov-lohika <ozhydkov@lohika.com>
2022-10-31 13:16:27 -07:00
Irina Efode 53c9197354 Enable call set_device_name (#13340)
* [IE TESTS] Using Gflags instead of parsing command-line options

* Apply infra for suffix

* remove extra

* Squashed commit of the following:

commit c249f5d581
Author: iefode <irina.efode@intel.com>
Date:   Thu Oct 6 11:56:11 2022 +0400

    Fix default values for command-line argument

commit b2dbb4418c
Author: iefode <irina.efode@intel.com>
Date:   Wed Oct 5 18:09:22 2022 +0400

    rename gflags config

* Fix errors

* Remove gflag using

* Remove gflags

* Remove extra

* fix build
2022-10-31 14:06:56 +03:00
Artur Kulikowski 0aeb3d8151 Add ONNX model metadata to ov::Model (#13712)
* Add ONNX model metadata to ov::Model

* Add correct path to onnx models
2022-10-31 08:15:26 +01:00
Xuejun Zhai af5e06bb8b [C API] fix warning as error issue (#13671)
Signed-off-by: Zhai <xuejun.zhai@intel.com>

Signed-off-by: Zhai <xuejun.zhai@intel.com>
2022-10-31 04:57:58 +03:00
Sungeun Kim eeabb86b80 [GPU] set bfyx to input format for shallow conv (#13614)
* set bfyx to input format for shallow conv
2022-10-31 10:22:39 +09:00
Taylor Yeonbok Lee 454bc61018 Fix error in perpare_buffer_fusing w.r.t accessing invalid output layout (#13723) 2022-10-29 00:00:09 -07:00
Anastasia Kuporosova bb296fcb11 [PyOV] some fixes and improvements in python tests (#13656)
* [PyOV] mark device dependent test

* fix assert in test

* fix assert error
2022-10-29 08:00:49 +02:00
Eddy Kim daec2605e4 [GPU] changing references to pointers for GPU graph serialization (#13559)
* cldnn serialization

* read layout from _impl_param instead of node

* changed ref in kernel_impl_param to pointer

* removed serialization utils

* removed serialzation related changes

* restored references in function arguments

* remove trailing spaces

* revert change in bs_x_bsv16

* fix to rebase
2022-10-29 04:39:51 +03:00
Sun Xiaoxia 0e60489df4 fix performance degradation on windows platform (#13705) 2022-10-29 02:57:18 +03:00
Georgy Krivoruchko 1a35726f51 Changed behavior of SubgraphDumper in case of Constans (#13678) 2022-10-29 01:51:13 +04:00
Roman Kazantsev 22de883e6e [Core] Fix leftovers from PR13581 (#13693)
* [Core] Fix leftovers from PR13581

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert incorrect change for shrink axis

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-28 23:15:27 +03:00
Irina EfodeandIlya Churaev 04f09ba0c0 Fix Warning in ARM Post-Commit build (#13689)
* Fix ARM Post-Commit build

* Update locale.cpp

* test

* revert

* Remove format-truncation skip

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-10-28 19:21:13 +04:00
Sergey Shlyapnikov 6c6b3666a4 [GPU] Add additional condition for VA surface buffers detection (#13691) 2022-10-28 18:19:02 +03:00
Evgenya Stepyreva cd76557df5 Make Resize Bilinear infer in f32 (#13650) 2022-10-28 18:26:14 +04:00
Artyom Anokhov 769d87b400 debian.cmake: Suppress openvino_latest ubu18 description-starts-with-package-name error (#13714) 2022-10-28 16:38:16 +04:00
Krzysztof Bruniecki 7196a0cfd2 [SAMPLES] Remove unneeded GNA clock multiplier in performance counters (#13657) 2022-10-28 13:43:25 +02:00
Ilya Churaev 578df5486a Kill old actions in case of new changes (#13700)
* Kill old actions in case of new changes

* Some new changes

* Revert redundant line
2022-10-28 15:16:46 +04:00
Ilya Churaev d80636c56c Try to suggest clang format changes (#13685)
* Enable reviewdog for clang-format

* Change pipeline

* Add github tocken

* Revert "Add github tocken"

This reverts commit dfe759a56d.

* Revert "Change pipeline"

This reverts commit e7908202e9.

* Fixed code style
2022-10-28 15:15:49 +04:00
Ilya Churaev fa50e35bb8 Extended error messages (#13647) 2022-10-28 15:14:23 +04:00
Bartek Szmelczynski 464e0aae72 Support Unsqueeze-13, Squeeze-13 in MO (#13391) 2022-10-28 13:01:21 +02:00
6913a8ad39 Docs: Rewrite "Install OpenVINO Development Tools" page (#13348)
* docs: rewrite intro section

* docs: finish updates

* docs: minor updates

* docs: add that Python is recommended for new users

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
2022-10-28 18:09:39 +08:00
Ilya Churaev eb936e9f34 Fixed build (#13701)
* Fixed build

* Change if opset
2022-10-28 11:35:24 +04:00
Min, Byungil 6ffaa393d5 [GPU] Remove WA for cldnn Reduce fallback (#13663)
+ Use oneDNN reduction when it has fused eltwise

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-10-28 16:23:02 +09:00
Krzysztof Bruniecki fdd047edb9 [GNA] Fix offset and size computation for Crop (#13400)
Fix GetCropParams
    Add test to reproduce crop isue from ticket
    Use convolution in the test
    Cleanup get dim getters using backoffset
2022-10-28 08:46:19 +02:00
Sebastian Golebiewski cc1dd0bf1a Updating the large_batch_approach.svg image (#13704)
Uploading a new version of the image.
2022-10-28 08:24:29 +02:00
Sebastian Golebiewski cf54cbafac DOCS: Improving Readability of Further Low-Level Implementation Details - for master (#13522)
* Improving Readability of Further Low-Level Implementation Details

The changes include recreation of the graphics to improve the readability of the article. Minor proofreading corrections have been applied as well.
2022-10-28 07:26:06 +02:00
yanlan song 3f4c53a779 Bell/fix priority (#13667)
* debug only

Signed-off-by: fishbell <bell.song@intel.com>

* fix model priority with -d AUTO

Signed-off-by: fishbell <bell.song@intel.com>

* add tests

Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-10-28 04:58:25 +03:00
Paul Youngsoo Ahn 694d2f73eb [GPU] Range new shape infer (#13582) (#13582)
- move dynamic functional tests to dynamic folder
2022-10-27 18:29:49 -07:00
Taylor Yeonbok Lee 33c230a40d Fix reshape calc_output_layout failure in squeeze shape_infer test. (#13698)
Failure: Comparing reshape->output_shape with a new tensor() object was not working as intended.
Since the original intention was to check whether cldnn::tensor type output_shape is set or not,
so replaced the comparision to use size of the output_shape.
2022-10-28 04:17:44 +03:00
Ivan Tikhonov 8714cf643e Fix UnrollIf transformation to support nested If (#13654)
* Added a recursive call into UnrollIf transformation to support nested If unrolling
2022-10-28 03:49:52 +03:00
Egor Duplenskii 7e2cefab8a [CPU] Move to oneDNN v2.7 (#12281) 2022-10-28 01:40:07 +03:00
4ec5499c5d [FrontEnd] add control flow, basic tensor array support for paddle faster_rcnn model (#10684)
* support control flow, tensor array

* fix clang error

* support ppdet2.3 model

* 1. code clean; 2. more comments inlined.

* fix after clone ov::Model no more in need.

* support dynamic shape; more comments

* only process same rank

* remove unused function

* simplify the loop logic

* fix review comments

* support shape{1} {}

* disable FoldSubgraphEmptyInputs because loop in loop

* fix review comments

* remove scalar{}->shape{1} testcase

* allow re-infer shape when backedge changes input shape

* fix condition shape to {1}

* support output rank is not same or dynamic

* fix refactor error

* apply review comments

* fix win warnings

* remove TransformEliminateConvert

Co-authored-by: jialipen <cecilia.peng@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-10-27 18:36:24 +03: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
Ilya Churaev 84710e4440 Bump CMake for Linux Azure (#13652)
* Bump Cmake for Linux

* Fixed environment

* Change CI script

* Disable some warnings

* Fixed compiler flag

* Enabled Warnings as error for Linux

* Revert "Enabled Warnings as error for Linux"

This reverts commit bfb09efb71.

* Use prebuild cmake

* Remove redundant check
2022-10-27 17:08:56 +04:00
Maciej Smyk 44b75c727c Update dl_workbench_overview.md (#13681) 2022-10-27 14:42:56 +02:00
Roman Kazantsev d53c2c5e41 [DOCS][MO] Clean-up MO docs sources (#13641)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-27 16:06:18 +04:00
Oleg Pipikin ad1c824e50 Eliminate reader tests (#13409)
* remove reader tests #1

* remove reader tests #2

* remove reader tests #3

* remove reader tests #4

* Add clone_with_new_inputs to visitor tests

* fixes
2022-10-27 14:42:23 +03:00
Liubov Talamanova ee93ddc453 Update references (#13637) 2022-10-27 10:55:54 +00:00
Irina Efode dcd3ed18f6 Update third-party-programs according PM requirments (#13610) 2022-10-27 13:39:20 +04:00
Pawel RaaszandEvgenya Stepyreva d96c25844d Review opset1 unsqueeze for shape inference aspects (#13538)
* Use non-blocking assertions in unsqueeze tests
for independent properties

* Review unsqueeze interval shape propagation:
- extend partial shape propagation tests
- add invalid axis value tests
- fix issues when repeated axes on input

* Shape inference test, unsqueeze using default ctor
- private fields set by setters

* Review unsqeeze bounds propagation:
- preserve and propagate labels
- bounds propagation lowe/upper

* Add template shape inference for unsqueeze
- extract current implementation and unify it for shape types
- add unit test for static shape inference
- add unsqueeze in/out indexes

* Unify axes normalization

* Use common fixture for static shape inference

* Fix build issue in GPU plugin
- include unsqueeze shape inference

* Remove enum with in/out indexes
Due to build issue on Windows

* Remove make move iterator
minor changes validation util

* Add test for label propagation
- expand static shape inference tests

* Add common validation for axes input

* Fix build issues

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-10-27 10:28:24 +03:00
Maciej Smyk d8f7e791ec DOCS: Port from 22.2 - Security Add-on directive fix (#13261)
* Update ovsa_get_started.md
2022-10-27 08:25:45 +02:00
Artyom AnokhovandIlya Lavrenov 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
Taylor Yeonbok Lee 728c9631b7 Dynamic shape : remaining changes to run bert (#13306)
* Initial dynamic shape smoke test for GPU

* Bert dynamic runs without crash

* Additional fix to resolve error in bert-large-uncased-whole-word-masking-squad-emb-0001

* Fix error in unfusion function: input nodes of the current (fused) node need to be updated with the latest dependency if they are fuesed to other nodes

* Several fixes
(1) Fix program to clear _kernels after all build_program steps finished
(2) Fix update_kernel not to init_kernel when impl_cache hit
(3) Fix update_kernel to clear kernels_cache::_kernels after adding the new impl to impl_cache
(4) No longer need to remove kernel from kernels_cache::_kernels after the corresponding impl is dropped from impl_cache

* Fix crash of bert_emd_4layer

* Applied review comment

* Applied review comment : fix add_required_reorder

* Fix broadcast to propagate dynamic shape properly & reverted change on constant

* Added a new unfusion unittest

* Fix broadcast single input case to use predefined shape properly

* Fixed count_non_zero output to result only one element of count

* Removed output_layout str for gather_nonzero
Removed unused ov_input_rank for count_nonzero

* Fixed create_host_blob to use usm if the target layout is not dynamic.
(Previous impl has an error when the network is dynamic but the output is static)
Moved dyn shape smoke test under dynamic directory

* Fix lint error
2022-10-27 07:20:18 +03:00
Kelvin Choi a7a14a89c8 [GPU] Support dynamic shape for one-hot and reshape operations (#13516) 2022-10-26 17:12:17 -07:00
Mateusz Tabaka 154850e8ca Eliminate dequantization shift when zero point == 0 (#13353)
Ticket: 91111
2022-10-27 01:37:13 +02:00
Alexey LebedevandAnastasia Kuporosova 554af81085 [tools][benchmark_app] --extensions parameter (#11289)
* Replace -l and -c by --extensions

* revert -c

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2022-10-26 23:26:51 +02:00
Pawel RaaszandJan Iwaszkiewicz dd11d57fc5 Fix core tests warnings as errors and ONNX CI (#13648)
* Fix gather type_prop test build issue on windows

* Add pytest-forked to test requirements

* Update src/bindings/python/requirements_test.txt

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Remove warning suppression for core tests

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-10-26 22:14:25 +03:00
Irina Efode 92300d641d [CONFORMANCE] Fix Gelu op in the report && opset10 to all slt related files (#13596)
* [CONFORMANCE] Fix Gelu op in the report && opset10 to all slt related files

* Remove debug code

* fix defines
2022-10-26 18:18:55 +03:00
Irina Efode 9adbbfb98f [API CONFORMANCE] Remove skips from ie_executable_network (#13574)
* Remove skpps from ie_executable_network

* fix heder file

* fix build
2022-10-26 17:53:49 +04:00
OlehKravchyshyn dc1a8b7795 [GPU] added optimized blocked formats support for 5d interpolation liner onnx and nearest modes (#12977)
This commit contains two features which are split into two commits:
1) linear onnx interpolation of 5d formats
2) Optimize blocked formats for linear_onnx and nearest formats
   - contain correspondent unit and single layer tests
2022-10-26 21:53:38 +09:00
Bartek Szmelczynski bdc037adcf Add IsFinite operator (#13441) 2022-10-26 13:24:01 +02:00
Anastasia KuporosovaandAdam Tumialis 9872a34bb9 [PyOV] mark pyopenvino as internal (#13427)
* [PyOV] makrk pyopenvino as internal

* change pyov -> _pyov

* change pyov -> _pyov

* replace impor in py files

* change install path

* undo some changes

* Revert "undo some changes"

This reverts commit 9e5794a394c1b7cd1823f70a0ddd4f8742547edf.

* replace in rest files

* keep folder w/o underscore

* undo changes in ci configs

* improve changes in cmake

* add pyopenvino deprecation warning

Co-authored-by: Adam Tumialis <adam.tumialis@intel.com>
2022-10-26 12:51:31 +02:00
Piotr Krzemiński f893a58816 [BENCHMARK_APP] Show input command in output (#13402) 2022-10-26 10:58:09 +02: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
Wang, Yang 82942a12b2 [AUTO] Benchmark failed to pass nthreads and pin to AUTO/MULTI (#13396)
* Create device property for passing nthreads or pin to AUTO or MULTI in benchmark app.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update the logic of the multi device properties setting for the same target device.

* refactor the logic to pass nthreads and pin to AUTO and MULTI.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-10-26 14:43:02 +08:00
Tetiana Gubanova 632378c930 [GPU] Add blocked layout support to deconvolution reference implementation (#12574)
* Add blocked layout support to deconvolution reference implementation

* Fix crash in tests for corresponded format
2022-10-25 23:27:56 -07:00
Roman Kazantsev 9cd5c8b362 [TF FE] Add translators for IsInf and IsNan and test it (#13606)
* [TF FE] Add translators for IsInf and IsNan and test it

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add changes in tf_utils

* Apply code-review: add xfail and use of unary op

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-26 09:03:17 +03:00
Sungeun Kim 168cf0a1a0 [GPU] remove WA for fallback pooling to cldnn. (#13540)
* remove WA for fallback pooling to cldnn.
* remove unnecessary code for deconv
* add format::bfzyx/b_fs_zyx_fsv32 to reduction_onednn
2022-10-26 13:39:20 +09:00
Mateusz Bencer 6791338710 [ONNX FE] Handle Pad value if non-scalar value provided (#13611) 2022-10-25 21:56:30 +03:00
Pawel Raasz 5d710bab2f Review opset8 gather for shape inference aspects (#13578)
* Review interval shape propagation

* Review preserve label, partial value

* Review gather static shape inference
- unify and extend gather static shape inference test

* Introduce OV_EXPECT_THROW test macro
- wrapper for gtest macro with additional matcher for exception what()
- apply OV_EXPECT_THROW in gather type prop tests

* Use gtest `expect` instead of `assert`

* Add gather default ctor test

* Remove leftovers
2022-10-25 21:23:02 +03:00
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
Karol Blaszczak 90b3b07e87 DOCS-diagram_fix (#13623) 2022-10-25 16:32:18 +02: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
Xuejun Zhai dd3a37657c [MAC BUILD]fix benchmark build error caused by string compare (#13566)
* fix benchmark build error caused by string compare

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Onlt Test] only for test mac build, will revert after validation

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* fix benchmark build error caused by string compare

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [benchmark] change string compare func from strcmp() to std::string::compare

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Revert "[Onlt Test] only for test mac build, will revert after validation"

This reverts commit 313e8428d4.

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-10-25 18:03:28 +04:00
Sebastian Golebiewski b6189a53d6 Fixing indentation in Plugin Testing - for 22.2 (#13381)
A minor fix that corrects indentation of snippets.
2022-10-25 13:50:42 +03:00
Maciej Smyk 9df5856849 DOCS: Fix for Runtime Inference - master (#13551)
Port from #13549

Fixed the following issues:

Switching between C++ and Python docs for "Shape Inference",
Removed repetitions,
Quote background in bullet list at the beginning of "Multi-device execution",
Broken note directives,
Fixed video player size in "Inference with OpenVINO Runtime",
Standardize Additional Resources throughout Runtime Inference.
2022-10-25 12:41:33 +02:00
Katarzyna MitrusandRaasz, Pawel <pawel.raasz@intel.com> 37abc159ef Revision of BinaryElementwiseArithmetic evaluate_lower/upper (#13390)
* Interval value propagation tests for Add and Sub

* Add interval value prop tests for Divide and Power

* Add interval value prop tests for Max and Min

* Add mixed ops subgraph tests

* Tests update

* Style apply

* Restore tests

* Fix elvaluate bounds for Divide op

* Split tests into  separate cases

* Back to const auto& for inputs

* Separate checks for evaluate tensor

* Clean up commented tests

* Introduce OV_EXPECT_THROW test macro
- wrapper for gtest macro with additional matcher for exception what()
- apply OV_EXPECT_THROW in gather type prop tests

(cherry picked from commit f174319339)

* Revert gather type_prop tests changes

* Use OV_EXPECT_THROW in the tests

Co-authored-by: Raasz, Pawel <pawel.raasz@intel.com>
2022-10-25 12:47:47 +04:00
Anastasia Kuporosova 57e6dd1b7e [Scripts] Warning instead of error in setupvars scripts (#13554)
* Warning instead of error in setupvars script

* apply comments
2022-10-25 09:56:56 +02:00
Xuejun ZhaiandIlya Churaev 1cc4c17daf [C API DOC][MIGRATION] Add C API migration info from 1.0 to 2.0 (#13424)
* [C API DOC] Add C API doc about migration from 1.0 to 2.0

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] clarify migration related docs

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] add call inputs_aligned/outputs_aligned

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-10-25 10:59:59 +04:00
River Li 572bc9fa5d Fix CC issue of ov_pass_snippets::pass::CommonOptimizations (#13620)
Change-Id: I2c6af156b592665be483079182d5c045d6bee3b6
2022-10-25 09:15:47 +03:00
Tomasz Dołbniak f8a80b6146 Disabled test re-enabled (#13624) 2022-10-25 06:14:22 +00:00
Oleksii Khovan 1960746c44 [GPU] ScatterElementsUpdate blocked layout support (#12465)
* add parameterized test
* add blocked layouts support
* support for mixed input formats
* fix RHEL 8.2 build
* add scatter_elements_update to whitelist for blocked formats
* Added bs_fs_yx_bsv16_fsv32 format
2022-10-25 08:22:27 +03:00
Mingyu Kim 0e242b3244 [GPU] update onednn to latest 2.7 (#13518) 2022-10-25 12:21:13 +09:00
Sun XiaoxiaandShen, Wanglei <wanglei.shen@intel.com> ec14dd3523 Hybrid-aware P/E Core optimization (#13435)
* add HybridAware stream setting and core binding

* fix clang format issue

* unified code style, add parameter check

* correct input affinity skip NUMA, modify function name

* remove unnecessary floor

* fix ci compile issue on Mac/windows platform

* modify smoke_SetConfigAffinity test

* modify ov_core_set_and_get_property_enum test, affinity HYBRID_AWARE is changed to NUMA

* remove affinity correcting on this pr

* revert ov_core_test.cpp

* merge function by comments

* fix code style issue

Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
2022-10-24 22:26:22 +03:00
Gorokhov Dmitriy 086bc00d4c [CPU] Fixed EmbeddingSegmentsSum initialization with dynamic num_segments (#13372) 2022-10-24 18:34:25 +03:00
Georgy Krivoruchko 94c40d6a82 [TF][FE] Fixed wrong output naming in AvgPool (#13575) 2022-10-24 16:50:51 +04:00
Smirnova Maria 9ea33715a0 Modify stress tests so that data can be pushed to OVVP (#13452)
* Change stress tests db fields

* Add option for upload data to database by API handler

* Push modified data only to new database

* Fix adding log info to new db
2022-10-24 13:57:37 +02:00
Gorokhov Dmitriy 9f40eb7196 [CPU] Fixed integer compute for arithmetic operations (#13556) 2022-10-24 15:54:52 +04:00
Roman Kazantsev be1b72d1e9 [Core] Correct shape inference for StridedSlice with non-const begin (#13581)
* [Core] Correct shape inference for StridedSlice with non-constant begin, end, and strides

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix build issue

* Fix build issue

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-24 15:18:02 +04:00
Min, Byungil 4188f1f181 [GPU] Update for layout query (#13346)
+ support multiple input and output target formats
+ implement generic logic for selection formats and find_data_format
+ Add TCs for select_preferred_formats

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-10-24 15:27:09 +09:00
Felix Dohyun Kim 385d87edaf [GPU][DG2] Fix output scale post-op condition (#13567)
* fix bug in oscale post-op condition
2022-10-24 10:17:00 +09:00
trixirt a55b277c68 Use shared gflags on Fedora (#13600)
Static gflags is not available on Fedora, leading to a configure
error.  So use the shared version.

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

Signed-off-by: Tom Rix <trix@redhat.com>
2022-10-23 22:46:13 +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
Andrei Kochin 247675b0bc [MO] Update reminder message for 2022.3 (#13572) 2022-10-21 19:43:38 +04:00
Ilya Lavrenov 786690a44f Added post-processing for python wheel platform tags (#13584) 2022-10-21 17:42:26 +04:00
Roman Lyamin 478939ea9e [GPU] GEMM dynamic (#13248) 2022-10-21 16:19:35 +04:00
Evgenya Stepyreva 1047bb7732 Simplify Reshape inserted while converting RNN from mxnet (#13570) 2022-10-21 14:29:39 +04:00
Ilya ChuraevandJan Iwaszkiewicz 5e25341904 Added reading of meta information from IR (#12925)
* Added reading of meta information from IR

* Fixed code style

* Added tests to cover multi-threading and removed file

* Fixed asserts

* Changed parsing of meta information

* Added meta information serialization

* Fixed unit tests

* Support unset_cli_parameters

* Changed get meta API

* Fixed threading tests

* Fixed mutex

* Removed serialization

* Fixed tests

* Fixed build

* Add quantization_parameters

* Use rt_info instead of meta section

* Disable old rt_info serialization

* Try to fix MO Reader for new rt info

* Fixed property name

* Added test to new meta format

* Added tests for new PoT config

* Added tests for new rt_info attributes

* Remove redundant code

* Revert old rt_info style for nodes

* Add get API for python

* Added python tests

* Fixed python code style

* Fixed tests code style

* Fix flake8

* Fixed python tests

* Add has_rt_info to test

* Added more comments

* Extended tests and API

* Changed error message

* Use new API to get model version

* Fixed comments on python API

* Fixed comments

* Fixed comments

* Update src/bindings/python/src/pyopenvino/graph/model.cpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Update src/bindings/python/src/pyopenvino/graph/model.cpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Fixed comments

* Fixed python check

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-10-21 12:21:41 +04:00
Przemyslaw Wysocki 27a03948c2 [PyOV] Rewrite map to generator in ie_api.py (#13571) 2022-10-21 09:56:48 +02:00
Ilya Churaev 85d78a3ef0 Build code snippets together with doc (#13541)
* Build code snippets together with doc

* Added separate step for code snippets

* Try to enable CI step

* Disabe myriad

* Try to fix Windows

* Detect number of cores

* Reduced build time of code snippets
2022-10-21 06:29:19 +03:00
Jan Iwaszkiewicz 0f0a08cde1 [PyOV] Refine InferRequestWrapper and AsyncInferQueue (#13512) 2022-10-20 21:34:03 +02:00
Mateusz Mikolajczyk ffc74c8fe2 IsInf operator (#13383) 2022-10-20 20:59:01 +03:00
Oleksii Khovan 2f982b9490 [GPU] reorg_yolo blocked layouts support (#12463)
* add unit test for reorg_yolo
* add validation to reorg_yolo kernel
* add blocked formats support
* remove non-working yxfb optimization
* add reorg_yolo to whitelist for blocked formats
2022-10-20 19:35:43 +03:00
Irina Efode 99bb3bba6e Fix reports using 'NOT RUN' (#13577) 2022-10-20 17:37:04 +03:00
Irina Efode 53d2c7c3c5 Exclude Python conformance utils from Azure pre-commit (#13422)
* Final

* Update linux_arm64.yml

* Update windows.yml
2022-10-20 14:06:37 +00:00
Roman Kazantsev 22f3bee0f9 [TF FE] Refactor translation for Concat and ConcatV2 operations and add tests (#13542)
* [TF FE] Refactor translation for Concat and ConcatV2 operations and add tests

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* [TF FE] Correct the layer tests for passing

* Apply code-review feedback: remove redundant function

* Fix a name of function to create Concat model in the layer test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-20 16:01:31 +02:00
Mateusz Bencer 88ffc23e3a Added README for ONNX Frontend (#13325) 2022-10-20 15:54:25 +02:00
Zlobin Vladimir 0d4b331f84 guard exception in classification_sample_async (#13530) 2022-10-20 12:23:34 +03:00
Evgeny KotovandNadezhda Ageeva bea82ec92b TransposeSinking for unary backward and forward propagation (#13263)
* move transformation to common; use opset9; fix Gelu and Softsign operations; misc fixes

* cpplint fixes

* rename DoTransformation; use TransformationTestsF for testing

* test register_new_nodes working by creating multiple unary operations

* fix transformation constraints; add unit test on it

* remove unneeded headers

* remove unneeded comments

* fix tests iteration types

* rename unit test

* parametrized input shape and type

* swap nodes instead of creating new

* transpose can have not just a constant node on the 1-st input

* Update src/tests/functional/inference_engine/transformations/common_optimizations/transpose_sinking_unary.cpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

* Update src/tests/functional/inference_engine/transformations/common_optimizations/transpose_sinking_unary.cpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

* Update src/tests/functional/inference_engine/transformations/common_optimizations/transpose_sinking_unary.cpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

* clang cleanup

* return back nodes swapping; wrote additional unit tests

* add unit tests

* fix unit tests namespace

* add unit tests

* remove debug

* cpplint fixes

* use 2 ways of swapping: nodes and outputs

* clang fixes

* move choise descision into separate function

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>
2022-10-20 13:20:35 +04:00
Piotr Krzemiński d715ecaa32 [CPP/SAMPLES] Samples location independant on script execution directory (#13251) 2022-10-20 10:01:55 +02:00
Przemyslaw Wysocki a0e2f14790 [PyOV] Upgrade linter Python version (#13531) 2022-10-20 10:01:13 +02:00
Mateusz Bencer d3d8fd8c20 [ONNX FE] Added support of FusedConv op (#13553) 2022-10-20 09:18:24 +02:00
taixiurong 2d8cf904c8 support paddle elementwise_floordiv (#13059) 2022-10-20 05:59:01 +00:00
Pavel Durandin dfd5b461f1 [GPU] Fix gpu unit and functional tests on windows (#13560) 2022-10-20 09:56:29 +04:00
OlehKravchyshyn 3500d75187 [GPU] Add supporting blocked format for reverse operation (#12032) 2022-10-20 14:18:00 +09:00
Georgy Krivoruchko 09b349607e Improved quality of Equal test source code (#13548) 2022-10-20 08:12:22 +03:00
Ilya Churaev 44bbfefacd Fixed loading old extensions inside the OpenVINO (#13543) 2022-10-20 07:04:57 +04:00
Xuejun ZhaiandRiver Li b7d956b2df [DOC][C API][DYNAMIC SHAPE] Add doc for C API dynamic shape (#13397)
* [C API DOC] C API user guide for dynamic shape

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC][Dynamic shape] add resource free for dynamic shape doc

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC][Dynamic shape] free char *

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC][Dynamic shape] clarify code

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: River Li <river.li@intel.com>
2022-10-20 07:04:14 +04:00
hyunback kim 71f3c8c786 [GPU] Fix brain-tumor-segmentation-002/INT8/onnx running failed (#13274)
reorder_input has the issue when using generated reorder case.
And handle_reshape has only handle 4 dims (bfyx), so support 5, 6 dimes

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-10-20 11:29:53 +09:00
Roman Kazantsev 5a3df29854 [TF FE] Refactor DepthToSpace and test it (#13544)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-20 01:35:25 +03:00
Nadezhda AgeevaandSzymon Irzabek a4655bb6b3 [GNA] Insert identity using ngraph transformation (#13317)
* [GNA] Insert identity using ngraph transformation

* Update src/plugins/intel_gna/src/ops/identity.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

* Update src/plugins/intel_gna/src/transformations/rt_info/gna_precision_change_flag.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

* Update src/plugins/intel_gna/src/transformations/rt_info/gna_precision_change_flag.cpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

* Update src/plugins/intel_gna/src/transformations/insert_identity_layer.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

* Rewrites pass with Identity insertion using recusrive function. Adds test for Split. Adds comments

* Change namespace for element type

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>
2022-10-19 20:27:55 +03:00
Anastasia Kuporosova 2455bb67d4 [PyOV] Fix iteration over AsyncInferQueue (#13496)
* [PyOV] Fix iteration over AsyncInferQueue

* apply comments
2022-10-19 17:45:07 +02:00
152511daa8 Benchmark sort opt (#12350)
* Benchmark_app python and c/c++ script add op profiling feature

* Fix compile bug about benchmark c/c++ op profiling

* Fix Compile Bug

* Fix issue in PR#12350 : 1. report_type info update; 2. priority of -pc and -pcsort; 3.align format between c++ and python; 4.check 'proportion' for 0 and print N/A; 5.detect the confusing print info

* Fix 8/17 review suggestion

* Fix 8/23 suggestion

* Fix the clang-format issue

* Fix the win-cc issue

* Fix win-cc issue about conversion from 'double' to 'float', possible loss of data

* Push PR by ODT group account

Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Fiona Zhao <fiona.zhao@intel.com>
2022-10-19 22:59:12 +08:00
Anastasiia PnevskaiaandEvgenya Stepyreva c95b3e5138 Moved MVN reference to ov::core. (#13327)
* Moved MVN reference to ov::core.

* Code style.

* Applied comments.

* Code style.

* Returned evaluate in evaluates_map()

* Added constant folding test.

* Use new API.

* Use new API.

* Use new API.

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-10-19 16:46:28 +03:00
Trawinski, Dariusz eb0dd26e4b fix documentation building including notebooks (#13546) 2022-10-19 13:23:59 +02:00
Chen Xu 98dbb91af6 [CPU] Support topk sort for int32 directly (#13448) 2022-10-19 13:38:33 +03:00
Vladislav Golubev a25c2ba665 [LPT] Precision restrictions extending (#13172)
* [LPT] Precision restrictions extending

* Compilation error fixed

* Markup for SubgraphOps fixed

* cleanup

* Review fixes: removed vector<size_t> wrapper in PrecisionRestriction class

* Review fixes: added comments

* docs compilation fix
2022-10-19 12:29:32 +02: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
Leonard Sikorski e2b0313785 IsNaN operator (#13369) 2022-10-19 12:20:26 +02: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
71779765fb [TF FE] Add developer documentation for TensorFlow frontend (#13505)
* [TF FE] Remove export API for helper transformation

Also, it skips layer tests for SegmentSum and DynamicPartition in case legacy frontend

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Split test suites for DynamicPartition

* [TF FE] Add developer documentation for TensorFlow Frontend

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert "[TF FE] Remove export API for helper transformation"

This reverts commit 249a7d62ab.

* Fix UTF encoding issue

* Update src/frontends/tensorflow/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/contribute.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Fix broken links

* Put links to code snippets

* Correct names of frontends

* Add diagram using mermaid into the main page

* Add diagrams in mermaid for the architecture

* Remove png files

* Update src/frontends/tensorflow/README.md

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

* Apply code-review feedback: links in the diagram, redundancy in the test

* Replace code snippets with links to ov master repo

* Apply feedback: correct TF FE purpose and diagram

* Mention MatcherPass documentation and OV Core operations

* Update src/frontends/tensorflow/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/support_new_op.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/support_new_op.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/support_new_op.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/support_new_op.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/support_new_op.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/tensorflow/README.md

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>

* Update src/frontends/tensorflow/README.md

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>

* Correct unit test spelling

* Remove code-style reference

* Move architecture content to README.md

* Move all sub-docs into README.md

* Fix a link to the test coverage

* Fix a link to the legacy TF FE

* Correct the main diagram

* Clarify who should use the frontend directly

* Move the added sentence to the beginning

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2022-10-19 12:36:24 +03:00
Mario SAVU c9b6d69221 Fixing assert when handling iop, iol and ioml (#13526) 2022-10-19 12:14:00 +03:00
Xuejun Zhai c638171853 [C API DOC] fix mac doc build error caused by ov_output_const_port_t (#13521)
* [C API DOC] fix mac doc build error caused by ov_output_const_port_t vs ov_output_port_t

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Only for Test] validate mac build error fix, need to revert before merge

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Revert "[Only for Test] validate mac build error fix, need to revert before merge"

This reverts commit 1082ab32ba.

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-10-19 12:59:31 +04:00
Katarzyna Mitrus 3c0b5c7f9b BinaryElementwiseArithmetic - common shape_infer (#13421)
* Use eltwise_shape_infer form shape_inference in validate_and_infer_elementwise_args

* Align Unary ops, remove redundant validate_and_infer_elementwise_args usage

* Add test with default constructor for BinaryElementwiseArithmetic ops

* Style apply

* Fix expected error message

* Add common shape_infer tests for BinaryElementiwiseArithmetic ops

* Remove old Add test

* Update NGRAPH_CHECK to OV ASSERT

* Removal of redundant autob param to the validate function

* Tests update
2022-10-19 11:57:16 +03:00
Ilya Lavrenov 2ffb915338 Relax numpy version (#13537) 2022-10-19 10:20:12 +04:00
Ilya Lavrenov b62e9196af Fixed OSX (#13525) 2022-10-19 10:19:54 +04:00
Vladimir Paramuzov ef12d3976f [GPU] Fixes for infer request impl in dynamic cases (#13050)
* [GPU] Fixes for infer request impl in dynamic cases

* [GPU] Fixed incosistent output shapes for LSTMSequence op

* [GPU] Update network::get_output_layout method

* [GPU] WA for USM memory allocations with 0 bytes
2022-10-19 09:35:03 +04:00
Ilya Lavrenov dc1fe22fed Trying to fix lib-debian (#13524) 2022-10-19 07:23:33 +04:00
yanlan song 752ff23582 Bell/remote tensor fix in multi (#13483)
* unify device representations

Signed-off-by: fishbell <bell.song@intel.com>

* fix case failure

Signed-off-by: fishbell <bell.song@intel.com>

* add test cases

Signed-off-by: fishbell <bell.song@intel.com>

* indenting

Signed-off-by: fishbell <bell.song@intel.com>

* fix build error on macos

Signed-off-by: fishbell <bell.song@intel.com>

* keep the original logic, if no device available,multi will throw exeception

Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-10-19 10:15:36 +08:00
yanlan song 5e2869cd14 support cache dir in multi/auto/batch (#13507)
* support cache dir in multi/auto

Signed-off-by: fishbell <bell.song@intel.com>

* support cache_dir in bat h

Signed-off-by: fishbell <bell.song@intel.com>

* fix case failure

Signed-off-by: fishbell <bell.song@intel.com>

* clang format

Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-10-19 10:15:03 +08:00
EvanandYuan Xu 226e94aa66 Docs: Edits to streamline Install OpenVINO Overview Page (master branch) (#13156)
* docs: update install OpenVINO overview

* Update docs/install_guides/installing-openvino-overview.md

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

* Update docs/install_guides/installing-openvino-overview.md

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

* Update docs/install_guides/installing-openvino-overview.md

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

* Update docs/install_guides/installing-openvino-overview.md

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

* Update docs/install_guides/installing-openvino-overview.md

* Update installing-openvino-overview.md

* Update installing-openvino-overview.md

* Update docs/install_guides/installing-openvino-overview.md

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

* docs: add <a> tags to section headers

* Update installing-openvino-overview.md

* docs: remove <br> after Python and C++ headers

* docs: add breakline after Python and C++

* docs: minor update

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-10-19 09:43:10 +08:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Ilya Lavrenov
3e976fe3db Bump babel from 2.9.0 to 2.9.1 in /docs (#10424)
Bumps [babel](https://github.com/python-babel/babel) from 2.9.0 to 2.9.1.
- [Release notes](https://github.com/python-babel/babel/releases)
- [Changelog](https://github.com/python-babel/babel/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-babel/babel/compare/v2.9.0...v2.9.1)

---
updated-dependencies:
- dependency-name: babel
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-10-19 01:06:44 +04:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Ilya Lavrenov
2fae80ae88 Bump urllib3 from 1.26.4 to 1.26.5 in /docs (#13135)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.4 to 1.26.5.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.4...1.26.5)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-10-19 01:03:40 +04:00
Sebastian Golebiewski 1d18a7679b DOCS: Update GPU_Extensibility.md - for master (#13405)
port to master
Minor fixes, including indentation of code snippet and removing unordered list in Debugging Tips.
2022-10-18 18:37:38 +02:00
Vladislav Golubev 2d33f6f603 [CPU] LSTM Sequence test enabled (#13323) 2022-10-18 18:43:03 +04:00
Artur Kulikowski e12983e82c Copy runtime info in RIC fusion transformation (#13490)
* Copy runtime info in RIC fusion transformation

* Use ov namespace

* Iterate over const refs instead of use iterator
2022-10-18 16:30:53 +02:00
8a6d68ad2f Docs: Update "What's Next?" section in PyPI installation instructions (#13219)
* docs: Rewrite What's Next section on PyPI page

* docs: fix link to Python example

* docs: add link to additional configurations page

* Update docs/install_guides/installing-openvino-pip.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/install_guides/installing-openvino-pip.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* docs: remove Whats Next link

* docs: fix what's next link

* Update docs/install_guides/installing-openvino-pip.md

* Update docs/install_guides/installing-openvino-pip.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-10-18 21:52:35 +08:00
EvanandYuan Xu 993f22eff6 Docs: update for consistent usage of OpenVINO Runtime (master branch) (#13154)
* Docs: update for consistent usage of OpenVINO Runtime

* Update docs/install_guides/configurations-for-intel-gna.md

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

* Update docs/install_guides/configurations-for-intel-gna.md

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

* Update docs/install_guides/configurations-for-intel-gpu.md

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

* Update docs/install_guides/configurations-for-intel-gpu.md

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

* Update docs/install_guides/configurations-for-ivad-vpu.md

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

* Update docs/install_guides/configurations-for-ncs2.md

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

* Update docs/install_guides/configurations-for-ncs2.md

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

* Update docs/install_guides/configurations-for-ncs2.md

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

* Update docs/install_guides/installing-openvino-linux-header.md

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

* Update docs/install_guides/installing-openvino-linux.md

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

* Update docs/install_guides/installing-openvino-linux.md

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

* Update docs/install_guides/installing-openvino-macos.md

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

* Update docs/install_guides/installing-openvino-macos.md

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

* Update docs/install_guides/installing-openvino-windows-header.md

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

* Update docs/install_guides/installing-openvino-windows.md

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

* Update docs/install_guides/installing-openvino-windows.md

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

* Update docs/install_guides/installing-openvino-windows.md

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

* Update docs/install_guides/installing-openvino-yum.md

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

* Update docs/install_guides/installing-openvino-windows.md

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

* Update docs/install_guides/installing-openvino-windows.md

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

* Update docs/install_guides/installing-openvino-yum.md

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

* Update docs/install_guides/installing-openvino-yum.md

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

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-10-18 16:50:36 +03:00
EvanandYuan Xu a82eb6e9c3 docs: Update Troubleshooting overview page (#13217)
* docs: update troubleshooting overview page

* Update docs/install_guides/troubleshooting.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-10-18 16:41:16 +03:00
Vladimir Paramuzov 5453965566 [GPU] Refactor kernel selector to make file path a bit shorter (#13419) 2022-10-18 17:41:09 +04:00
Alexander Kozlov 7019afd7ff Fixed versions of POT dependencies (#13497)
* Fixed versions of POT dependencies

* Keep pandas version fixed due to incompatibilities with the numpy
2022-10-18 15:59:54 +04:00
Katarzyna Mitrus 24e74b55ad Shape infer review (dim labels and intervals) - BinaryElementwiseArithmetic ops (#13285)
* Add missing div/mul/sub type_prop test files to CMakeLists

* Align license note in missed test files

* Add interval dimension tests for binary arithmetic ops

* Align test file style

* Add test for broadcast none

* Add more numpy test cases

* Add pdpd broadcat tests

* Add more intervals numpy broadcast tests

* add attr types header

* Register tests in ArithmeticOperator suite

* Change all assert_eq to expect_eq

* pdpd broadcast tests clean up

* Add tests for dim labels numpy broadcast

* Style format

* Tests improvement

* More label tests

* Comment update

* Add more tests for numpy and none broadcast

* PDPD tests cleanup

* Refactor tests to use get/set_shape_labels helper

* Add more label tests

* Add more tests, use TableOfEquivalence

* Propagate d2 label if labels are not equal

* Make common `merge_labels` helper function

* Update MatMul labels test

* Fully dynamic shape test numpy/none/pdpd

* Separate and refactor test cases
2022-10-18 13:32:37 +04:00
Przemyslaw Wysocki 1861609119 [PyOV] Fix nightly pip conflicts (#13387)
Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
2022-10-18 11:24:06 +02:00
Pawel Raasz 4bc36f29f4 Review opset1 concat for shape inference aspects (#13455)
* Add interval dim test to Concat op
- use common test fixture for PartialShape OK scenario

* Use get_shape_labels in Concat tests

* Add label_evaluate test for Concat op

* Add validation util to check no labels in tensor

* Add template shape inference for Concat op

* Move Conact evaluate_label test to evaluate bounds

* Fix cpplint issue
2022-10-18 13:17:21 +04:00
Nadezhda Ageeva e9681fca49 Fix query_model for unconnected Parameters (#13511) 2022-10-18 11:05:10 +03:00
7f3c95c161 Meiyang/paddle 2.3 (#13272)
* Migrate to PDPD 2.3

* update supported paddle version to 2.3.2

* update paddle test with paddle new static API on 2.3.2

* fix issue of different output shape with paddle's

* fix clang format issue

* fix compiling issue

* integrate paddle static save model api to original save model api

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Alina Kladieva <alina.kladieva@intel.com>
2022-10-18 11:14:03 +04:00
Ivan TikhonovandIlya Churaev 8e130391f0 EliminateSplitConcat transformation (#13373)
* SplitConcatElimination transformation

* ov namespace

* fix: add an additional check for split

* Fix lpt tests: added unary op between Split and Concat to avoid elimination

* add additional check in SplitConcatElimination, add new tests

* apply review comments, add detailed description of the special case

* apply review comments

* clean up

* apply review comments

* Apply suggestions from code review

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

* codestyle

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-10-18 11:03:52 +04:00
Felix Dohyun Kim f2bdffb04f [GPU][DG2] Fix some bugs (#13517)
* Bugfix: deconv 2 conv optimization
2022-10-18 15:34:50 +09:00
Sungeun KimandJade Cho b21510f9f6 Optimize b16 (#13205)
* optimize models on batch16
* add is_os_yx_isv16_osv8 to format_traits_map
* choose onednn deconv
  - remove checking deconv cross-precision
  - implicit concat could not support byxf.

Co-authored-by: Jade Cho <jade.cho@intel.com>
2022-10-18 13:35:45 +09:00
Ilya Churaev 0f3621ec9b Removed global opset mutex (#13501)
* Removed global opset mutex

* Fixed compilation

* Fixed IR frontend
2022-10-18 07:28:43 +04:00
avoskoboinyk-lohika daa8aaa894 Unbreak ShapeOf conformance test with dynamic shapes (#13326) 2022-10-17 21:47:14 +03:00
Ilya Lavrenov 5519fff5c2 Fixed RDFT under Rosetta (#13495) 2022-10-17 15:02:28 +02:00
Irina Efode c81fa39d3d [IE TESTS] Fix build with -DENABLE_FUNCTIONAL_TESTS=OFF && -DENABLE_TESTS=ON (#13494)
* [IE TESTS] Fix build with -DENABLE_FUNCTIONAL_TESTS=OFF && -DENABLE_TESTS=OFF

* Comment
2022-10-17 13:09:10 +03:00
Ilya Lavrenov 5889b82a2a Fixed arm cross-build (#13504) 2022-10-17 13:39:34 +04:00
Maciej Smyk be2180654e several ports to master
Fixing issues for Ecosystem Overview, Media Processing and Extensibility.

Porting:
#13098
#13086
#13108
2022-10-17 11:06:04 +02:00
Sebastian Golebiewski 0db641fc51 DOCS: Fixing math equation for master (#13210)
A small fix for math equation that was not rendering properly... further changes required in the future, when build process is simplified.
2022-10-17 11:31:16 +03:00
Sebastian Golebiewski d17464985a DOCS: Updating link to OMZ Demos (#13258)
Changing the version of the docs to which a link directs.

Porting:
https://github.com/openvinotoolkit/openvino/pull/13256
2022-10-17 10:16:02 +02:00
Andrew Kwangwoong Park 550e59070e [GPU] Baseline primitive, primitive_inst, program_node change for multiple outputs support (#13295)
* Update primitive, primitive_inst, and program_node for multiple outputs support

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Update arg_max_min kernel for multiple outputs support

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Fix failed unittests TCs

- remove duplicate output memory

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Clean up code

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Apply code review

Signed-off-by: Andrew Park <andrew.park@intel.com>

Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-10-17 15:13:19 +09:00
Min, Byungil f1d816f6aa [GPU] Add planar format to onednn reduction (#13445)
Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-10-17 15:04:41 +09:00
Wang, Yang 0552d98802 [AUTO]Update the incorrect config test for Myriad (#13271)
* Update the config test for Myriad because config checking logic is updated in the MULTI/AUTO plugin.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-10-17 09:29:16 +08:00
Anastasia Kuporosova 81c0456acf [PyOV] Fix userdata default value (#13481)
* [PyOV] Fix userdata default value

* add test

* apply fixes
2022-10-15 13:11:15 +02: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
Xuejun Zhai 830cc6ed73 [C API DOC] fix mac build error, caused by compiled model doesn's provide api to get input port with nan const (#13488)
Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-10-14 18:51:51 +04:00
Pavel Durandin 0a174e6788 [GPU] Fix for windows memory fail (#13489) 2022-10-14 17:31:48 +03:00
Georgy Krivoruchko ea5b7a2c65 TensorFlow Equal layer test implementation (#13334) 2022-10-14 16:20:29 +04:00
Sergey Shlyapnikov 5fea4c3fc3 [GPU] Convert activation's slope buffer data type for OneDNN fusions (#13444) 2022-10-14 13:58:35 +04:00
Sergey Shlyapnikov 0b8f1f8c00 [GPU] Optimize reorder between permute and first convolution (#13459) 2022-10-14 13:57:58 +04:00
Irina Efode bbfd5635a6 [IE TESTS] Fix cuda plugin fix for PR443 (#13479) 2022-10-14 12:19:47 +03:00
Roman Kazantsev 3b642e2465 [TF FE] Remove export of API for helper transformations (#13484)
* [TF FE] Remove export API for helper transformation

Also, it skips layer tests for SegmentSum and DynamicPartition in case legacy frontend

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Split test suites for DynamicPartition

* Update CMake to link additional sources for the tests

* Update Cmake to fix unresolved symbol get_message_prefix_tf

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-14 12:17:16 +03:00
Irina Efode 22d08de791 Separation Static and Dynamic operations in Subgraph Dumper serialization (#13420) 2022-10-14 11:31:00 +03:00
Oleg Pipikin c8050d017b Disable IRFrontendTests.elementary_model_reading_v9 (#13471) 2022-10-14 09:24:11 +03:00
Tomasz Jankowski b424ee2568 [Core] Move op_eval tests into Template plugin (#13001)
* Remove redundant tests

* Remove MatMul op_eval tests

* Remove RoiAlign, RoiPooling op_eval tests

* Move VariadicSplit op_eval tests to TemplatePlugin

* Move Transpose op_eval tests to TemplatePlugin

* Move Interpolate op_eval tests to Template Plugin

* Redo Interpolate_v4 tests

* Adopt to new exception messages
2022-10-14 07:45:28 +03:00
Xuejun Zhai 4c329fbe5a [C API DOC] update C API user guide pipeline (#13290)
* [C API DOC] update C API user guide pipeline

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] C API user guide pipeline add Link & Build part for C

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] C API user guide pipeline add objects release for C

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] C API user guide pipeline clear annotates

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] fix build error

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] Reconstruct the guide about integration with OpenVINO Runtime for C

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Revert "[C API DOC] Reconstruct the guide about integration with OpenVINO Runtime for C"

This reverts commit 9552054e7e.

* [C API DOC] split project structure & Cmake

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] using correct input shape

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] align with C++ code example

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API DOC] fix build error

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-10-14 07:27:40 +04:00
Irina Efode dafa67cf27 [IE TESTTS] Move Set_Device_Name to correct place (#13473) 2022-10-14 06:17:03 +03:00
Mykhailo Hnap 30774036ab [GPU] Implement CTCLoss-4 (#13122) 2022-10-14 11:13:32 +09:00
Roman Kazantsev b08fa945bc [TF FE] Support Unique operation via transformation (#13463)
* [TF FE] Support Unique operation via transformation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix other part: place header for UniqueReplacer and test name

* Remove redundant included headers in the transformation test

* Add one more case in the transformation test

* Implement the right way for mapping tensor names

* Apply code-review: rename out_idx, add check for 1D

* Fix unique_replacer test

* Fix typo in the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add FunctionsComparator CmpValues ACCURACY to the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-13 21:34:29 +03:00
Oleg Pipikin 2d8faed15b Fix Mac CI. Disable ir frontend tests (#13475) 2022-10-13 22:18:07 +04:00
Irina Efode 78d6f68de4 Infra for device suffix (#13339)
* [IE TESTS] Using Gflags instead of parsing command-line options

* Apply infra for suffix

* remove extra

* Squashed commit of the following:

commit c249f5d581
Author: iefode <irina.efode@intel.com>
Date:   Thu Oct 6 11:56:11 2022 +0400

    Fix default values for command-line argument

commit b2dbb4418c
Author: iefode <irina.efode@intel.com>
Date:   Wed Oct 5 18:09:22 2022 +0400

    rename gflags config

* Fix errors

* Remove gflag using

* Remove gflags

* Update main.cpp

* Update main.cpp
2022-10-13 15:45:03 +04:00
Ilya ChuraevandTatiana Savina b0fadcebd6 Update information about tests for IR frontend (#13465)
* Update information about tests for IR frontend

* Fixed typos

* Update src/frontends/ir/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-10-13 15:31:57 +04:00
Sebastian Golebiewski 18348b1081 DOCS: Fixing readme for master (#13252)
* DOCS: Fixing Readme for master
Minor linguistic corrections and fixing links.
Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
2022-10-13 13:06:45 +02:00
Ilya Lavrenov 4a727ea54d Disabled TBB and OpenCV downloading for aarch64, keeping only for yocto (#13462) 2022-10-13 14:16:20 +04:00
Szymon Irzabek 296b621577 [GNA] Replace fixed quantization code with a more flexible approach (#13237) 2022-10-13 10:21:59 +01:00
Irina Efode 3f14ec7fcb Fix relative path in conformance runner script (#13418) 2022-10-13 12:50:49 +04:00
Zhang Yi 7d5e0abcaa [CPU]add interaction op with FP32 & BF16 support (#12351) 2022-10-13 11:59:48 +04:00
Luwei Zhou 61acc4a08b [CPU] Add conv per-tensor input zero point. (#12270)
- Enable per-tensor zp on AVX512_VNNI and AVX512_AMX ISA to use BRGCONV kernel.
- Fix brgconv should not be disabled correctly in some INT8 model which has binary postops
- Merge optimization of convolution attribute PR to lower down the load network time latency
- Only enable conv/group conv S8 input on AMX. Non-AMX same with 2022.1 LPT input precision config.
2022-10-13 10:07:11 +04:00
hyunback kim 383ec09d85 [GPU] Fix endless loop issue in onednn optimization post-opt (#13413)
* [GPU] Fix endless loop issue in onednn optimization post-opt
* Reproduced in yolo_v5s.int8
* Add OV_GPU_DisableOnednnOptPostOps in debug_configuration
2022-10-13 14:47:03 +09:00
Ilya Churaev 01d332eb59 Added initial documentation version for Inference component (#13439) 2022-10-13 08:38:32 +04:00
Karol BlaszczakandAlina Kladieva 22bfd50b5f DOCS-https-change-for-notebook-repository (#13426)
Porting https://github.com/openvinotoolkit/openvino/pull/13145 to master

Co-authored-by: Alina Kladieva <alina.kladieva@intel.com>
2022-10-13 07:18:35 +04:00
Maciej Smyk 39abc5368d DOCS: Port to master - NNCF Fix (#13283)
Port from #13215
2022-10-12 17:06:37 +02:00
Przemyslaw Wysocki b36fc446a3 [PyOV] Update docs with Python 3.10 (#13243) 2022-10-12 15:52:41 +02:00
Mikhail Ryzhov a197c814f8 renamed unit tests in azure ci (#13450) 2022-10-12 17:04:23 +04:00
Sebastian GolebiewskiandMaciej Smyk 60099a19bd DOCS: Fixing formatting in Samples - port to master (#13128)
* DOCS: Fixing formatting in Samples - porting to master

Porting
https://github.com/openvinotoolkit/openvino/pull/13085

Fixing incorrectly numbered lists and indentation of code blocks.

* Update get_started_demos.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
2022-10-12 14:16:02 +02:00
Karol Blaszczak 7f75da93ed DOCS-benchmarks table update (#13436) 2022-10-12 12:39:13 +02:00
Oleg PipikinandIlya Churaev 11579530b7 Add IR frontend tests (#13178)
* Add IR frontend tests

* Fix comments

* Add tests

* Fix comments 1

* Fix comments 2

* fix comments 3

* fix code style

* Fix comments 4

* Fix comments 5

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-10-12 13:31:58 +04:00
Irina Efode 07aabf27bc The same Conformance IR name version by version (#13329)
* Initial version

* Add ports info

* Checks

* add dynamic
2022-10-12 11:46:01 +03:00
Ilya Lavrenov c2911adf94 Conda-forge fixes (#13392) 2022-10-12 12:16:13 +04:00
Mikhail RyzhovandAdam Tumialis ea3ac0d335 [GNA] Rename and move to new place gnaFuncTests, gnaUnitTests (#13280)
* [GNA] Move tests to plugin dir

* reverted temporary fix

* Added linux specific compiler flags

Co-authored-by: Adam Tumialis <adam.tumialis@intel.com>
2022-10-12 09:33:42 +02:00
Haiqi Pan c0c4c41241 Correct the GPU number that triggers the CPU removal in CTPUT (#13225) 2022-10-12 15:00:04 +08:00
Katarzyna Mitrus 844b0a2682 [shape_infer] Shape inference function for GRU/AUGRUSequence operations (#12982)
* shape_infer function for gru_sequence

* Reuse gru sequence shape infer for augru shape infer

* link ov_shape_inference in transformations

* Move attention input validation to shape_infer

* Update gru_sequence type prop tests

* type prop tests update

* gru_sequence shape_infer tests

* Update merged dimensions init

* Enable GRUSequence shape_infer in cpu

* Comments update

* Align error messages

* Change constexpr int to size_t in tests

* Apply types refactor

* Remobe set_input_is_relevant_to_shape from gru/augru_sequence

* Style apply

* revert constexpr for result_et

* Uninitialize valid_num_directions variable
2022-10-12 10:35:54 +04:00
Pawel Raasz 988ed3b2f1 Remove deprecated util functions (#13417)
* Remove deprecated and not used functions:
- ngraph::is_valid_permutation
- ngraph::apply_permutation

* Use not blocking assertion in transpose test,
type prop
2022-10-12 10:23:26 +04:00
Pawel Raasz 660b309235 Extract and move transpose evaluate bounds tests (#13428)
* Extract and move transpose evaluate bounds tests

* Apply clang-format
2022-10-12 06:41:02 +02:00
Ivan Tikhonov 8a9890dbf1 [TF FE] Support DynamicStitch operation (#13408)
* Delete unneccessary changes

* codestyle

* skip dynamic stitch layer tests for legacy frontend

* apply review comments

* fix unit tests, apply review comments
2022-10-12 08:04:19 +04:00
Wang, Yang 6bd099917a [AUTO plugin] Enable benchmark setting performance hint with none value to hardware device through AUTO/MULTI plugin (#13063)
* Set 'UNDEFINED' as the performancehint default value. Update benchmark app to pass performance hint with none value to MULTI/AUTO plugin.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Using 'UNDEFINED' as the default value of hint in AUTO/MULTI plugin.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Adding a flag instead of adding a default value of hint to check if user configures the performance hint to AUTO/MULTI plugin.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update benchmark python version.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-10-12 10:03:17 +08:00
yanlan song 37a0afa330 disable binder related tests (#13399)
Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-10-12 04:12:42 +03:00
Ekaterina Aidova d6694e4820 [OMZ]: update submodule to minimize ac dependencies (#13416) 2022-10-11 19:56:58 +04:00
Liubov Talamanova 968bd6c96b Fix bug with unknown node type (#13406) 2022-10-11 19:05:54 +04:00
Evgenya Stepyreva abd58eef5c Group Convolution: prevent dyn input shape from making weights dynamic via ShapeOf (#13374)
* GroupConvolution: prevent dynamic input shape to make weights dynamic via ShapeOf

* Minor fix to get rid of deprecation warnings
2022-10-11 18:48:11 +04:00
Ruslan Nugmanov 37dbcdac3f Adds fixture for tf2 layer tests to run them with new FE (#13403)
* Adds fixture for TF new FE

* fixes imports
2022-10-11 17:25:05 +04:00
Roman Lyamin 9c6ad77852 [GPU] FullyConnected dynamic (#13015)
* [GPU] FullyConnected dynamic

* [GPU] Fix FC OneDNN usage
2022-10-11 16:51:18 +04:00
Oleksandr Zhydkov 2d4d80a444 [GPU] Add support class agnostic box regression for experimental detectron … (#13003)
* add support class agnostic box regression for experimental detectron detection output

* add test
2022-10-11 21:31:47 +09:00
Oleksii Khovan 66b5f9acf2 [GPU] GenerateProposals-9 (#11994)
* add static_output attribute to enable GPU implementation of GenerateProposals.
This change may be reverted when dynamic shapes support will be implemented
in GPU plugin.

* - add GPU single layer test;
- add normalized attribute to SLT.

* add GPU primitive for GenerateProposals

* add kernel for GenerateProposals

* add unit test for GenerateProposals

* add blocked layouts support

* tidy up

* support blocked layouts also for 2nd and 3d outputs

* Transformation to deal with dynamic output in GPU
  - revert changes in GenerateProposals interface and shape inferenece;
  - add transformation;
  - custom compare method in single-layer test.

* address review comments

* fix after rebase

* fix after rebase

* review comment: added nms_eta to testcase name generation

* - added input types combination to functional tests;
- fix float16 comparison.

* fix after rebase

* use vector for input ids

* fix after rebase
2022-10-11 21:10:32 +09:00
Ilya Churaev b2e35592f7 Fixed comments after PR 13366 (#13389) 2022-10-11 13:07:18 +04:00
Ilya Churaev f58dc8f7c5 Fixed mac build generation (#13415) 2022-10-11 06:45:06 +00:00
Alina Kladieva 067537f6d0 Show ccache stats in linux_coverity (#13382) 2022-10-11 08:25:19 +04:00
Ilya Lavrenov 54eede2e6a Enabled clang-format for offline_transformations (#13410) 2022-10-11 07:56:30 +04:00
Tomasz Dołbniak b00796324c Unique-10 operator specification (#13361) 2022-10-10 20:06:21 +03:00
Georgy Krivoruchko 28954a82d9 Subgraphs Dumper fixes (#13356)
* Fixed exception in case more than one output

* Fixed a loosing an operations in case of constant inputs
2022-10-10 18:38:15 +03:00
Roman Kazantsev 589c95ec19 [TF FE] Support DynamicPartition operation (#13363)
* [TF FE] Support DynamicPartition operation

Add support for DynamicPartition operation and validate it with the layer tests

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add implementation

* Rescale partition indices to provide stable sorting

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-10 17:52:55 +04:00
Pawel Raasz b4ad7033c9 Opset 1 transpose shape inference review (#12937)
* Test to interval shape propagated by transpose

* Test to propagate labels by transpose

* Add template transpose shape inference

* Fixes to transpose shape inference

* Update names for shapes:
input -> input_shape
order -> order_shape

* Not fill output shape for dynamic range

* Add constexpr to SeqGen and Between comparator

* Correct StaticShape creation in test

* Tests check partial value propagate in arg input

* Add evaluate upper, lower, label to transpose
- add test

* Add common methods for inference and evaluate

* Move helpers to shape_inference

* Move transpose attribute to transpose op

* Fix include in transpose operator

* Correct label generation and type

* Fix null conversion

* Use uint64_t for labels tensor

* Fix compare labels

* Use order length as output rank

* Update transpose transformation test

* Move helpers to validation_util

* Correct test assertion for expected shape

* Transpose evaluate use common function
for output calculation

* Remove redundant helpers from transpose test
2022-10-10 16:18:52 +04:00
Wang, YangandRiver Li 457f606812 [AUTO] fix Performance inefficiencies issue (#13273)
* fix Performance inefficiencies issue caused by previous PR.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: River Li <river.li@intel.com>
2022-10-10 08:42:43 +00:00
Asthestarsfalllandcecilia peng 94ef65f0bd add paddle elementwise mod op (#12370)
Co-authored-by: cecilia peng <cecilia.peng@intel.com>
2022-10-10 11:03:09 +03:00
Vladislav Golubev 372fe475c9 [LPT] Removed legacy limitations on dequantization propagation for several transformations (#13048) 2022-10-10 10:58:23 +04:00
OlehKravchyshyn e8c8ad19f4 [GPU] eye-like operation (#11937)
* eye-like operation

single layer tests
unit tests

* [GPU] adjust eye implementation to the current GPU operation design
2022-10-10 11:29:40 +09:00
Ruslan Nugmanov 80b6086bab Adds TF2 layer tests witn new FE in precommit (#13311)
* marks tf2 keras tests as precommit for new FE

* adds tf2 layers tests for new FE in precommit

* removes redundant tabulations

* review changes

* fix field name

* fix syntax error

* removes failing tests

* removes failed test

* removes failed test
2022-10-08 16:40:34 +03:00
Orest Chura 1e5ff24834 Fix openvino_mock_py_frontend target compilation (missing openvino::runtime dependency) (#13393) 2022-10-08 11:17:51 +04:00
Ilya ChuraevandIlya Lavrenov a8abfa221b Fixed small comments after enabling warning as error (#13364)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-10-07 19:40:26 +04:00
Ilya ChuraevandTatiana Savina 767944cc46 Changed structure of core components and fixed links (#13366)
* Changed structure and fixed links

* Exclude README.md from CI check

* Update README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Fixed links

* Update src/frontends/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/plugins/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-10-07 19:04:55 +04:00
Roman Kazantsev f5febef8a6 [TF FE] Support SegmentSum operation (#13354)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-07 17:01:14 +03:00
Irina Efode cdb486d838 [CONFORMANCE] Fix Summary (#13358) 2022-10-07 14:40:05 +04:00
Jade Cho 36f28e5618 [GPU] Convert AvgPool to Reduce for onednn (#13037) 2022-10-07 18:25:47 +09:00
Ilya Lavrenov c83ad806d9 Enabled LTO for OSX (#13266) 2022-10-07 12:09:44 +04:00
Roman Kazantsev 227f9ae5af [CI, Azure] Fix linux-arm64 (#13368)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-07 10:15:49 +04:00
Nico Galoppo 6e791a021c Fix benchmark perf counter stats output (#13134)
* Fix benchmark_app commandline parsing

Object 'str' does not have a contains() method. Replaced by
"searchstring in object" query.

* Fix perf counter output and use consistent units

When ProfilingInfo was bound by pybind11, those entries turned into
Python timedelta objects. This caused two problems:

1. There was a division by 1000 to go to milliseconds. This caused a lot
   of precision lost, because `timedelta(microseconds=2300)/1000.0 =
   timedelta(2)` and `timedelta(microseconds=33) = timedelta(0)`.
2. When converting those timedelta objects to str, the output is in the
   form of (HH:MM:SS.XXXXXX). This is not very useful microsecond based
   performance counters.

This change simply reverts everything to printing plain microsecond
based integers.

* Align counter output to ms between Python/C++
2022-10-07 02:17:15 +04:00
Alina Kladieva 948e36896e Use ccache in linux_coverity builds (#13360) 2022-10-06 20:05:36 +04:00
Ilya ChuraevandTatiana Savina 6e9689db93 Add ir frontend doc (#13351)
* Added IR frontend doc

* Update README.md

* Create support_new_opset.md

* Create architecture.md

* Update README.md

* Update support_new_opset.md

* Update architecture.md

* Update README.md

* Update src/frontends/ir/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/support_new_opset.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/support_new_opset.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/support_new_opset.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update README.md

* Update architecture.md

* Update src/frontends/ir/docs/support_new_opset.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/support_new_opset.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/ir/docs/architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-10-06 16:31:25 +04:00
Nadezhda Ageeva f45c846be0 [GPU] mark constants as supported on QN. QN helper. (#12990)
* [GPU] mark constants as supported on QN. Fetch common part for CPU and GPU.

* Code style

* Apply review comments. Fix TEMPLATE plugin FP16, use common QN helper.

* Apply review comments: CNNNetwork -> Model inside GetSupportedNodes

* Apply review comments: move functino from plugin interface
2022-10-06 12:54:25 +03: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
Jade Cho 25f85a3beb [GPU] Fix a bug of input buffer reusing for optimized-out layers. (#13349)
- revert f7e05ad402
- It was causing accuracy issue with implicit concat
2022-10-06 17:35:34 +09:00
Paul Youngsoo AhnandTaylor Yeonbok Lee cd5928da53 Crop(Split and VariadicSplit) new shape infer (#13216)
* [GPU] Split and VariadicSplit new shape infer (#13216)

GPU update test script

* [GPU] Added W/A for crop offset (#13216)

Co-authored-by: Ahn, Paul Y <paul.y.ahn@intel.com>

* [GPU] Fix crop gpu test failures (#13216)
- Fixed by review comments

* [GPU] Move input offsets calculation to crop_inst::calc_output_layouts (#13216)

Co-authored-by: Taylor Yeonbok Lee <taylor.lee@intel.com>
2022-10-06 11:07:40 +09:00
Nadezhda Ageeva 35b943d21a [GNA] Fix std::bad_alloc for split eltwise (#13336) 2022-10-05 20:29:46 +03:00
Pawel Raasz 2b70158047 Review opset1 matmul shape inference aspects (#13333)
* Add label propagate test for shape inference

* Update MatMul tests for StaticShape

* MatMul label propagation, reshape input with label

* Apply clang-format to matmul shape inference tests
2022-10-05 17:21:36 +04:00
Alexandra Sidorova f6d6f5629f [Snippets] Added support of INT8 models (#12395) 2022-10-05 13:05:15 +04:00
Jade Cho f7e05ad402 [GPU] Fix a bug of reorder optimized-out (#13180) 2022-10-05 18:04:27 +09:00
OlehKravchyshyn b73d3370d8 [GPU] added 5d supporting to interpolate onnx and tests (#12821) 2022-10-05 17:20:51 +09:00
Piotr Krzemiński 29a15e39da [BENCHAMRK_APP/PYTHON] CV2 module required only when loading images (#13113) 2022-10-05 09:50:55 +02: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
Roman Kazantsev e1545622d3 [TF FE] Switch on fallback for TF FE even for use_new_frontend option (#13321)
* [TF FE] Switch on fallback for TF FE even for use_new_frontend option

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add unit-test for TF FE transformation config fallback

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-05 06:28:24 +03:00
Roman Kazantsev fa3c745263 [TF FE] Support DeepSpeech model by TF FE (#13316)
* [TF FE] Support DeepSpeech model by TF FE

Add the final part to support BlockLSTM operation with sliced state cell
from the last time step.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-review feedback: use get_pattern_map, no nullptr

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-05 06:00:33 +03:00
Ilya Lavrenov 76fc9cb109 Proper folder during compilation for arm64 on intel (#13331) 2022-10-05 00:34:36 +04:00
Oleksii Khovan fed0d1cebf [GPU] PriorBox-8 (#12995)
* fix: add missing attribute

* add single-layer test for PriorBox8

* disable PriorBox8 to PriorBox8 transformation for GPU plugin

* add kernel stuff

* add PriorBox-8 primitive and OCL implementation

* add unit tests

* enable NoScale test
2022-10-04 20:53:40 +09:00
Mykhailo Hnap 4946f6d87b [GPU] Implement (I)RDFT-9 (#12010)
* [GPU] Implement (I)RDFT-9
* Added GPU implementation of RDFT operation
* Added basic GPU implementation of IRDFT operation, but still needs adjusting
* Added single layer tests for (I)RDFT
* Added unit tests for (I)RDFT
* Added blocked layout support for all DFTs operation

* [GPU] Added changes after review.

* [GPU] Added single-layer test for single axis case for DFTs.

* [GPU] Simplified attach_dft_impl method.

* [GPU] Moved negative axes cases to separate test for DFTs.

* [GPU] Adjusted tests to cover all signal sizes cases (less, equal and more than input size) for DFTs.

* [GPU] Fixed IRDFT implementation.

* [GPU] Used RDFTLayerTest.

* [GPU] Fixes after rebase.

* [GPU] Renamed kind enum to direction.
2022-10-04 20:26:50 +09:00
Evgenya Stepyreva f82a8cf93a Introduce setters for opset7::Gelu (#13315)
* Introduce setters for opset7::Gelu

* upd

* upd
2022-10-04 14:38:13 +04:00
Ilya ChuraevandTatiana Savina f39488ace0 Update core doc (#13324)
* Updated core documentation

* Update README.md

* Update api_details.md

* Update api_details.md

* Update src/core/docs/api_details.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/core/docs/api_details.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/core/docs/api_details.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/core/docs/api_details.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Fixed comments

* Update src/core/docs/debug_capabilities.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-10-04 14:21:51 +04:00
trixirt f4c14763ab include limits for numerical_limits decl (#13310)
There is build error on RHEL 9
openvino/src/plugins/intel_gna/backend/pwl_border_values_counter_identity.cpp:70:51: error: ‘numeric_limits’ is not a member of ‘std’
   70 |     const int16_t y_min = is_low_precision ? std::numeric_limits<int8_t>::min() : std::numeric_limits<int16_t>::min();

numerical_limits is declared in limits, so include it.

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

Signed-off-by: Tom Rix <trix@redhat.com>
2022-10-04 13:04:35 +04:00
Irina Efode c1d5b5f266 [CONFORMANCE] Conformance report improvements (#13318) 2022-10-04 12:34:52 +04:00
Liubov Talamanova fcfc5c963b [POT] Fixed non-zero zero point value in symmetric quantized weights (#13013)
* Fixed non-zero zero point val in symmquantized weights

* Update references

* Add tests
2022-10-04 12:00:16 +04:00
Marcin Kusmierski 43db45a4fb [GNA] Add extra segments to PWL only if it is fused with Conv2D layer (#13144)
* [GNA] Add extra segments to PWL only if it is fused with Conv2D layer
* added checking if extra segments are needed by checking if activation
    functions are fused with Conv2D or Conv2D with Pooling applied
* added unit tests verifying implmentation

* Update src/tests/unit/gna/gna_extra_pwl_segments_tests.cpp

fix license
2022-10-04 08:59:47 +01:00
Evgenya Stepyreva 76c138ce85 Introduce setters for opset2::MVN and opset6::MVN (#13314) 2022-10-04 10:41:17 +03:00
Sergey Shlyapnikov bdffe5a054 [GPU] Fix reshape shape calculation for MatMul operation (#13312) 2022-10-04 11:15:07 +04:00
Roman Kazantsev f32530f0d7 [Tests] Clean-up TensorFlow 1 Layer tests (#13320)
Remove useless and confusing comments

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-04 10:26:53 +04:00
Evgenya Stepyreva 67ad21da52 Introduce setters for opset1::Clamp op (#13313)
Ticket: 90621
2022-10-04 10:13:59 +04:00
Min, Byungil 846d8e4605 [GPU] resolve accruacy issue related to concat (#13097)
+ Not to fuse activation function if concat is onednn
+ Added concat config to ForceImplType

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-10-04 14:58:36 +09:00
Nadezhda Ageeva 782615fdc6 [GNA] Fix handling of 0-3-2-1 transpose in GNA plugin (#12587)
* [GNA] Fix handling of 0-3-2-1 transpose in GNA plugin

* Remove unnessesary checks

* Review comments

* Make GNATransposeFusable string
2022-10-03 15:40:37 +00:00
Nadezhda AgeevaandIvan Tikhonov 45052f19be [MO] cleanup fused names after all transformations (#12906)
Add test

Update src/common/transformations/include/transformations/common_optimizations/fused_names_cleanup.hpp

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>

Review comments

Cleanup test includes
2022-10-03 18:53:13 +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
Leonard Sikorski 9d02de9cc0 Add Interpolate-4 to Python API and opset10 (#12229) 2022-10-03 13:09:04 +02:00
Tomasz Adamowicz 96f474d858 [GNA] Add OV & GNA versions to GNA export file (#13141)
* [GNA] Add OV & GNA versions to GNA export file (#86924)

* [GNA] Add UT for OV & GNA ver. export/import from model
2022-10-03 10:49:32 +01:00
Ivan Tikhonov 4f002c46b9 SequenceFusion transformation (#12845)
* SequenceFusion transformation and tests

* Enable SequenceFusion transformation in MOC

* add missed includes

* fix type

* fix build, apply review comments

* fix build

* fix build

* fix build again

* use ov namespace in has_result_consumers function

* fix win build

* try to fix win build

* investigate issue on win platform

* investigate issue on win platform

* investigate issue on win

* issue on win platform

* remove the transformation from MOC

* fix LSTMCell fusion, simplify transformation implementation, fix copying tensor and friendly names

* clean up

* add support for LSTMCell v0, resolve review comments, enable additional tests
2022-10-03 10:36:54 +04:00
Mateusz Tabaka 0c54905587 Use Output<Node> of If inputs to replace its body parameters in UnrollIf (#13287)
Fixes case when input node to a an If operator has multiple outputs itself.

Ticket: 93116
2022-10-03 08:35:43 +02:00
River Li 7d7fb11c5f [CAPI] add more test cases for element type (#13265)
* Avoid duplicated code

Change-Id: I86fe59bab13010aedc62a2c92102b00e060ceeec

* Add more test cased for element type

Change-Id: I1f02254cee715d53ede0422c14a4732267d3db27

* Apply INSTANTIATE_TEST_SUITE_P for tensor element type test

Change-Id: I8bbeeb00ae872b7b286b5a776a5c2681e6b5ee94
2022-10-03 08:09:37 +04:00
Liubov Talamanova 9f2564670f [POT] Support SoftSign quantization for GNA (#13140)
* Add SoftSign to GNA HW config

* Add test

* Update gna3 HW config
2022-10-02 10:43:51 +00:00
Roman Kazantsev e163bfecc7 [TF FE] Correct TF FE test names in Azure (#13309)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-01 21:48:01 +00:00
Roman Kazantsev 5fef222bce [TF FE] WA: Support Non-frozen Formats (#13289)
* [TF FE] WA: Support Non-frozen Formats

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Normalize path to the intermediate model

* Apply feedback: add path to return and correct tests

* Check that the file is not empty in the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-01 01:37:27 +03:00
Irina Efode 802ea9eeac [CONFORMANCE] Update passrates after adding skips (#13294)
* [CONFORMANCE] Update passrates after adding skips

* CSV
2022-09-30 20:19:40 +03:00
Liubov Talamanova f68b6e27b0 Update references (#13245) 2022-09-30 18:10:01 +04:00
Ruslan Nugmanov c91b45f716 adds layer tests for Add op with new TF FE (#13293) 2022-09-30 17:17:31 +04:00
Fang XuandRiver Li 8b781c93a9 Fix compilation error for ia32 (#13253)
Co-authored-by: River Li <river.li@intel.com>
2022-09-30 12:12:59 +04:00
Pawel Raasz bcc2133049 Fix openvino lin debian ci (#13255)
* Update LD_LIBRARY_PATH for python API tests

* Update LD_LIBRARY_PATH for python API tests

* Remove PYTHONPATH, OV_FRONTEND_PATH
echo PYTHONPATH and LD_LIBRARY_PATH

* Update get environ variables when are not set

* Set OV_FRONTEND_PATH variable

* Add openvino installation path to OV_FRONTEND_PATH

* Add PYTHONPATH to point install tests dir

* Add debug message for PYTHONPATH

* Update LD_LIBRARY_PATH to point openvino wheel
install directory

* Add comments for environ vars for python API tests

* Remove not required paths from linux CI

* Minor comments update
2022-09-30 09:30:22 +02:00
Irina Efode bfea110be7 Conformance runner script (#13105)
* Init

* dff

* logging

* dd

* ff

* te

* ff

* fix some mistakes

* dd

* fff

* remove extra

* apply comments

* fix models

* apply comments - 2

* fjfk

* ddd
2022-09-30 10:27:40 +03:00
Ruslan Nugmanov 515ec44566 TF FE layer tests in precommit (#13254)
* marks specified tests with precommit_tf_fe mark

* adds tf layer tests for new fe into the precommit

* removes redundant tab

* removes redundant tab

* clean-ups

* clean-ups

* change import path for build_graph func

* set path to mo

* set path to mo for PYTHONPATH

* get back imports

* left only CPU runs

* return back skip for LogSoftmax op since it still was not fixed

* adds test for GRUBlockCell op
2022-09-30 10:39:06 +04:00
sheng.gui@intel.com 6e7016ccda [ONNX FE] Fix issues of com.microsoft.EmbedLayerNormalization (#13034)
1. Add implement of EmbedLayerNormalization which seq_len != pos_embed_len
2. Align EmbedLayerNormalization implement in OpenVINO with ONNX-Runtime
2022-09-30 04:21:34 +02:00
Tetiana Gubanova 7d452bb7ef Add bs_fs_yx_bsv16_fsv16 format to interpolate. Fix tests to use blocked formats (#12656) 2022-09-29 17:59:52 -07:00
Roman Kazantsev 52cf4eacd1 [MO, Common] Fix SplitConcatPairToInterpolateFusion transformation (#13286)
* [MO, Common] Fix SplitConcatPairToInterpolateFusion transformation

It fixes a case when Split go with disconnected output port.
For this case, this transformation must not be applied.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix grammar mistake in the comment

* Remove ref_function from the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-29 17:41:55 +00:00
Ilya Lavrenov cfba7f669c Install only required files from thirdparty (#13284) 2022-09-29 21:02:22 +04:00
Vitaliy Urusovskij e891d0fa8c CC OpSet: Apply changes after code review (#13264) 2022-09-29 19:35:32 +04:00
Tomasz Dołbniak 5990cf9090 Skip of 2 failing CumSum tests (#13282) 2022-09-29 16:16:17 +02:00
River Li 371186ee05 Remove unreasonable assert in test cases (#13279)
Change-Id: I5844d674733cb70d31687d4f8e1f353c840daca4
2022-09-29 17:00:47 +03:00
Vladislav Golubev 1a51d1cac0 [CPU] Fixes for static postops after dynamic convolutions (#13260) 2022-09-29 17:42:05 +04:00
Oleksii Zaderykhin 2958756a39 [CPU] The registers pool implementation for JIT kernels. (#12880)
* The RegistersPool class was implemented. It is usefull for managing registers while developing jit kernels.

* The unit tests for RegistersPool were added.

* The virtual function call in the RegistersPool constructor bug was fixed.

* The Reg8, Reg16 were added to the RegisterPool. The tests were added for different ISA and different Xbyak register types.

* The release register on the move leakage was fixed.

* The default constructor was added for the IsaRegistersPool class, which exclude some critical registers by default.

* The implementation for is_any_of was added and used in the static_assert. The std::is_base_of and Xbyak::Mmx was used to identify vector registers. The factory method was added for RegistersPool with isa non template parameter.

* The -Wswitch and -Wunused-value errors was fixed for macos build.
2022-09-29 14:00:22 +02:00
Netpunkandcecilia peng fbd53ec857 add paddle op ceil (#12368)
Co-authored-by: cecilia peng <cecilia.peng@intel.com>
2022-09-29 10:46:21 +03:00
Ilya Churaev df62404473 Removed old paths from gitignore (#13270) 2022-09-29 11:42:20 +04:00
Vladimir Paramuzov 3f585fe135 [GPU] Fixes for onednn-based impls for dynamic models (#13209)
* [GPU] use impl_params in primitive_impl::create for onednn primitives

* [GPU] Update onednn impls registration

* [GPU] onednn flow fixes for dyn shapes
2022-09-29 09:16:16 +04:00
Steve Yoo 8c1a2307a9 [GPU] Add 1d to 1d weight kernel when creating ConstantOp (#12491)
* Add 1d to 1d weight kernel when creating ConstantOp

* Fix performance regression of dna model

* Add testcase for 1d input

* Fix blocksize range and simplify the operation

* Separate codes for block1 from block8

* Use OUTPUT_BLOCK_WRITE

* Add unit testcases for feature of multiple and non-multiple of 16 and for fusion test

* Fix testcase suffix as _1d_depthwise_convolution and remove redundant codes
2022-09-29 07:58:17 +03:00
Ilya Lavrenov f4fb3aee10 Fixed documentation for tests (#13246) 2022-09-28 23:36:21 +04:00
Helena Kloosterman 96953611ef Update version badge in README to 2022.2 (#13247) 2022-09-28 23:08:29 +04:00
River Li 159a54f07e [CAPI]Fix some potential segment fault in test cases (#13127)
* Fix some potential segmentfault in test cases

Change-Id: Ie12956e32805d950fa1eb82a1e49d532b26bc390

* Use OV_ASSERT_OK to replace OV_EXPECT_OK

Change-Id: I6780072cca4b4a6485105db4832ef3085c990df0

* Fix compile error

Change-Id: Ib4594093ddc60e504e45c6581410fa22d09bd9a6

* Update usage of ASSERT and EXCEPT

Change-Id: I7cb5d0bda4a60a2de899132c47fbf745bc760305

* Use EXPECT by default

Use EXPECT by default, unless you require something to hold for the remainder of the tests.

Change-Id: I2d2d8d8d9632e9e8742c4d923353d319e597a46a

* Avoid the issue of ov::hint::PerformanceMode::UNDEFINED

If convert ov::hint::PerformanceMode::UNDEFINED to string format, the string value is 0 (string_value=0, not "UNDEFINED")
We should avoid to copy this empty string.

Change-Id: I9d4a080b697a863762342f6f890d8ac7434e1864
2022-09-28 23:01:22 +04:00
Jan Iwaszkiewicz 2aead0dc3f [PyOV] Making offline_transformations a private module (#13213) 2022-09-28 18:38:52 +02:00
Vladimir Paramuzov d541c3f5f4 [GPU] Several fixes for dynamic int8 bert (#13214)
* [GPU] Fixed unfusion for const broadcast

* [GPU] Quantize new shape infer

* [GPU] Broadcast fixes for dynamic shapes

* [GPU] Constant fixes for dynamic models

* [GPU] Fixed layout optimizer for dynamic quantize

* [GPU] get_shape_infer_dependencies impl for some primitives

* [GPU] Reshape + ShapeOf subgraph tests
2022-09-28 18:19:27 +04:00
Sebastian GolebiewskiandKarol Blaszczak fcb4afab37 DOCS: Fixing version selector dropdown (#13187)
* DOCS: Fixing version selector dropdown

Fixing the version selector dropdown, to avoid horizontal scrollbar and trimming text.

* Adding overflow

* Update custom.css

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-09-28 16:17:49 +04:00
Ivan Tikhonov 1fde27bb62 Change debug information format from Z7 to Zi for transformation library on Windows (#13250)
* Change debug informaiton format from Z7 to Zi for transformation library. Temporary workaround for LNK1248: image size (1004722F6) exceeds maximum allowable size (FFFFFFFF)

* add WIN32 check
2022-09-28 15:55:16 +04:00
Sebastian GolebiewskiandKarol Blaszczak cb73660ecb DOCS: Fixing Model Representation - porting to master (#13146)
* DOCS: Fixing Model Representation - porting to master

Fixing the snippets in tabs.

Porting:
https://github.com/openvinotoolkit/openvino/pull/13088

* Additional Resources

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-09-28 15:36:48 +04:00
Maciej Smyk 9c30e81348 Update ovsa_get_started.md (#13234) 2022-09-28 15:36:39 +04:00
Sebastian GolebiewskiandKarol Blaszczak 329835cdce DOCS: Fixing formatting issues and broken links - port to master (#13143)
Porting:
https://github.com/openvinotoolkit/openvino/pull/13101
https://github.com/openvinotoolkit/openvino/pull/13103
https://github.com/openvinotoolkit/openvino/pull/13104
https://github.com/openvinotoolkit/openvino/pull/13106
https://github.com/openvinotoolkit/openvino/pull/13107
https://github.com/openvinotoolkit/openvino/pull/13109

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-09-28 15:35:17 +04:00
0429efb8b8 DOCS: NNCF documentation - port to master (#13183)
* Updating NNCF documentation

* nncf-doc-update-ms

* Merge branch 'nncf-documentation-for-22.2' of https://github.com/sgolebiewski-intel/openvino into nncf-documentation-for-22.2

* Adding python files

* Changing ID of Range Supervision

* Minor fixes

Fixing formatting and renaming ID

* Proofreading

Minor corrections and removal of Neural Network Compression Framework article

Co-authored-by: msmykx <101244365+msmykx-intel@users.noreply.github.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-09-28 15:34:57 +04:00
Vitaliy Urusovskij b2f486ff24 Apply CC to ov::OpSet (#13189)
* Apply CC to ov::OpSet

* Add CC tests for OpSet

* Apply clang-format
2022-09-28 15:11:03 +04:00
Mateusz Tabaka 6717a0c112 Fix Slice shape infer with dynamic dimension, zero start and negative stop (#13157) 2022-09-28 12:44:56 +02:00
Marcin Kusmierski f76ab476ff [GNA] Add extra segment to PWL to ensure crossing (0,0) (#12825)
* [GNA] Add extra segment to PWL to ensure crossing (0,0)

* implemented new mechanism of generating PWL segments for identity:
    * adding extra segment at (0,0) for PWL if given data does not pass (0,0).
    * updating xBases for segments on the left and right side of (0,0) segment.
* fixed dumpin of descriptor to *.dat file
* added regression tests in unit tests and functional tests

* Fix review comments
2022-09-28 11:39:45 +01:00
Karol Blaszczak e477f0aabf Update ov_chart.png (#13193)
Update ov_chart.png
2022-09-28 08:42:51 +02:00
Karol Blaszczak 8d51c72160 Update performance_int8_vs_fp32.md (#13194) 2022-09-28 08:32:09 +02:00
Vladimir Paramuzov c12eb8dd5a [GPU] Faster hash for impls cache (#13168) 2022-09-28 09:25:01 +04:00
Yuan Xu 82da9fa616 update linux section (#13226) 2022-09-28 11:10:36 +08:00
Yuan XuandKarol Blaszczak 5512f95f1a Fix a link issue for install archive pages (#13231)
* update links

* update for test

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-09-28 11:05:26 +08:00
Evgenya Stepyreva 8282bf3368 Convolution: (#12602)
- Precise spatial shape inference for dynamic shapes
  - Deprecated set_adding_above method and given alternative set_pads_end
  - Enabled shape inference for default-constructed Convultions (private field `num_spatials` is no more required to call shape_infer)
  - Test adjusted for dynamic spatial shapes calculation

Tickets: 82949, 82963
2022-09-28 06:31:06 +04:00
River Li 9e88e0283d [CAPI]Unicode support (#12985)
* Unicode support

Change-Id: I6da095b0f0b86eb0fa9c44ddb41fa40f82fbded2

* Unicode support load compile model from file and add test cases

Change-Id: Ic66c2b9d5bc7da44db85772fc55abb9a699f4b7d

* Fix build error in Windows

Change-Id: I98c686f5bef17bef63ec6937035fac011224a790

* Fix compile error caused by rebase

Change-Id: I1457ba6bfd6743855bf55d77a2103a558548a8a0

* Fix refefinition issue in Windows

In windows it reports below error:
  include\10.0.18362.0\um\winnt.h(1131): error C2365: 'BOOLEAN': redefinition; previous definition was 'enumerator'
  openvino\src\bindings\c\include\openvino/c/ov_common.h(105): note: see declaration of 'BOOLEAN'

Change-Id: Ic84b7f0d6e3de5ba6c37af39533a3ca2f2d17ad8

* Link ov::util to call unicode code function

Change-Id: Ib324173524b8fe9b7f523fe6b838e155ffbe0842

* rename BL0 to be BOOLEAN

* Boolean should be 8bits data
2022-09-28 05:37:53 +04:00
Mikhail Ryzhov b432da5a1e [GNA] Fixed import/export test (#13233) 2022-09-27 22:53:40 +03:00
Xiake Sun 795d17de81 Fix unknown --validate option with pkg-config lower than 0.29 (#13236) 2022-09-27 22:17:07 +04:00
yanlan song 7321785bb7 Bell/disable cases based on glibcversion (#13158)
* debug only

Signed-off-by: fishbell <bell.song@intel.com>

* refine comment

Signed-off-by: fishbell <bell.song@intel.com>

* Revert "debug only"

This reverts commit 5ef6140b63.

* disable tests if glibc<2.34

Signed-off-by: fishbell <bell.song@intel.com>

* cpplint

Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-09-27 22:16:12 +04:00
Nadezhda AgeevaandSzymon Irzabek 9d206b6956 [GNA]: Split eltwise using ngraph (#13176)
* [GNA]: Split eltwise over channel using ngraph

* Update src/plugins/intel_gna/layers/gna_split_layer.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

* Update src/plugins/intel_gna/transformations/split_eltwise_over_channel.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

* Review comments

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>
2022-09-27 18:13:42 +01:00
Yury Gaydaychuk 8ad0992050 [CPU][DS] Primitive caching for Def.Conv. (#10760)
* Primitive caching for deformable convolution

* reviewed
2022-09-27 17:56:45 +02:00
Wang, YangandChen Peter d72e39d8f3 [AUTO plugin] Fix benchmark failed to set nstreams on MULTI plugin (#12855)
* fix benchmark filed to pass on MULTI device when enable num_streams.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Remove part of test cases because MULTI plguin will not check if the unspported property is valid now.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Remove some incorrect config for MULTI test case since MULTI will pass through those unrecognized config without any exception.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Support MULTI to set nstreams to multi target devices by using ov::device:properties.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Support AUTO to set nstreams with multi target devices bu using ov:device::properties.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update format.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-09-27 23:42:40 +08: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
Karol Blaszczak 1f58c00c5c DOCS-homepage-adjustment (#13206)
* DOCS-homepage-adjustment

adjustment in 2 images

* Update docs/Documentation/deployment_guide_introduction.md
2022-09-27 14:31:08 +04:00
Ilya Churaev a04708c16b Rename core itt macros (#13221)
* Renamed ITT macro

* Rename NGRAPH_OP_SCOPE to OV_OP_SCOPE

* Fixed core tests
2022-09-27 12:43:15 +03:00
Min, Byungil 24f9b33a46 [GPU] Fix issues in tc for reduce fusion (#13150)
Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-09-27 15:21:40 +09:00
Tang, Wenyi e1ba00a8e0 [GPU] Fix filename confliction at gpu source dump (#13110) (#13111) 2022-09-27 09:46:26 +04:00
Taylor Yeonbok Lee 93c066fb14 [GPU] Fixed NonZero to have sorted result. (#13185)
* Fixed NonZero to have sorted result.
Fixed NonZero cldnn unittest to compare with ngraph reference code.

* Applied review comments

* Added more tests for 1d,2d,3d

* Fix local mem to be read from the param
2022-09-27 09:42:24 +04:00
Mateusz Tabaka da0cb0b589 [ONNX] use stoull to fetch length and offset to external data (#13186)
Ticket: 92373
2022-09-27 04:45:00 +02:00
Roman Kazantsev 8406983849 [TF FE] Support GRUBlockCell (#13202)
* [TF FE] Support GRUBlockCell

Currently, we support only hidden state output from GRUBlockCell due to
OpenVINO GRUCell capability

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix code-style issue

* Return Softsign translator

* Add tests for GRUBlockCellReplacer

* Fix issue for bias in GRUBlockCellReplacer

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-27 01:30:55 +03:00
Tomasz Jankowski e47b8858aa Add compilation control to python test mocks (#13212) 2022-09-27 01:38:01 +04:00
Ivan Tikhonov b6e0c80828 fix assert in gru cell fusion tests (#13181) 2022-09-27 00:08:07 +03:00
avoskoboinyk-lohika 35c4821021 [CPU] ShapeOf test: convert from LayerTestsCommon to SubgraphBaseTest and enable it (#13030)
* ShapeOf test: convert from LayerTestsCommon to SubgraphBaseTest and enable it

* Drop tail underline from description

* Rename filterCPUInfoForDevice -> filterFormatsInfoForDevice

* Use more suitable function name and reuse makeNgraphFunction
2022-09-26 10:00:00 +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
Wang Wangwang 7bbd428e48 Docs: Update the doc on how to manually set operations affinity & fix some spelling errors (#13203)
* Docs: Fix spelling errors

* Docs: Update the doc on how to manually set operations affinity
2022-09-26 10:39:44 +04:00
Kelvin Choi 766c289e15 [GPU] Reduce to use ngraph shape infer at calc_output_layouts (#13032) 2022-09-26 09:51:21 +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
Felix Dohyun Kim 2bc32a172b [GPU] Fix DG2 FullyConnected test case (#12854)
* Enforce selection of onednn primitive for the test
* Bias size bugfix
2022-09-26 10:29:20 +09:00
Roman Kazantsev 8daae561da [TF FE] Add a translator for Softsign (#13195)
* [TF FE] Add a translator for Softsign

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-style

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-25 22:56:00 +04:00
Roman Kazantsev d192c1341e [TF FE] Support BlockLSTM operation (#13170)
* [TF FE] Support BlockLSTM operation

Due to restrictions of LSTMSequence, currently we support
only concatenated hidden states from all time steps

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply feedback: opset9 use, remove redundant code, preserve tensor name

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply feedback: check for dynamic dimension, non-nullptr for decoder use

* Copy run-time info using NodeRegistry

* Prepare test placeholder for internal transformations and operations

Clean-up includes

* Implement unit-tests for BlockLSTMToLSTMSequenceOneOutput transformation

* Apply code-style changes

* Fix computation of hidden_size

* Fix output tensor name

* Revert incorrect changes

* Fix a type of hidden_size in tests

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-25 22:53:54 +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
Liubov Talamanova 4df8ed881a [POT] Unroll GRUCell for GNA (#12930)
* [POT] Unroll GRUCell for GNA

* Add test
2022-09-23 21:57:10 +03:00
Mingyu Kim 726de246aa [GPU] Ignore exception that happens during layout querying (#13184)
This might happen unnecessarily because of unsupported primitive, such
as asymmetric weights.
2022-09-23 23:00:13 +09:00
Bartek Szmelczynski d0af3bb9ee [MO] enable ir_reader read and write Quantico model (#12515) 2022-09-23 15:35:43 +02:00
Anastasia Popova 940844e71f mo.convert() method. (#11347)
* convert() method added.

* Moved conversion to convert() method.

* Fixed commits.

* Output dir fix.

* Added objects support for extesions param.

* Added support for transformations_config extension objects.

* Input to str unit tests.

* Added tests, added comments.

* Updated BOM.

* Removed commented code.

* Fixed extension passing.

* Small corrections.

* Fixed for python 3.6.

* Small fix.

* Moved dir creating to ov.serialize(), removed mo.serialize(), small fixes.

* Small fix.

* Small correction.

* Removed coping of params, moved convert implemetation to separate module.

* Import fixes.

* Moved hiding of exceptions to main().

* Updated comment.

* Fixed unit tests.

* Comment changed.

* Fixed dir creating.

* Tests fixed.

* Small fixes.

* Test fix.

* Added meta data generation, removed printing of execution time for silent mode.

* Import fix.

* Conflict fix.

* Fixed error.

* Fix for custom config.

* Added version, data_type params to help.

* Added mo.convert() full-functional tests.

* Small corrections.

* Comment correction.

* Moved convert to openvino package, moved LayotMap and InputCutInfo to openvino.convert.

* Added help param.

* Wrong change removed.

* Small fix.

* Removed unnecessary comments.

* Removed .xml extension check from append_ir_info.

* Added missed file.

* Fixed error.

* Fix for bool value in InputCutInfo.

* Moved InputCutInfo, LayoutMap to openvino.tools.mo.

* Moved InputCutInfo, LayoutMap to openvino.tools.mo.

* Moved check and read_model to emit_ir.

* Small correction.

* Added comment.

* Added unit_tests with convert().

* Small corrections.

* Removed convert alias from openvino.

* Fixed conflicting unit tests.

* Removed unnecessary warnings.

* Params check fix.

* Small correction.

* Added paths checks.

* Added negative tests for to_str methods, fixed errors.

* Added tuples support in input parameter.

* Moved reminders to update OV and use API 2.0 to main().

* Returned .mapping file generating.

* Added positional input_model param.

* Added test for unnamed input_model.

* Optimize imports.

* Added more informative error for brackets syntax in --input.

* Conflict fix.

* Conflict fix.
2022-09-23 17:29:00 +04:00
Ilya ChuraevandTatiana Savina 5fff132611 Dev doc guide (#13163)
* Add developer guide for the documentation

* Update dev_doc_guide.md

* Update CI trigger rules

* Fixed CI run

* Fixed CI trigers

* Disable trigger for .ci

* Revert "Disable trigger for .ci"

This reverts commit a5770a61bc.

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/index.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/index.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/dev/dev_doc_guide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-09-23 15:35:12 +04:00
yanlan song 6c1eb9d692 fix core dump when quit benchmark (#13028)
* fix core dump when quit benchmark

Signed-off-by: fishbell <bell.song@intel.com>

* enable tests

Signed-off-by: fishbell <bell.song@intel.com>

* naming change

Signed-off-by: fishbell <bell.song@intel.com>

* add macro to handle CPU not built

Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-09-23 18:22:25 +08:00
Tingqian Li 377c231458 [CPU] rnn: add pd to cache for preparing memory accordingly (#12571)
* [CPU] rnn: prepare memory according to pd of real primitive used

* Remove internalBlobDesc initialization, add node name to error message

* Add CPU functional test switching between batch sizes

* fix LSTMCell input data range

* Change W/R/B initial value ranges and abs_threshold only for dynamic batch test
2022-09-23 12:11:05 +02:00
Vladimir Paramuzov fbb0ad197d [GPU] Extended profiling (#13066) 2022-09-23 13:29:43 +04:00
Vladimir Paramuzov 5500aed209 [GPU] Additional pattern for GELU fusion (#12928) 2022-09-23 09:06:55 +04:00
Ivan TikhonovandIlya Churaev af7384f8c9 GRUCell fusion transformation (#12843)
* GRUCell fusion transformation and tests

* Enable GRUCell fusion transformation in MOC

* add missed include

* add missed include again

* fix warning in the tests

* Apply review comments

* Use NodeRegistry in GRUCellFusion transformation, apply review comments

* Add support for both formats zrh and rzh

* move additional checks to pattern, remove the transformation from MOC

* fix conflict with master branch

* apply review comments

* Update src/tests/functional/inference_engine/transformations/common_optimizations/gru_cell_fusion.cpp

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

* fix warning

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-09-23 07:21:13 +04:00
Andrei Kochin 55af2941f5 [DOC] Fix link to pre-computed FRCNN detectors for Caffe model (#13133)
as seems already merged to openvinotoolkit/openvino_docs#225 enabling auto-merge here
2022-09-23 01:43:21 +04:00
Felix Dohyun Kim d9ed6d98c7 [GPU] Fix some conv and pooling unit tests for DG2 (#13016)
* change activation function for onednn
* adaptive tolerance
* higher tolerance for multiple eltwise test
* enable all eltwise_mode of postop eltwise
2022-09-22 23:54:38 +09:00
Karol BlaszczakandIlya Churaev 2e9454c77b Docs benchmarks page update (#13162)
* update page and benchmark config data

benchmarks articles
update data tables
delete image

* hide / remove ovms benchmarks page

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-09-22 17:04:12 +04:00
Ilya Churaev ce4bba6a08 Disabled Azure for documentation changes (#13171)
* Update CI trigger rules

* Fixed CI run

* Fixed CI trigers

* Disable trigger for .ci

* Revert "Disable trigger for .ci"

This reverts commit 92c812ccb0.
2022-09-22 16:04:17 +04:00
Ivan Tikhonov 77ba4ab6dd AUGRUCell fusion transformation (#12844)
* AUGRUCell fusion transformation and tests

* add missed includes

* Apply review comments

* Apply review comments

* fix build

* Enable accuracy tests

* change supported  weights format from zrh to rzh

* update submodule version

* resolve review comments

* add additional checks to pattern

* fix conflict with master
2022-09-22 14:21:05 +03:00
Mateusz Tabaka 249df503eb [Python] Relinquish infer request handle before handling exception (#13114)
When runtime exception was thrown during infer call, the infer
request handle was never relinquished nor condition variable notified.
That caused the get_idle_request_id function wait forever.
2022-09-22 13:00:44 +02:00
Przemyslaw Wysocki d5a274b0e4 [PyOV] Drop Python 3.6 support (#12280)
* Drop Python 3.6

* Test dropping Python to 3.6 in py_checks.yml

* Allow Python 3.6 for open source

* Add docs on upgrading Python
2022-09-22 11:58:12 +02:00
Chenhu Wang 2e6eaa6c7e [CPU] tails optimization for load/store emitters (#12363)
* tails optmization

* apply to store emitter

* gpr index alignment

* load_emu_method_and_threhold_update

* store_emulation_update_and_store_threshold_update

* comments apply

* fix typo
2022-09-22 10:50:48 +02:00
Georgy Krivoruchko c8da229285 Move TF2 Keras layer tests from private repo and adapt them (#13049)
* Adding Tensorflow2 Keras tests to layer tests

* Fixed usage of use_new_frontend parameter in layer tests of
Tensorflow2 Keras

* Tests changed to use --use_old_api instead of --api_2 argument

* Added copyrights in files

* Added TF2-Keras Activation test to CI check
2022-09-22 12:36:36 +04:00
Sergey Shlyapnikov 33cda223a5 [GPU] Fix performance regression caused by surfaces_lock::create() function move (#13124) 2022-09-22 10:06:09 +04:00
hyunback kim 079021c673 [GPU] Support cross-data type from detection output (#13125)
* detection_output kernel support cross-type(fp16/fp32),
  so graph-optimization also support cross-type detection_output

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-09-22 14:07:10 +09:00
Ivan Tikhonov f2c0e0b4d7 Upgrade broadcast from v1 to v3 in SequenceToTi transformation (#12922)
* upgrade broadcast in SequanceToTensorIterator transformation, fix broadcast serialization

* codestyle
2022-09-22 07:48:30 +04:00
9d56cfd79b [Benchmark] benchmark_app need disable auto batching if batch size is set. (#12553)
* When set batch_size, disable auto batching

* auto-batch only supprt auto plugin

* Set property allow_auto_batching for devices

* cancel static

* Clean Code

* Add test case for testing allow_auto_batching

* Fix the issue after merging latest master branch code

* Add allow_auto_batching in python benchmark_app

* Fix the quotes issue

* When load_network is set to allow-auto-batching, there is no need to read the value of global

* Fix the clang-format

* Change the location

Co-authored-by: River Li <river.li@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-09-22 09:50:30 +08:00
Nesterov Alexander ce9751a0a4 Fix arm tests (bf16) (#13149)
Fix arm tests bf16
2022-09-22 01:17:33 +03:00
Yuan XuandArtyom Anokhov 4564c92cb6 Port 2022.2 install guide to master (#13138)
* port installing from archive

* fix formatting in code

* Updating archive names in qsg (#12927)

* port 2022.2 install guide changes to master

* small fix

Co-authored-by: Artyom Anokhov <artyom.anokhov@intel.com>
2022-09-21 20:00:05 +04:00
Daniil Lyakhov 6ac2c00f83 Describe pruning transformation in MO help (#13121) 2022-09-21 16:05:48 +04:00
Georgy Krivoruchko 3e60cfb998 Fixed incorrect behavior in case incorrect arguments are passed (#13079)
or in case some arguments are missed
2022-09-21 12:54:27 +04:00
Przemyslaw Wysocki abefedea17 [PyOV] Update docs with Python 3.10 (#13130) 2022-09-21 10:36:19 +02:00
Sebastian Golebiewski 2e354d85c0 DOCS: New Tutorials homepage (#13051)
* New Homepage for Tutorials

Modifying tutorials.md
Adding separate article for notebooks installation guide: notebooks-installation.md

Updated to version from 13.07.2022

https://repository.toolbox.iotg.sclab.intel.com/projects/ov-notebook/0.1.0-latest/20220713220805/dist/rst_files/

* Update consts.py

* Update consts.py

* Updating tutorials to version from 13.09

Adding missing notebooks:
115, 203, 219, 220, 221, 222, 223,

* Update docs/tutorials.md

* Updating meta tags

Updating meta description and keywords

* Update notebooks-installation.md

* Update tutorials.md
2022-09-21 11:31:40 +04:00
Mingyu Kim ad933ce320 [GPU] Layout querying for onednn (#12420)
* For onednn primitives, query onednn for proper layout.
2022-09-21 14:54:43 +09:00
Vladimir Paramuzov 0ebc39fece [GPU] Dynamic unfusing feature (#12674) 2022-09-21 08:56:32 +04:00
Ivan Tikhonov d60a8e89df Fix shape propagation in TI in case of dyn slice axis (#12926) 2022-09-20 23:12:32 +03:00
Alexandra Sidorova e109bd1a32 [CPU] Added support AVX2 and SSE for jit_emu_vcvtneps2bf16 (#12718)
* [CPU] Added support AVX2 and SSE for jit_emu_vcvtneps2bf16

* Upped thresholds

* check condition

* Removed thresholds

* Added kernel test

* Fixed AVX2 and SSE impl: removed AVX512 instructions

* come back

* Fixed jit_emu_vcvtneps2bf16 sse in=out

* update store_emitter for sse

* Added I32 test and updated tests

* united avx2 and sse impls

* Fixed ymm/xmm for avx512

* United with avx512_bf16

* fixed unused variable warning

* unified float2bfloat in convert_emitter
2022-09-20 18:19:39 +02:00
Vladimir Paramuzov a34b59d897 [GPU] Fix infer() for queue sharing case (#13102) 2022-09-20 17:13:20 +04:00
River Li ed31a46b7b [CAPI] improve property implement to achieve better compatibility (#12887)
* Solve some code style issues

Change-Id: I06c31ad9513463c758db96dbe33031983a8fd7a5

* Refine ov_dimension with C style structure

Use C style definition to replace opaque C++ handle:
 1). Improve partial shape
 2). Improve dimension/rank
 3). Improve shape

Change-Id: I680fd3e76c63d0c06d9d8b07c67af0440fb15bb7

* Some minor update

Change-Id: I237490a765e6ecd6f3896b1bd75d5f962304f43b

* add partial_shape_is_dynamic and update doc

Change-Id: Ief358f27de8386e35485d08847c8243d1490157f

* Rename property and add basic test cases

Change-Id: Ifbed0bbf7a5e836d2cab186763d7e5f8f2cb7d44

* address reviewer's comments

Change-Id: I9a5d1ede6d086906f3777c3d29237986a505db52

* Fix compile error

Change-Id: I72267a8dda32dd8f43c1ea1522d07b392052358f

* Use ov_any_t to replace ov_property_value_t

Change-Id: Ia4062d0da0941c901990bf5f16497ae3c8f2eb0f

* update doc for ov_model

Change-Id: I80183394f16dd1e07ff998993e26f8b903f2402e

* Property key apply string variables replace enum variable

Change-Id: I0e1699862de3913ccdc06ded5b8f8ac5a2bf8773

* Fix compiling error in windows

Change-Id: I4f9c7c746e218db94491c5f4bc5aeda1b3fde62b

* Change init/deinit method to create/free, remove unnecessary methods

Change-Id: Ibc5de039da94e92db494583ab1ff1a63e0586c73

* Pass by value for single C structure data

Change-Id: I289eb56e2ba1ab90942c8c801c585ab0f792952f

* fix dllexport issue in windows

Change-Id: I1632375e5e651fdfa076cdab2d8d1c3e83986549

* Fix static build error

Change-Id: I6633fe4887edad0b3a8b7e10730fb9d36a6ac0cd

* Use pass by value for all transparent structure

Change-Id: I652f6e70b420ef7c5af5cff3f5d482911cf0d75a

* Unify parameter order in  C APIs, input first and then output parameters

Change-Id: Ib89c77d81c314e3a81bfcec9917630abbc896f5e

* Rename preprocess api to be more readable

Change-Id: I0a8ecd005e73e4ba8e90a8f25bedf0739fe31836

* Simplfy property implement for set and get property

Change-Id: Icad41606368cef9520b1623f6207784c295f1b9f

* check string type property issue

Change-Id: Ie8ee6995dda401f1db0cc098e061ffcfd24de92a

* Fix memory leak

Change-Id: Ife8980736be320314eca6fb3f3605e019663e1da

* Check string property data

Change-Id: I542a136ff874cb345c67f7d3c1dbc74981a909df

* Fix issues caused by rebase

Change-Id: I3d675a16cf76980a6414e369a83464a46dec1e49

* Remove some redundant code

Change-Id: Iab6bf7f355ec7a7424d884e620319ed9db80ecf5

* Remove property type from interface

ov_core_set_property will have 2 cases:

1) enum type:  <const char* property_key, ov_property_xxx_e property_value>
2) other: <const char* property_key, const char* property_value>

Change-Id: Id7dec1ac40948d45c4f8baee687652aee92ea75d

* Remove redundant code

Change-Id: I66865d3313e305b0109cb63bd049772a01c0688f

* Remove exception log and update propery size argument

Change-Id: Ia1a60c07c9adf08d175d94a7d5e4298adb27bf80

* Apply string for enum property

Change-Id: I591b1db453a52b5ea9000e0cc3e11edf0ef5f790

* Add test case for MULTI_DEVICE_PRIORITIES

Change-Id: I59e4307564a2560724b4dacdb83c3ed45ea1ce8d

* Fix test issues and add more negative test case

Change-Id: Ib849fb8c098e487a537c1b1ab881f5e905871f73
2022-09-20 15:59:27 +03:00
Roman Kazantsev 08e397d571 [MO] Extend support for TF BlockLSTM with the single output, concatenated hidden states (#13095)
* [MO] Extend support for TF BlockLSTM with the single output, concatenated hidden states

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Remove extra comments

* Apply the code review feedback: return useful logs, more logs for asserts

* Add unit-test for shape infer

* Add unit-test for transformation

* Fix a bug with adding input port for BlockLSTM

* Apply code-review feedback: no need to create existing port, add more comments and correct

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-20 15:18:49 +03:00
Ruslan Nugmanov 236778aeec Refactor of renaming ov libraries for layer tests with key --use_new_frontend (#12846)
* refactor of renaming libraries in layer tests

* 1. adds check for old API and new FE usafe
2. refactor of api_2 arg

* fix for tf_NMS test preprocessing

* take libs path from LD_LIBRARY_PATH env

* convert str to Path object

* use wheels path to libs

* print lib paths

* print lib paths

* use ov_frontend_path env

* also check if file to rename exists

* removes redundant prints

* copy instead of rename

* 1. copy instead of rename
2. adds some details to readme
2022-09-20 13:43:37 +04:00
Pawel RaaszandIlya Lavrenov 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
Irina Efode e9681360f4 [API Conformance] Fix test instances according test requirments (#12752)
* exec_net

* ff

* plugin

* ie_plugin
2022-09-20 11:49:30 +03:00
Ilya Churaev 707a1bfe19 Fixed comments on dev doc (#13117) 2022-09-20 12:45:19 +04:00
Nico Galoppo ec8735d5e9 Fix links to upper-level documentation (#13112) 2022-09-20 08:06:22 +03:00
Bonhun Koo 572d00eaa2 [POT][GNA] add mixed-precision support for Accuracy Aware Quantization (#12470)
* [POT] add GNA3 mode

* [POT][GNA3] add mixed-precision support for Accuracy Aware Quantization

* [POT] add GNA AAQ sanity test with synthetic data

* [POT][GNA3] add GNA3.5 mode and minimize AAQ option

* [POT] fix pot/ci fails on config test
2022-09-20 08:47:33 +09:00
Georgy KrivoruchkoandIrina Efode e7c91518de Fixed issue with missing operations in SubgraphDumper (#13078)
* Fixed handling of missing "cloners" for operations

* Added missing opsets for cloners creation

Co-authored-by: Irina Efode <irina.efode@intel.com>
2022-09-19 23:27:08 +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
Irina Efode c349e9c3e7 QN Conf (#12798) 2022-09-19 16:04:23 +03:00
Yuan Xu a2a4a7f946 update with external suggestions (#12791) 2022-09-19 16:50:58 +04:00
rafalxintel 0dfd409951 After changing language, redirect to home page (#12607) 2022-09-19 16:50:36 +04:00
Karol Blaszczak b6c77d21c9 DOCS doc structure step 2 port to master (#13084)
* DOCS-doc_structure_step_2

- adjustments to the previous change based on feedback
- changes focusing on ModelOptimizer section to mitigate the removal of ONNX and PdPd articles

* remove 2 files we brought back after 22.1
2022-09-19 16:48:35 +04:00
Sebastian Golebiewski ca8a1c4902 Porting: Change notebooks fetching link for documentation (#13043)
* Porting: Change notebooks fetching link for documentation

Porting:

https://github.com/openvinotoolkit/openvino/pull/12750/

There are newly generated files (since 30.08.2022) that seem to be fine but apparently "latest" is not build in the docs:

https://repository.toolbox.iotg.sclab.intel.com/projects/ov-notebook/0.1.0-latest/20220913220807/dist/rst_files/

The question remains, why is it so?

* Update consts.py

Updating to the most recent version from 13.09

https://repository.toolbox.iotg.sclab.intel.com/projects/ov-notebook/0.1.0-latest/20220913220807/dist/rst_files/
2022-09-19 16:48:05 +04:00
Karol Blaszczak 51cb1d9b30 change 2 images for asynch mode (#12579)
changing two screenshots in "general optimizations" to one comparison csv image
2022-09-19 16:47:39 +04:00
Karol Blaszczak c265ae191f one more correction of mobilnet (#13073) 2022-09-19 16:47:18 +04:00
Karol Blaszczak 2e877de934 DOCS-homepage-restyling-pt1 (#12291)
minor css changes to prepare for rst conversion
2022-09-19 16:46:34 +04:00
Ilya Churaev dcca08763b Added template for core dev documentation (#13091)
* Added template for core dev documentation

* Update test_coverage.md

* Update coding_style.md

* Update build.md

* Create debug_capabilities.md

* Update index.md

* Update debug_capabilities.md

* Update index.md

* Update README.md

* Create shape_propagation

* Update and rename shape_propagation to shape_propagation.md

* Update shape_propagation.md

* Create operation_enabling_flow.md

* Update index.md

* Update README.md

* Update operation_enabling_flow.md
2022-09-19 15:57:01 +04: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
Roman KazantsevandIlya Lavrenov 939f1e77f0 [ONNX FE Tests] Fix ONNX FE tests on Debian (#13089)
* [ONNX FE Tests] Fix ONNX FE tests on Debian

Fixing error "Cannot load library libtest_builtin_extensions_1.so libopenvino_tensorflow_fe.so"

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Update .ci/azure/linux_debian.yml

* Export TF FE for PDPD tests since it uses TF FE extensions

* Export TF FE for PDPD tests since it uses TF FE extensions

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-09-19 01:18:21 +04:00
Xuejun Zhai c8e62fddb2 [C API] add more descriptions about ov_model & ov_compiled_model (#13061)
Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-09-16 15:23:30 +03:00
Ilya Lavrenov 99b450ef52 Check ONNX installation before usage (#13069) 2022-09-16 15:18:11 +04:00
Felix Dohyun Kim 8f7c9a05f5 [GPU] Compare float value with tolerance in unit test (#12667)
* compare float value with tolerance
* Support NaN comparison
* use EXPECT_NEAR
* reduce # of testcase
2022-09-16 15:42:08 +09:00
Mateusz Tabaka a850c8baee [ONNX] propagate model directory path to Graph, Attribute and Tensor … (#13010)
Required by external data mechanism in ONNX standard, where Tensor object has
to be able to find external data file based on the location field and model
directory path. Previously, it was done by a transformation, but it handled
initializers only, but in order to handle Constant nodes we need one more
loop, but over all of the model's nodes. Propagating model directory path to
Tensor allows us to reduce that overhead.

Ticket: 91271
2022-09-16 06:48:33 +02:00
Tetiana Gubanova d2e251a109 [GPU] Add blocked layouts support for Roll operation (#12125)
* Add blocked layouts support for Roll operation

* Reduce number of Roll unit tests
2022-09-15 20:23:55 -07:00
Paul Youngsoo Ahn 0bc85f820e [GPU] Eltwise new shape infer (#12897) (#12897) 2022-09-15 19:51:52 -07:00
5e977fc470 【PaddlePaddle Hackathon 3】Add Paddle where_index operator (#12437)
* add paddle where_index op

* add more test cases

* add more test cases

* add more test cases and support boolen

* fix clang format

* use paddle.nonzero instead of LayerHelper

* remove opset6

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

Co-authored-by: cecilia peng <cecilia.peng@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-09-16 03:57:02 +03:00
Felix Dohyun Kim 8ad3d0f8a8 [GPU] Device select options from unittest (#12487)
* Now it is possible to select device_id from clDNN_unit_tests64
2022-09-16 09:25:24 +09:00
Min, Byungil eaf8364196 [GPU] Resolve execution failure of oneDNN reduction (#12506)
+ Resolved failure of oneDNN reduction which has fused output layout.
+ Removed planar format from oneDNN reduction which selected ref kernel.
+ Modified relevant test-cases

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-09-16 08:59:21 +09:00
Mateusz Tabaka 96fb6ba4a6 DilatedConvolutionConverter - disallow negative pads (#13055) 2022-09-16 01:02:44 +03:00
Mateusz Tabaka 101462100b StridesOptimization - remove strides property from current node's target inputs (#13054)
StridesOptimization propagates strides attributes up the graph.
This attribute is kept in Input<Node> runtime info.
There is a case in CUDA plugin, where StridesOptimization is called
twice and if strides attribute is kept in node's runtime info,
the second run of this transformation tries to propagate strides
once again which can result in shape inference failure.
2022-09-16 00:00:53 +02:00
Roman Kazantsev 2d6528c75f [Frontend, TF FE] Fix RTTI for ConversionExtension on MacOS (#13038)
* [Frontend, TF FE] Fix RTTI for ConversionExtension on MacOS

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Put only destructor into cpp

* Remove extra white-space

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-15 20:43:06 +03:00
Roman Kazantsev ecc729973c [TF FE] Add translators for CTCGreedyDecoder and CTCLoss operations (#13029)
* [TF FE] Add translators for CTCGreedyDecoder and CTCLoss operations

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Remove unused variables

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-15 16:45:16 +03:00
8cfb285dfa 【PaddlePaddle Hackathon 3】Add Paddle sum operator (#12545)
* add paddle op sum

* new version

* add unit test for other precision

* change layer.sum to add_n

* remove redundant code

Co-authored-by: Bo Liu <bo4.liu@intel.com>
Co-authored-by: cecilia peng <cecilia.peng@intel.com>
2022-09-15 11:23:18 +03:00
Vladimir Paramuzov a27f6196d5 [GPU] Update reshape factory to handle dynamic cases (#13027) 2022-09-15 11:02:02 +04:00
hyunback kim 57753f7938 [GPU] Update oneDNN v2.7 submodule (#13041)
Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-09-15 15:18:17 +09:00
RICKIE777andRiver Li 77906042f3 [CAPI]Extend Model API (#12617)
* Add ov_model_output_by tensor name and index function

* Fix the clang format issue

* clang format

* Add ov_output_node_t in input and shape function

* Add ov_oputput_node_t in model_output function

* Fix clang-format

* change ov_output_node_list_t to ov_output_const_node_list_t

* Add ov_output_node_list_t new struct

* Rename oputput_node to be port

* Rename output_node to be port in CAPI test and samples

* Add ov_model_output/outputs/input/inputs function and testcases

* Rename output_ports to ports

* Chage ov_node_list_get_element_type_by_index to ov_node_list_get_element_type

* Change ov_output_node to ov_output_port

* Delete node list and modify the function that used the node list structure before

* Fix clang-format in ov_infer_request_test.cpp

* change node to port in funcation name

* Rebase new master

* Add new API in compile model and model,such as get input/output size

* Add err info in hello_classification_c

* Fix clang-format in hello_classification_c

* Merge the new infer_request

* Initialize ov_output_const_port

* Change the location of initialization

Co-authored-by: River Li <river.li@intel.com>
2022-09-15 07:37:23 +04:00
Pawel Raasz cb4ff55d88 Lto1 internal compiler error (#12863)
* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`

* Fix CI LTO optimization issue for Ubuntu 20

* Move NodeRegister to dev API
To fix LTO issue for eye decomposition

* Change NodeRegister to NodeRegistry

* Move NodeRegistry to openvino/pass

* Remove NodeRegistry from public API
2022-09-15 07:27:02 +04:00
Wilson Seok 627a76fe23 remove blocked format support in Softmax (#13033) 2022-09-14 17:49:58 -07:00
Denis Kotov 1b7237d28a Add linux_cuda.yml Azure pipeline (#12993) 2022-09-14 22:19:03 +04:00
Xiping YanandIlya Churaev 30271ad6b6 [CPU functional/unit]Change cpu functional and unit test to snake case (#12856)
* Only rename cpuUnitTests and cpuFuncTests to ov_cpu_unit_tests and ov_cpu_func_tests

* Change ov_cpu_unit_tests's displayName to readable, from 'CPU UT' to 'Intel CPU Unit Tests'.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-09-14 12:24:12 +04:00
Karol Blaszczak 08ff73598b change hello reshape ssd sample (#12657)
ssdlite_mobilenet_v2 changed to mobilenet-ssd, as per J. Espinoza's request, to fix 
84516
2022-09-14 12:22:24 +04:00
Yuan XuandHelena Kloosterman 2e2320c65a add troubleshooting item for PRC users (#12909)
* add troubleshooting item for PRC users

* updates

* Update docs/install_guides/pypi-openvino-dev.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/pypi-openvino-rt.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/pypi-openvino-dev.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/pypi-openvino-rt.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/pypi-openvino-rt.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* add trusted host back

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
2022-09-14 12:20:34 +04:00
Piotr Krzemiński 752294d86d [BENCHMARK APP/PYTHON] Fix a bug causing nstreams parameter to behave differently across Python and C++ benchmark_app (#12935) 2022-09-14 09:53:26 +02:00
Vladimir Paramuzov f96319def4 [GPU] Weights reorder cache (#13022) 2022-09-14 10:27:51 +04:00
Vladimir Paramuzov 935d8b462b [GPU] ScatterUpdate and ShapeOf shape infer (#12999) 2022-09-14 09:40:16 +04:00
Oleksii Khovan ffee1a2d9f [GPU] Blocked layouts support for AdaptivePooling (#12070)
* Blocked layouts support for AdaptivePooling

* reduce number of tests
2022-09-13 19:59:29 -07:00
28058d3cc2 【PaddlePaddle Hackathon 3】Add Paddle gather_nd operator (#12355)
* add gather_nd

* add some uni-test

* fix op_check

* fix remark

* fix op_check

Co-authored-by: Bo Liu <bo4.liu@intel.com>
Co-authored-by: cecilia peng <cecilia.peng@intel.com>
2022-09-13 16:01:09 +04:00
Netpunk 089955f862 【PaddlePaddle Hackathon 3】Add Paddle group_norm operator (#12329)
* add paddle group norm

* remove unecessary code

* remove unecessary code

* remove unecessary code
2022-09-13 15:57:52 +04:00
Vladimir Paramuzov 5061e72d39 [GPU] Concat new shape infer (#13021) 2022-09-13 14:36:20 +04:00
Vladimir Paramuzov 9f34eae218 [GPU] Tile fix for dyn flow (#13011) 2022-09-13 13:56:50 +04:00
AsthestarsfalllandBo Liu b9e2f28850 【PaddlePaddle Hackathon 3】Add Paddle p_norm operator (#12299)
* add paddle_p_norm

* remove cout

* modify ngraph to ov

Co-authored-by: Bo Liu <bo4.liu@intel.com>
2022-09-13 10:46:47 +02:00
Roman Kazantsev 82c0d58140 [TF FE] Support Wide&Deep family models by TensorFlow FrontEnd (#13004)
* [TF FE] Support Wide&Deep family models by TensorFlow FrontEnd

It adds support for operations SparseToDense, transfomations for SparseReshape and
fusing transformation for EmbeddingSegmentSum operation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code style for sparse_fill_empty_rows

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Complete transformation for embedding_segments_feature_fusing

* Fix signatures of constructors of internal ops: SparseFillEmptyRows, etc.

* Add override for validate_and_infer_types methods of the internal ops

* Remove unused variable in Unique

* Revert incorrect changes for default type in case graph cutting

* Make InternalOperation class and apply code feedback

* Revert changes for pipeline.py

* Remove apply_middle_transformation from frontend.hpp

* Recover apply_additional_conversion_rules

* Eliminate a number of constructors for internal operations

* Improve code readibility for embedding_segments_feature_fusing transformation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix build issue: returning reference to temporary

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-13 10:28:36 +03: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
Vladimir Paramuzov a73fc2dce1 [GPU] Fix strided_slice for dynamic cases (#12979) 2022-09-13 09:17:50 +04:00
Ilya Lavrenov 3c24ee6cda Install tbbmalloc for pkg-config case (#12960) 2022-09-12 22:12:50 +04:00
Andrii Pavliuk 69f709028a [benhmark_app] Fix I8 input random generation (#12502) 2022-09-12 15:21:40 +03:00
Przemyslaw Wysocki 006f798f91 [PyOV] Fix numpy deprecation warnings (#12849) 2022-09-12 12:32:23 +02:00
Oleksii Khovan 0145865301 [GPU] Softmax blocked layouts support (#12467) 2022-09-12 13:48:45 +04:00
Vladimir Paramuzov 621bf375c1 [GPU] Minor fix for dynamic reshape (#12989) 2022-09-12 13:45:49 +04:00
Jan Iwaszkiewicz 8fae2ddfe3 update docs (#12974) 2022-09-12 11:04:54 +02:00
Artur Kulikowski 1b620fa8bc Add access to the methods Node::evaluate to each custom Op which inherit from ov::op::Op (#12976)
* Add access to the hidden Node::evaluate method in each Ops

* Fix the test

* Add new line in EOF

* Add comment about using ov::op::Op

* Use opset9

* Add more detailed comment
2022-09-12 07:51:16 +03:00
Helena Kloosterman 49ebb95067 Typo fixes in main README (#12997) 2022-09-12 08:20:04 +04:00
Ilya Lavrenov bc8127f3b8 Fixed Android post-commit (#13005) 2022-09-12 07:57:21 +04:00
Artur Kulikowski c792db8302 VaridicSplit ref impl: No evaluate output if has zeros dimension (#12939)
* VaridicSplit ref impl: No evaluate output if has zeros dimension

* Move check of zeros dims in output shape to the variadic_split::evaluate method
2022-09-12 07:34:37 +04:00
Ekaterina Aidova d4d9bb4e88 [master] openvino-dev return opencv-python back (#13002) 2022-09-10 12:18:03 +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
Ilya Lavrenov ee8575134a enabled LTO for GPU plugun helper libs (#12891) 2022-09-10 00:58:28 +03:00
Vladimir Paramuzov 1ded0750c9 [GPU] Remove marks cleanup after each pass (#12975) 2022-09-09 18:29:31 +03:00
Xuejun ZhaiandRiver,Li <river.li@intel.com> 349f3e02e0 [C API] Add more C API for infer request (#12636)
* [C API] Add more C API for infer request

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Code Style] Fix code style issue

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Fix review comments

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API] add more details desc for infer request interfaces

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API] Modify the structure of tensor list

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API] Fix code style issue

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [C API] remove define about tensor list

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Update documents for infer request

Change-Id: I1acbae95425cfe4aad85da48d290bafe5bb7d319

* Update documents for ov_infer_request

Change-Id: Ib68530c49cf439c7b570ee63bd3ee8ea85018d51

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: River,Li <river.li@intel.com>
2022-09-09 10:47:46 +03:00
Gorokhov Dmitriy e7fe00f5f2 [CPU] Support MHA optimization (#12936) 2022-09-09 10:03:19 +04:00
yanlan song 0dd1f6e1b0 Bell/wa multi perf gap (#12948)
* debug only

Signed-off-by: fishbell <bell.song@intel.com>

* refine comment

Signed-off-by: fishbell <bell.song@intel.com>

* Revert "debug only"

This reverts commit 5ef6140b63.

Signed-off-by: fishbell <bell.song@intel.com>
2022-09-09 10:14:00 +08:00
mei, yangandAndrei Kochin b2d37ff85a add GenerateProposals single layer test (#12933)
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-09-08 17:35:14 +03:00
Mateusz Tabaka 7b98ebf627 [ONNX] Add support for Trilu operator (#12965)
Ticket: 91096
2022-09-08 12:51:28 +02:00
Mykhailo Hnap e0f6cdaa85 Added better exception handling to op_imp_check. (#12961) 2022-09-08 10:44:38 +03:00
Andrew Kwangwoong Park 90093d5315 [GPU] Fix the new infer request to set output memory normally during enqueue stage (#12938)
* Fix the new infer request to set output memory normally during enqueue stage
* Fix to use the generated outputsMap instead of graph API to retrieve outputID

Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-09-08 16:15:04 +09:00
Tomasz JankowskiandIlya Churaev 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
Roman Kazantsev 0b1a70be0b [TF FE] Add translators for NormalizeL2, ReverseSequence (#12913)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-07 18:02:48 +03:00
Ilya Lavrenov 8922d73e7d Fixed installation of pugixml on U22 (#12953) 2022-09-07 18:07:43 +04:00
Yuan Xu 67d5652b13 Fix a link anchor on pypi page (#12949)
* fix the link for pip

* update the <a> tags
2022-09-07 18:07:22 +04:00
Ilya Churaev 97c510c008 Fixed build for TBB which uses pre-release functions (#12947)
* Fixed build for TBB which uses pre-reliase functions

* Disable TBB only for macOS only

* Changed condition
2022-09-07 18:05:41 +04:00
River LiandIlya Lavrenov b23ac86097 tbbbind support CC (#12107)
* Add CC support for tbbbind

* Use throw to replace return

* Tbbbinder will be optimized out for non-NUMA

1. With NUMA we may expect that some TBBBind API is optimized out, but some of the API is definitely here
2. The same for HYBRID cores on Alder lake
3. For no NUMA nor HYBRID I expect no TBBBind API is used

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-09-07 11:14:05 +04:00
Pawel Raaszandsikorsl1 2449ab066a Delete pybind11 cross compile workaround (#12775)
Co-authored-by: sikorsl1 <leonard.sikorski@intel.com>
2022-09-07 10:54:11 +04:00
Yuan Xu 17470aaea9 fix the link for pip (#12945) 2022-09-07 10:17:46 +04:00
Fedor Zharinov 4b727de6da [benchmark_app] Separate hint from fine tuning options. (#10919)
* Separate hint from fine tuning options.

* stylefix

* typo fix

* Order is changed
2022-09-07 10:13:34 +04:00
RICKIE777 f780303e5a Fix the memory issue in ov_core_read_model_from_memory (#12817) 2022-09-07 10:06:31 +04:00
Ilya Lavrenov a092a192d8 Ability to build against oneTBB build RelWithDebInfo (#12940)
* Ability to build against oneTBB build RelWithDebInfo

* Debug TBB issue

* Fixes
2022-09-07 09:58:30 +04:00
River Li 4df8b279c8 Unify unchanged input arguments as const arguments (#12915)
Change-Id: Icd9f369a72b02ff35cd4a239bddf4c24b6c2af29
2022-09-07 09:52:58 +04:00
Tetiana Gubanova 8979dc562d [GPU] Fix implementation map includes to fix the dependency (#12043)
* Reorder includes to check that build failed

* Add needed includes to remove dependency on include orders in primitives
2022-09-06 22:21:21 -07:00
Tetiana Gubanova cfbe141b0c Add blocked layouts support to bucketize (#12079) 2022-09-06 22:20:14 -07:00
Oleksii Khovan c68593e03b [GPU] ScatterUpdate blocked layout support (#12639)
* blocked formats support

* tests for blocked formats

* review comments

* fix RHEL 8.2 build
2022-09-07 08:36:43 +04:00
Vladimir Paramuzov 734dcc93e9 [GPU] Use oneDNN gemm on DG2 in some cases (#12878)
* [GPU] Enable onednn gemm with some additional restrictions

* f64 support in c++ benchmark_app

* Fixed python benchmark_app
2022-09-07 08:35:14 +04:00
Jade Cho d8b6f5485b [GPU] Fix a bug of graph optimization (#12901)
+ Use program_node to find weight node of convolution at eltwise shrinking
2022-09-07 10:43:30 +09:00
Nikita MalininandIndira Salyahova ace759c74c Cherry-pick changes from 6d69a85 (#12931)
Co-authored-by: Indira Salyahova <indira.salyahova@intel.com>
2022-09-06 17:45:46 +00:00
Vladislav Golubev 88e4ac5e53 [LPT] Fixes for the cases with convert before subtraction constant (#12835) 2022-09-06 20:41:29 +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
Liubov Talamanova 53319e60fc Fixed insert_fake_quantize() with empty hw_config (#12676) 2022-09-06 17:48:28 +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
Adam TumialisandEvgenya Stepyreva ab1da94f1d Update CODEOWNERS (#12723)
* Update CODEOWNERS

New scheme for CODEOWNERS file.

* Update CODEOWNERS

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>

* Update CODEOWNERS

Reverted changes to /docs/template_plugin/ and /docs/template_extension

* Update CODEOWNERS

Reverted changes for GPU & VPU plugin include paths.

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-09-06 11:00:12 +02:00
Mateusz Bencer 2076aa8fc7 added op check tests for RDFT and IRDFT (#12917) 2022-09-06 11:52:52 +03:00
Yuan Xu d6255baae8 update system requirements & pre-release disclaimer (#12717)
* update system requirements & pre-release disclaimer

* change latest to nightly documentation

* update C++ requirements according to comments
2022-09-06 12:52:08 +04: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
Felix Dohyun Kim 0b05eb2c67 [GPU] Remove scale primitive (#12893) 2022-09-06 11:35:26 +04:00
Felix Dohyun Kim 2108fe0dfc [GPU] Run onednn test only in DG2 (#12892) 2022-09-06 09:02:15 +09:00
Irina Efode c653638cd5 Conformance report: add version (#12864) 2022-09-05 22:50:15 +03:00
Tomasz Jankowski 9eac5d8281 Handle corner case 1x1 with tests (#12867) 2022-09-05 16:18:12 +02:00
River Li 194e3e766f [C API]capi pshape improve (#12591)
* Solve some code style issues

Change-Id: I06c31ad9513463c758db96dbe33031983a8fd7a5

* Refine ov_dimension with C style structure

Use C style definition to replace opaque C++ handle:
 1). Improve partial shape
 2). Improve dimension/rank
 3). Improve shape

Change-Id: I680fd3e76c63d0c06d9d8b07c67af0440fb15bb7

* Some minor update

Change-Id: I237490a765e6ecd6f3896b1bd75d5f962304f43b

* add partial_shape_is_dynamic and update doc

Change-Id: Ief358f27de8386e35485d08847c8243d1490157f

* Rename property and add basic test cases

Change-Id: Ifbed0bbf7a5e836d2cab186763d7e5f8f2cb7d44

* address reviewer's comments

Change-Id: I9a5d1ede6d086906f3777c3d29237986a505db52

* Fix compile error

Change-Id: I72267a8dda32dd8f43c1ea1522d07b392052358f

* Use ov_any_t to replace ov_property_value_t

Change-Id: Ia4062d0da0941c901990bf5f16497ae3c8f2eb0f

* update doc for ov_model

Change-Id: I80183394f16dd1e07ff998993e26f8b903f2402e

* Property key apply string variables replace enum variable

Change-Id: I0e1699862de3913ccdc06ded5b8f8ac5a2bf8773

* Fix compiling error in windows

Change-Id: I4f9c7c746e218db94491c5f4bc5aeda1b3fde62b

* Change init/deinit method to create/free, remove unnecessary methods

Change-Id: Ibc5de039da94e92db494583ab1ff1a63e0586c73

* Pass by value for single C structure data

Change-Id: I289eb56e2ba1ab90942c8c801c585ab0f792952f

* fix dllexport issue in windows

Change-Id: I1632375e5e651fdfa076cdab2d8d1c3e83986549

* Fix static build error

Change-Id: I6633fe4887edad0b3a8b7e10730fb9d36a6ac0cd

* Use pass by value for all transparent structure

Change-Id: I652f6e70b420ef7c5af5cff3f5d482911cf0d75a

* Unify parameter order in  C APIs, input first and then output parameters

Change-Id: Ib89c77d81c314e3a81bfcec9917630abbc896f5e

* Rename preprocess api to be more readable

Change-Id: I0a8ecd005e73e4ba8e90a8f25bedf0739fe31836
2022-09-05 17:20:46 +04:00
Tomasz Jankowski d5bba1a12a [ONNX FE] Rename OV ONNX FE tests target (#12860)
* Rename ONNX FE Test

* Join source list

* Rename clang target
2022-09-05 15:44:49 +03:00
Irina Efode a0e4870218 Remove extra files from the repo (#12800) 2022-09-05 14:55:07 +03:00
Denis Orlov fc7bcaded5 [GNA] Update docs - GRUCell, LSTMSequence and GRUSequence are now supported (#11460) 2022-09-05 10:57:45 +01: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
Luo Cheng 89fa308809 [CPU] Fix fakequant injector: mix sse/avx regression in spr (#12802) 2022-09-05 13:39:32 +04:00
Ilya Lavrenov 32ecbb45b9 Enabled LTO for ONNX (#12889) 2022-09-05 13:19:19 +04:00
Maxim Vafin 4757e110e3 Fix issue with Squeeze with empty squeeze_dims (#12700) (#12762)
* Fix issue with Squeeze with empty squeeze_dims

* Rework solution

* Apply code style

* Improve error logging

* Improve formatting

* Add more types

* Apply review feedback

* Add file which was forgotten
2022-09-05 12:52:40 +04:00
Roman Kazantsev 666d53e909 [TF FE] Add loaders: EuclidianNorm, Erf, Bucketize, BroadcastTo, BroadcastArgs, Einsum, Mish (#12882)
* [TF FE] Add loaders: EuclidianNorm, Erf, Bucketize, BroadcastTo, BroadcastArgs

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix a name for translate_broadcast_args_op

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add loaders for Einsum and Mish

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-05 12:51:20 +04:00
Adrian Boguszewski 27c1c6a3d1 [PyOV] Added deprecation function (#12540) 2022-09-05 10:26:37 +02:00
Ilya Lavrenov 836765874e LTO for frontends and python (#12890) 2022-09-05 08:10:11 +04:00
hyunback kim 57a9d7ce7b [GPU] Update oneDNNv2.7pc2 submodule. (#12853)
Apply fixed onednn for functional issue.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-09-05 10:57:49 +09:00
Ilya Lavrenov 7d7c30dd49 Fixed Android ARM64 post-commit step (#12885) 2022-09-03 14:34:02 +04:00
Ilya Lavrenov d950d75239 Removed openvino::core linkage (#12883) 2022-09-03 10:50:13 +04:00
Ilya Lavrenov fb8423dcee Apple "cross compilation" for protoc (#12881) 2022-09-03 10:50:01 +04:00
Evgenya Stepyreva ac6e180bdd WA for Benchmark App: Remote tensor use for internaly dynamic model (#12858)
* WA for Benchmark App: Remote tensor use for internaly dynamic original models (NMS) that turn static due to transformation to legacy op and lack of dynamism support

* Style
2022-09-02 20:14:33 +03:00
Ilya Lavrenov 0ad91f040c Removed unused files (#12872) 2022-09-02 20:38:59 +04:00
Ilya Lavrenov 142cfd173a Added python suffix to cython-based libraries (#12862)
* Fixed dependencies in case of debian package building

* Removed duplication of cython-based libraries in wheel

* Fixed that TBB is not part of the wheel

* Fixes for yocto
2022-09-02 19:33:21 +04:00
Roman Kazantsev e2e01bff32 [TF FE] Implement a loader for ListDiff operation (#12868)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-02 17:35:54 +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
Ilya Lavrenov dbae8e0c72 Fixed conformance tests compilation with older gflags version (#12866) 2022-09-02 09:47:06 +04:00
Vladimir Paramuzov 9590a77025 [GPU] Fixed conflicts in fc unit tests (#12857) 2022-09-02 08:16:44 +03:00
Denis KotovandIlya Churaev 7a4d463d4d Renamed CUDA device name to NVIDIA device name (#12719)
* Add NVIDIA device name along to CUDA device name (temporary solution)

* Disable nvidia_plugin along to cuda_plugin in .ci/azure/ (temporary solution)

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-09-01 20:25:11 +04:00
Anastasia Popova e0974b1e4c Mo indices fix (#12842)
* Fixed error in indeces processing.

* Small correction

* Small correction
2022-09-01 17:03:09 +04:00
ThomasandIlya Lavrenov 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
Pawel Raasz 6c4cc81465 Add decomposition transformation for eye 9 (#12806)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`

* Fix CI LTO optimization issue for Ubuntu 20

* Move NodeRegister to dev API
To fix LTO issue for eye decomposition

* Change NodeRegister to NodeRegistry
2022-09-01 09:59:37 +02:00
Ilya Churaev 2e65ec233f Use any config for plugins (#12792)
* Changed default config to ov::AnyMap

* Fixed template tests

* Added default implementation for set_properties

* Added copy map of string to any

* Fixed usage
2022-09-01 11:37:05 +04:00
Artur Kulikowski 4ac2ba9c81 Tile reference implementation short circuit (#12805)
* Tile reference impl short circuit

* Add test for Constant folding 2D shape and 0 repeats
2022-09-01 10:14:07 +03:00
Roman Kazantsev c11151ae9e [TF FE] Support MobileNetV2 with FakeQuantize by TF FE (#12851)
Avoid extra transposes in conversion of FakeQuantWithMinMaxVars and
add translator FakeQuantWithMinMaxVarsPerChannels.
It allows to convert MobileNetV2 with FakeQuantWithMinMaxVars and
FakeQuantWithMinMaxVarsPerChannels operations.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-01 10:36:24 +04:00
Roman Kazantsev 3856d69ae1 [TF FE] Port changes from 2022.2 branch - Add Transpose Sinking for Prelu operation (#12848)
* [TF FE] Add Transpose Sinking for Prelu operation

Now it covers a case with a scalar slope.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add unit-tests for Transpose sinking of Prelu

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix non-scalar slope case

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-01 10:29:17 +04:00
Roman Baranchuk 4b104f0a13 [CPU] uni_planar_convolution optimization (#12659) 2022-09-01 09:50:32 +04:00
Roman Lyamin c173f7e374 [GPU] fully_connected/gemm shape infer support (#12772) 2022-09-01 09:04:55 +04:00
Sergey Shlyapnikov 2fc59bf3d2 [GPU] GPU Plugin OVInferRequestIOTensorTest and SqueezeUnsqueezeLayerTest tests fixes (#12830) 2022-09-01 09:04:27 +04:00
PuQing d7f119d8f2 【PaddlePaddle Hackathon 3】Add Paddle tile operator (#12277)
* add paddle op tile

* merge two test fun

* add i32 i64 utest and fix tile

* add high dim
2022-09-01 07:26:31 +04:00
Andrew Kwangwoong Park 7f665502b6 [GPU] Baseline InferRequest changes for dynamic shapes support (#12415) 2022-09-01 02:29:41 +03:00
Roman Kazantsev c6d1d2aed1 [TF FE] Fix BatchToSpace translator (#12815) (#12834)
According to the specification we must have the same type for block_shape and crops inputs

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-31 18:17:29 +03:00
Jade Cho d9d4b6d89b [GPU] Fixed a bug of eltwise to support blocked layout when broadcast. (#12770)
+ Support bs_fs_yx_bsv32_fsv32 format
2022-08-31 23:02:08 +09:00
Vladimir Paramuzov 382028e9c2 [GPU] Dynamic FC unit test and several fixes (#12563) 2022-08-31 18:01:35 +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
Chen Xu 1e6447c26a [CPU] Reduce node improve performance for nspc layout (#12638) 2022-08-31 14:48:45 +04:00
Gorokhov Dmitriy 1f5c73014e [DOC][CPU] Updated CPU suppported i/o precisions map (#12839) 2022-08-31 09:50:45 +00:00
Vladimir Paramuzov 5c11f09adc [GPU] Remove duplicated precision conversion function (#12827) 2022-08-31 11:09:48 +04:00
Ilya Lavrenov a6b455876b Fixed frontend tests on OSX (#12836) 2022-08-31 10:56:13 +04:00
Roman Lyamin 93d82cde4a [GPU] Squeeze/Unsqueeze shape infer support (#12724) 2022-08-31 09:38:39 +04:00
Oleksii Khovan 85549cb404 [GPU] Assign-3/ReadValue-3 for GPU plugin (#12828)
* Enable v3 ops for GPU plugin

* Add single-layer tests for v3 ops
2022-08-31 09:36:51 +04:00
Mateusz Tabaka f83cc881e7 Explicitly link onednn with tbb for tbb version in [2018,2019.4] (#12789)
Ticket: 89800
2022-08-31 01:15:05 +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
Nadezhda Ageeva 8b974badca [GNA] Moved GNA HW precision test (Renew PR11464) (#12338)
* Commits from PR11464:

Added test

Fixed gnamem alloc for test

Deleted deprec test

Some fixes

* Apply review comments
2022-08-30 18:12:54 +01:00
Alexandra SidorovaandIvan Novoselov 69c514563c [Snippets] Some optimizations (#12384)
- Implement static TileScheduler to handle compile params processing. Now compile params are accessed only here
- TileScheduler should emit code only for necessary scalar/vector Tiles
- Perform abstract-to-physical register mapping in one place (currently KernelEmitter constructor)
- Implement more precise register mapping, so larger subgraphs could be created (now up to 12 i/o regs instead of 7)

Co-authored-by: Ivan Novoselov <ivan.novoselov@intel.com>
2022-08-30 18:26:43 +04:00
Bartek Szmelczynski fc27a6b49f [MO][ONNX FE] Input freezing realized via set_tensor_value method for ONNX FE (#12059) 2022-08-30 14:58:31 +02:00
Mateusz Tabaka 2d2ac7fafa [ONNX] check if 3rd input to Pad op is not null (#12797) 2022-08-30 12:13:47 +02:00
Ilya Churaev 1f66077fc3 Enabled in-place evaluate for identity (#12813) 2022-08-30 14:06:57 +04:00
Ruslan NugmanovandEvgenya Stepyreva 5a1fc67131 Implements renaming of tf_fe lib (#12684)
* tf_fe lib renaming to switch to new fe

* Apply suggestions from code review

* 1. implements renaming for win os
2. --api_2 key is equal to True by default

* --ir_version key is equal to '11' by default

* resolves merge conflicts

* check if file to rename exists

Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>
2022-08-30 12:51:03 +03:00
Roman Kazantsev 98a23a5c6f [Python API] Replace deprecated NumPy type np.bool (#12786)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-30 10:41:31 +02:00
Sun XiaoxiaandIlya Lavrenov 756659b624 fix unicode issue that ie.ReadNetwork fails if the exe's folder conta… (#12720)
* fix unicode issue that ie.ReadNetwork fails if the exe's folder contains Chinese characters

* fix clang format issue

* fix clang format issue

* modify '/' to file_separator in get_directory

* fix ci issue

* fix test failure on windows

* fix test issue

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-08-30 12:12:37 +04:00
Tomasz Dołbniak c5588f6f46 Use absolute path in some cpuFuncTests (#12808) 2022-08-30 11:12:06 +03:00
Vladimir Paramuzov 47068735a4 [GPU] Improved AddPrimitive function of the Program (#12756)
* [GPU] Improved AddPrimitive function of the Program

* [GPU] Removed ext_prim_id parameter
2022-08-30 12:05:15 +04:00
Krzysztof BrunieckiandSzymon Irzabek bc00e8885a [SAMPLES] Add GNA library version log to speech_sample (#12411)
* [SAMPLES] Add GNA library version log to speech_sample

* [GNA] Add OV version to TLV export file

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>
2022-08-30 09:45:51 +02:00
Roman Kazantsev 1afd8460e3 [TF FE] Fix translator for Conv3DBackpropInputV2 (#12811)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-30 10:28:48 +04:00
Wilson Seok cf5d93b273 [GPU] apply LoadType change condition when input1 fs != output fs(broadcast) in eltwise fusing (#12710)
* apply condition when input1 fs != output fs(broadcast)
* modify condition of LT unaligned read transition
2022-08-30 15:19:52 +09:00
Ilya Lavrenov 2d04f93486 test that openvino wheel contains libpugixml.so.X (#12796)
* test that openvino wheel contains libpugixml.so

* Fixed pugixml install to openvino whl
2022-08-30 01:41:49 +04:00
Alina Kladieva cbd47ca7aa Revert "Add decomposition transformation for eye 9 (#12746)" (#12804)
This reverts commit 7601400d99.
2022-08-29 20:01:45 +04:00
Ilya Lavrenov 12e50021f4 Check whether cmake is installed already (#12799) 2022-08-29 17:34:44 +04:00
Ilya Churaev b54de48774 Fixed build cpuFuncTests for macOS (#12794) 2022-08-29 15:23:41 +03:00
Daniil Lyakhov d0d88fa1ec [POT] Skip per channel quantizers allining before concats (#12483)
* Skip per channel quantizers allining before concats

* Test coverage
2022-08-29 13:55:37 +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 fc4efa2460 Fixed ie_wheel build with disabled IE API 1.0 (#12785) 2022-08-29 12:18:42 +04:00
Evgenya Stepyreva 4daee82b8d Revert "Fix experimental detectron do ref impl (#10621)" (#12683)
* Revert "Fix experimental detectron do ref impl (#10621)"

This reverts commit d87233863d.

* Disabled Experimental Detectron per agreement with GPU team. Ticket to fix it: 90209
2022-08-29 11:45:53 +04:00
Yuan Hu f633286a75 fix get front library issue (#12707)
when cpuFuncTest and libopenvino.so in sampe directory
on redhat8, cpuFuncTest can't find front library path

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

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2022-08-29 07:14:00 +00:00
Felix Dohyun Kim d1765d1df8 [GPU] Adjust fusion count in DG2 (#12708) 2022-08-29 15:50:19 +09:00
Evgenya Stepyreva 79f1e720e7 Resolve comments 12736 (#12778)
* Comments resolving

* Style and getting rid of asserts

* style

* Update src/common/transformations/src/transformations/smart_reshape/lstm_states_broadcast.cpp
2022-08-29 10:16:49 +04:00
Pawel Raasz 7601400d99 Add decomposition transformation for eye 9 (#12746)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`

* Fix CI LTO optimization issue for Ubuntu 20
2022-08-28 17:35:50 +02:00
Katarzyna Mitrus 67f4b8ee66 AUGRU op ov core shell and reference implementation (#12163) 2022-08-26 17:33:10 +03:00
Tomasz DołbniakandIlya Lavrenov 371e393581 cltools update to 22.08 [master] (#12689)
* cltools update to 22.08

* Hash update

* Hash update

* Adjustments for the new package

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-08-26 15:28:16 +04:00
Wang, YangandChen Peter 93509147d5 [AUTO] Update logic of setting TPUT by default for MULTI and AUTO. (#12279)
* update logic of setting TPUT by default for MULTI and AUTO.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Set config to MULTI instaed of target device when using -d MULTI:target_device in benchmark app.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update logit to check if perfomance hint is set.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update test cases.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Set the correct _so from passthrough executable network when batch plugin is disabel to fix lifecycle coredump.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Same update for AUTO plugin

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-08-26 17:31:22 +08:00
Mingyu Kim 19c4bad915 [GPU] Typo fix (#12767) 2022-08-26 17:52:44 +09:00
Nikita Malinin f2d6248dec Disable LWT tests (#12740) (#12763)
(cherry picked from commit 3980672082)
2022-08-26 12:38:44 +04:00
Piotr Krzemiński 0266f25f9b [PYTHON] Align versions for subpackages, add get_version method for all subpackages (#12220) 2022-08-26 11:21:24 +03:00
Evgenya Stepyreva 3731913049 Make model reshape and track batch (#12736)
* CVS-89672 Make model reshape and track batch

* Minor refactoring

* Changed mechanism of constant replacement to more mature

* Update src/common/transformations/include/transformations/smart_reshape/lstm_states_broadcast.hpp

* Update src/common/transformations/src/transformations/smart_reshape/lstm_states_broadcast.cpp
2022-08-26 12:05:34 +04:00
Ekaterina Aidova 8c1a3bab25 openvino-dev uses opencv-python-headless as default (#12558) 2022-08-26 10:44:38 +03:00
Ilya Lavrenov 5a037dedbc Finalize with libraries versioning (#12704) 2022-08-26 09:45:27 +04:00
hyunback kim c683572c4f Integrate onednnv2.7-pc2 (#12120)
* [GPU] Integrate oneDNNv2.7

- Support bsv16_fsv2, bsv16_fsv4
- Update qunatize LWS opt and common GetOptimalLocalWorkGroupSizes.
- Enable bs_fs_zyx_bsv16_fsv2 in eltwise.
- Update to use binary_mul in case NOT int8 conv with oscale.
- Update oneDNN v2.7pc2 branch in onednn submmodule
- Apply shallow conv in/out condition, using acdb,acdeb
  mixed precision b32, f32 case, newly add weight reorder format
- Update to fix remains ref_conv selelction issue and running failure issues.
- Update to fix shallow out and normal in case creates  unnecessary reorder.
* Fix different in/out format issue in concat
   - Concat supports in/out different format, but it has issue calculating concat axis.
2022-08-26 14:39:47 +09:00
Pawel Raasz 0c2c341da6 ONNX FE handles old API extensions (#12644)
* ONNX FE handles old API extensions
by legacy conversion extension

* Move `LegacyOpExtension` class to dev API
2022-08-26 09:27:58 +04:00
Xiping Yan 1818e120e3 Fix macOS build issue. (#12766)
After moving cpuFuncTest to cpu_plugin folder, there is more stricter grammar check.
ngPrc is declared twice, but for the first declaration, the ngPrc is not used.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
2022-08-26 05:17:47 +00:00
Ilya Lavrenov 3f02090315 Fixed ENABLE_PYTHON detection (#12594)
* Disable python for configuration with libraries suffix

* Fixed python detection on arm

* More fixes

* Used find host package

* Don't use PYTHON_VERSION which is used by pybind
2022-08-26 09:13:55 +04:00
Andrew Kwangwoong Park f55777ff1a [GPU] Add condition to check deconv with b_fs_yx_fsv16 opt (#12745)
Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-08-26 09:08:44 +04:00
Roman Kazantsev 3bc7ce1d04 [TF FE] Correct Deconvolution for NCHW layout (#12751)
* [TF FE] Correct Deconvolution for NCHW layout

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert Deconvolution implementation and work around -1 for SS

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-25 23:32:55 +03:00
Trawinski, Dariusz 7369ce2e4e added support to install NEO drivers on rh8.6 (#12759) 2022-08-26 00:31:24 +04:00
Irina Efode 74567b55a1 Summary fix (#12716) 2022-08-25 23:24:42 +03: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
guozhong wangandChen Peter 8f66687d1d Keep CPU in CTPUT candidate list if DEVICE_BIND_BUFFER=YES (#12554)
* change gpunum to 3

* do not remove cpu when bind buffer

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-08-25 14:48:21 +03:00
Artur Kulikowski 2b2e04d974 MO uses the same version of protobuf like other packages (#12713)
* MO uses the same version of protobuf like other packages

* Restrict Protobuf to version >=3.18.1 and lower than 4.0.0
2022-08-25 13:09:03 +02:00
Kurt ChenandTang Wei febead7e8c [GPU] fix Transpose issue for ConvertColor with FakeQuantize. (#12645)
Co-authored-by: Tang Wei <wei1.tang@intel.com>

Co-authored-by: Tang Wei <wei1.tang@intel.com>
2022-08-25 11:54:55 +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
Sergey Shlyapnikov 30b872150a [GPU] Fix Interpolate axes values alignment with scales (#12634) 2022-08-25 09:39:30 +04:00
Roman Lyamin fcf20dee86 [GPU] GatherElements shape infer (#12517) 2022-08-25 09:38:53 +04:00
Roman Lyamin e7e6d7883c [GPU] Dynamic input support for Transpose (#12739) 2022-08-25 09:29:24 +04:00
Yuan Hu bf2d6a72a4 fix a typo in benchmark_app sample (#12507)
Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2022-08-25 07:12:03 +03:00
Mingyu Kim 5cf1b0a124 [GPU] Fix for typo (#12732) 2022-08-25 12:47:58 +09:00
Sungeun Kim dc7f8249a7 [GPU] optimized out detection_out if nms_threshold is under -1. (#12730) 2022-08-25 11:05:38 +09:00
Xiping Yan 11a869d4d1 refactor cpu func unit tests (#12711)
* Refactor cpuFuncTests and cpuUnitTests to components folder.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Build pass.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add macro to judge if enable func test.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Rename func_test to functional;
Rename unit_test to unit;
Add "enable_tests" for unit;

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
2022-08-25 09:30:40 +08:00
Alina Kladieva 10bd602987 Revert "Add decomposition transformation for eye 9 (#12403)" (#12741)
This reverts commit ed7275adf0.
2022-08-24 23:23:20 +04:00
Sergey Shlyapnikov bf2ae06f29 [GPU] Shared memory optimization for network::execute_impl() call (#12631) 2022-08-24 19:11:21 +04:00
Pawel Raasz ed7275adf0 Add decomposition transformation for eye 9 (#12403)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`
2022-08-24 17:59:25 +03:00
Roman Lyamin 3339d5a372 [GPU] MVN shape infer support and dynamic tests (#12685) 2022-08-24 18:29:15 +04:00
Roman LyaminandSergey Shlyapnikov 19fd77e3d8 [GPU] Broadcast shape infer support (#12588)
* [GPU] Align broadcast with nGraph operation

* [GPU] Broadcast shape infer support

Co-authored-by: Sergey Shlyapnikov <sergey.shlyapnikov@intel.com>
2022-08-24 18:27:15 +04:00
Roman Kazantsev 3595f195f1 [TF FE] Refactor translators for Resize operations and correct Pooling (#12721)
* [TF FE] Refactor translators for Resize operations and correct Pooling

It allows to convert magenta_arbitrary-image-stylization model

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Align TF FE tranlator for Resize with legacy frontend

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Do minor fix for MaxPool

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-24 15:55:10 +04:00
Marcin Kusmierski 39b743f7a0 [GNA] Fix issue with inference when input or output first dim is diff… (#12424) 2022-08-24 11:08:43 +02:00
Luo Cheng cf15b03019 [CPU] default enable avx512 f32 brgconv (#12619) 2022-08-24 09:47:18 +04:00
Luwei Zhou da0be08f15 [CPU] Fix the strided slice issue when ellipsis_mask has redundant data. (#12608) 2022-08-24 09:43:20 +04:00
Artur Kulikowski caf547b5eb Properly reading parameters with whitespaces from IR (#12650)
* Add overrided method to generating vector of strings

* Trim the value from the the left and right

* Add test to verify that output names are correctly read from IR

* Use spaces instead of tabs

* Add C++ tests for read model contains outputs with whitespaces

* Fix test for add output

* Remove python test
2022-08-23 23:19:15 +03:00
Xiping YanandIlya Lavrenov 5b3cc5514a Warning suppression for C-API. (#12669)
* Warning suppression for C-API.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add compiler flags for CI verification.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Update parent cmake compiler flag, and make it work for total bindings folder.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Open compiler check.
Move "sign-compare" to below, and make it only work for bindings. Because plugins have many compare errors.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove sign-compare.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-08-23 20:39:48 +04:00
Daniil Lyakhov 28ac460817 [Ngraph Transformations][Pruning] HF Transformers Pruning Support (#10718)
* Support a branch without masks in matmul

* Init transpose mask propagation

* Transpose mask propagation + tests

* Unsqueeze mask propagation support / Fix reshape unsqueeze

* Init Matmul batch dims mask propagation support

* Matmul batch dims mask propagation support

* Broadcasted elementwise support

* Unsuccessfull attempt to remove masks from unit dims in eltwise

* Stricted way to pass broadcasted dims through elementwise

* Refactor reshape

* ReshapedPassThrough propagation

* Hack to enable matmul mask propagation up from right branch to left

* Make ReshapePassThrough common (tests are needed)

* Hacks to enable Bert int8 pruning

* Not reshapeable and big pattern for ReshapedElementwise operation version of transformer pruning

* Reshape shape subgraph support

* Init shrink reshape mask propataion support

* Init reshape shrink mask propagation

* Shrink extend reshape mask propagation suport init

* Complex reshape test

* Duplicated code removed

* Fix accuracy check tests

* Fix rebase

* Fix broadcasted elementwise / update tests

* Fix types

* Remove redundant methods from Mask

* Fix transpose propagation in Matmul mask initialization

* Migrate to CoordinateTransformer

* Add comments

* Fix types

* Make elementwise inputs deterministic

* Fix tests

* Refactor shape size collecting

* Fix rebase

* Fix comments

* Fix comments

* Test MatMul with two outputs is added

* Mask methods comments was added / get_constant_from_node test
2022-08-23 14:47:39 +02:00
Ilya Lavrenov 2ef6e2951c Use static TBBBind if dynamic one is not found (#12703) 2022-08-23 13:17:35 +04:00
Ilya Lavrenov 7a7bd37a50 Disable CUDA plugin in Azure coverity pipeline (#12712) 2022-08-23 12:51:26 +04:00
Jan Iwaszkiewicz 7f750a4be5 Skip nogil tests (#12658) 2022-08-23 12:00:11 +04:00
Roman Kazantsev fdac22042c [TF FE] Support dynamic rank support for Convolutional and Pooling operations (#12661)
* [TF FE] Add dynamic rank support for Convolutional and Pooling operations

Refactor DepthwiseConv2D, AvgPool, and FusedBatchNorm operations

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix build issue with rvalue

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix build issue with climit

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Skip duplication of Parameter nodes

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert changes in StridedSlice and add check for AvgPool operation type

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert the rest of changes for StridedSlice

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix translator for AvgPool: add pad mode

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Introduce helper default_op_checks

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-23 11:57:00 +04:00
Roman Kazantsev d70d7b2171 [TF FE] Add Transpose Sinking for additional unary elementwise Operations (#12698)
* [TF FE] Add Transpose Sinking for additional unary-wise Operations

It helps to fix performance degradation for MobileNet models

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add LogicalNot for Transpose sinking

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-23 11:56:48 +04:00
Wang, Yang 186efc5125 [MULTI]Fix the issue that QueryNetworkMultiThrows failed to pass (#12670)
* checking config priorities is set by checking if the value of priorities is empty instead of not founding in the config map.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* add test case for MULTI without setting device priority.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-08-23 10:34:16 +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
Alina Kladieva 1734f2d673 Run Python checks on Ubuntu 20.04 (#12687)
* Run Python checks on Ubuntu 20.04

* Run py_checks for changes to workflow

* Fix endline
2022-08-22 23:15:27 +04:00
Ilya LavrenovandAlina Kladieva 4dcbd85ef7 Azure: Try to take into account result of previous step as well (#12695)
* Fix openvino_contrib version

* [linux_arm64] Fix openvino contrib version

* [linux_debian] Fix openvino contrib version

* Azure: Try to take into account result of previous step as well

* Removed excess contrib var

* Disable CUDA plugin build via cmake flags

Co-authored-by: Alina Kladieva <alina.kladieva@intel.com>
2022-08-22 23:08:26 +04:00
Alina Kladieva 4aea944df5 Disable CUDA plugin building Azure (#12694)
* Fix openvino_contrib version

* [linux_arm64] Fix openvino contrib version

* [linux_debian] Fix openvino contrib version

* Disable CUDA plugin build via cmake flags
2022-08-22 21:41:02 +04:00
Maxim Vafin 56808c7aed Add ScatterUpdate value infer (#12595)
* Add ScatterUpdate value infer

* Add additional test case to ScatterUpdate tests
2022-08-22 17:52:49 +02: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
Nadezhda Ageeva 7106f4b626 Commits from PR11438 (#12337)
Draft version of test

Added i8 test

Some fixes

Fix static build issue
2022-08-22 13:34:24 +01:00
Nadezhda AgeevaandSzymon Irzabek df538196df Commits from PR11350: (#12157)
copy layer init
Add tests
switch to backwardGraphRewrite for nonfunc subraph search
swith to matcher pass for part of memory/concat cases
docs
clean up
apply review comments
fix test
Comments for non-computational subgraphs transformation/fixes
fix tests depends on order
fix constant case
switch back to minimize copy layers count
Add check for unaligned split

Fix issue that Assign is not catched by matcher pass. Fix tests for transformations inserting Copy layer.

Applying comments. Rename GNAPluginNS -> ov::intel_gna::pass for transformations

Rollback test changes

Rename function

Update src/plugins/intel_gna/ops/copy.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

Update src/plugins/intel_gna/transformations/insert_copy_layer.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

Update src/plugins/intel_gna/transformations/insert_copy_layer.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

Update src/plugins/intel_gna/transformations/insert_copy_layer.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

Update src/plugins/intel_gna/backend/gna_limitations.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

Update src/plugins/intel_gna/backend/gna_limitations.hpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

Update src/plugins/intel_gna/transformations/insert_copy_layer.cpp

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>

Apply review comments
2022-08-22 12:30:23 +01:00
guozhong wangandChen Peter 931b343511 Force dynamic network on CPU only if it is in candidate list (#12583)
* change gpunum to 3

* check if CPU is in candidate list before checking dynamic network

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-08-22 12:14:58 +03:00
Tomasz DołbniakandMichal Lukaszewski a0622a328f GridSample op check test (#12585)
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-08-22 10:53:13 +03:00
Leonard Sikorski 91546336bc [MO][Kaldi] RestrictedAttention component support in MO (#12582) 2022-08-22 09:10:20 +02:00
Ilya LavrenovandIlya Churaev 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
Roman Lyamin f26c3d035a [GPU] Interpolate shape infer support (#12516) 2022-08-22 10:47:07 +04:00
Roman Lyamin 267f2f9c4b [GPU] Tile shape infer support (#12539) 2022-08-22 10:41:46 +04:00
Roman Lyamin 5128f20cfa [GPU] Pad shape infer support (#12654)
* [GPU] Align Pad parameters with ngraph

* [GPU] Pad shape infer support
2022-08-22 10:33:15 +04:00
Eddy Kim 0053ed1a65 updated to convert b_fs_yx_fsv16 to o_is_yx_isv16 (#12630) 2022-08-22 14:22:17 +09:00
Ilya Lavrenov 609eb2ced3 Install only required TBB libraries (#12665) 2022-08-22 09:09:30 +04:00
Wang, YangandChen Peter 1c6f460458 add value verification to check if device priorities value is available (#12069)
* add value verificatioin for the key ov::device::priorities and corresponding test case.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Retrieve the device name via the DeviceIDParser rather than via the priorities directly.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Add logic to support devices like CPU(x),GPU(x).

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Add 'mock' as a available device name when checking if ov::device::priorities is correct.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update format.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* do not check if priorities is available when value of priorigies is empty.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-08-22 12:51:49 +08:00
yanlan song c35af4c0d0 do not call get_profiling in threads (#12604)
* do not call get_profiling in threads

Signed-off-by: fishbell <bell.song@intel.com>

* indent

Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-08-22 10:04:37 +08:00
Wilson Seok 1c3f3b4ed0 [GPU] Implement can_memory_reuse flag to fix deconvolution NaN input issue (#12082)
* implement can_memory_reuse flag

* apply the option to reduce opt kernel

* add reduce opt kernel for the option

* apply feedback

* consider when user->selected_impl() = nullptr

* apply recursive function to check optimized user
2022-08-22 09:34:12 +09:00
Sieun Kim 495eafb11a support blocked format for broadcast (#12313)
* support blocked format for broadcast

* remove redundant reorders and reshape so broadcast selects blocked format

* implement broadcast ngraph reference and added blocked format test cases with values bigger than block size

* fix cpplint error

* fix cpplint error 2

* review comments applied

* review comments applied: cleaner GetInputBlockND function

* change from program_helpers::are_layouts_identical() to layout::compatible()

* change from layout::compatible() to layout::identical()
2022-08-21 22:10:37 +09:00
Ilya Churaev 9a4326012c Fixed generation of plugins.hpp and disabled some proxy tests (#12637) 2022-08-19 18:50:59 +03:00
Maxim Vafin 000f5d8049 Use new reprocessing for legacy MO (#11302) 2022-08-19 15:33:30 +04:00
Maxim Vafin 3e9cc7d52d [TF FE] Refactor constant reading to not use protobuf directly (#12518)
* Refactor constant reading

* Remove needless code

* Implement compressed value reading

* Remove needless protobuf headers

* Remove commented code

* Remove unnecessary comment

* Apply review feedback

* Fix linux build

* Fix win build

* Fix copyright
2022-08-19 14:29:35 +03:00
Ilya Lavrenov fe96bb2f7c Try to use ccache for linker as well (#12641) 2022-08-19 14:32:37 +04:00
Ilya Lavrenov 3089c868b0 Use OSX 11 pool for MacOSX (#12642) 2022-08-19 14:28:51 +04:00
Mateusz Bencer d7ce8289ac [MO] Fix SSliceComplex transformation (#12537) 2022-08-19 12:14:10 +02:00
Roman KazantsevandMaxim Vafin 190d692c4d [TF FE] Implement translators for ExtractImagePatches and MatrixDiag (#12593)
* [TF FE] Implement translators for ExtractImagePatches and MatrixDiag

It allows to convert Inpaint model and infer it correctly

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-review feedback: correct comments, use set

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply suggestions from code review

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2022-08-19 11:44:41 +03:00
Katarzyna Mitrus 6fd23416d4 [MO] Optimize redundant Concat in GRUBlockCell conversion (#12078)
* Optimize redundant Concat in GRUBlockCell conversion

* Imports and code refactor

* Update comments

* Update rename and remove nodes

* Update import
2022-08-19 10:37:14 +02:00
Georgiy Manuilov e6e901bdcf Add several missing <cctype> header entries (#12632) 2022-08-19 11:01:23 +04:00
Leonard Sikorski 005938d105 Restrict protobuf to a stable version lower than 4.0.0 (#12275) 2022-08-19 08:50:19 +02:00
Leonard Sikorski f152a0eeaa Correct docstrings in Python API (#12247) 2022-08-19 08:49:23 +02:00
Felix Dohyun Kim 9f0acc4535 reset hard (#12055) 2022-08-19 09:57:54 +09:00
Mateusz Tabaka 37a0bddd76 Fix some of shellcheck errors in setupvars.sh (#12623)
Fixed:
SC2070: -n doesn't work with unquoted arguments. Quote or use [[ ]].
SC2086: Double quote to prevent globbing and word splitting
in TBB related part of the script.
2022-08-19 00:05:50 +04:00
Nadezhda AgeevaandElizaveta Lobanova d5e0be34da [GNA] Overload correction algorithm for Add (Renew PR11406) (#12225)
* Overload correction algorithm for Add

* Fix infinite loop for rm_lstm4f topology

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>
2022-08-18 12:54:46 +01:00
Jan Iwaszkiewicz 65ac9b5036 [PyOV] Add missing element Type and functions (#12614) 2022-08-18 13:19:44 +02:00
Tomasz Jankowski e24a5b8ac3 [ONNX FE] Extend ONNX FE for operation GenerateProposals (#12510)
* Create ONNX FrontEnd GenerateProposals op

* Add onnx GP Op validation

* Add batch 2 test

* Improve code readability

.. per review comments

* Fix test model paths

* Use heterogeneous test values
2022-08-18 09:26:48 +00:00
Xuejun Zhai 8b75e8d4b9 [Coverity Scan] sample issue from CS fix (#12572)
Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-08-18 11:35:47 +03:00
Nadezhda AgeevaandAndrey Noskov 730d857cc6 [GNA] Moved input precision tests (renew PR10990) (#12326)
* Commits from PR10990:

[GNA]Added init tests

Delete derpec test

Deleted unnecessary code

Fixed bugs

Fixed data types

Remove copy to blob

Deleting InitGnaDevice

Removed SetUp

* Refactor tests

Co-authored-by: Andrey Noskov <andrey.noskov@intel.com>
2022-08-18 11:30:23 +04:00
RICKIE777 431cfc818f Update linux.yml (#12616) 2022-08-18 11:16:29 +04:00
Mateusz Tabaka de4ffb00c3 handle tbb library path like .../tbb/lib/intel64/gcc4.8 (#12611) 2022-08-18 08:25:56 +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
Xiake Sun d958fccb8b Add missing patchelf dependency for REHL8 for openvino runtime python wheel build (#12618) 2022-08-18 08:30:20 +04:00
Roman KazantsevandMichal Lukaszewski 263652fb93 [TF FE] Add ResourceGather translator and refactor Softmax (#12568)
It allows to convert ICV_SqueezeNet_v* models

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-08-17 23:36:37 +03:00
Daniil Lyakhov 1ea12a0bab [POT] Finetuned model reference update (#12610)
* Finetuned model reference update

* Comment with AVX512 reference value
2022-08-17 19:54:39 +00:00
Alexandra Sidorova 6d6f52806b [CPU] Removed Contexts from load and store emitters (#12446) 2022-08-17 22:22:22 +04:00
Jan Iwaszkiewicz 97f3d84cf5 [PyOV][PyDocs] Update BUILDING.md instructions for Linux/MacOS (#12520)
* Update linux and mac part of BUILDING.md

* Fix variable names and minor other fixes

* Remove unused macos  deps

* Follow up on comments including cmake instructions

* Update wheel instructions
2022-08-17 16:35:59 +00:00
Ilya Lavrenov ad9d4ec0c1 Skip error code for PDPD tests temporary (#12600) 2022-08-17 16:25:26 +04:00
Alina Kladieva 693a2334a7 Skip sporadically failing tests (#12589) 2022-08-17 16:10:37 +04:00
Ilya Churaev 8a027f4e42 Replaced DLDT to OpenVINO (#12580)
* Replaced DLDT to OpenVINO

* Fixed samples build dir

* Fixed build folders
2022-08-17 12:46:07 +04:00
Liubov Talamanova ac9a80e6c9 [POT] Fixed "inplace_statistics" param in documentation (#12560) 2022-08-17 10:38:51 +04:00
Trawinski, Dariusz d035103889 changes needed to rhel8 certification (#12460)
* changes needed to rhel8 certification

* add missing python

* drop redundant python deps
2022-08-17 09:31:41 +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
guozhong wangandIlya Lavrenov 687f8ae655 Guozhong/remove testcase load network single ie core (#12557)
* change gpunum to 3

* remove test case smoke_LoadNetwork_SingleIECore

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-08-16 23:17:52 +04:00
Maxim Vafin 4d4263f45c [MO] Improve layout help (#12535)
* [MO] Improve layout help
2022-08-16 15:39:42 +02:00
Sergey Shlyapnikov 7d2c88b296 Fix path for find_package of ITT counters in case of defined INTEL_VTUNE_DIR variable (#12584) 2022-08-16 16:45:29 +04:00
Ilya LavrenovandIlya Churaev 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 LavrenovandSergey Lyubimtsev 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
Sergey Shlyapnikov d8237cd97c [GPU] Align Reduce primitive with nGraph's parameters (#12341) 2022-08-16 13:53:26 +04:00
Sergey Shlyapnikov a711ae87a5 [GPU] Align Interpolate primitive with nGraph's parameters (#12342)
* [GPU] Align Interpolate primitive with nGraph's parameters
2022-08-16 13:52:46 +04:00
Nadezhda Ageeva 3e14988895 Extend inputs/outputs info with shape in BA printout (#12453) 2022-08-16 12:21:54 +04:00
Nadezhda Ageeva ab3a53a179 [GNA] Fix precision for DecomposeMVNTest (#12439) 2022-08-16 10:59:52 +03:00
Mateusz Mikolajczyk 9e74f5d2c6 [PyOV] Add copy/deepcopy magic methods for Output/ConstOutput object (#12392) 2022-08-16 09:58:34 +02: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
River Li 752cce38ad [CC] enable cc in core/src/pass (#12547)
* Enable CC for src/core/src/pass

* Enable more run_on_model
2022-08-16 07:15:24 +04:00
Florian BruggisserandIlya Lavrenov 17f49d804d Add python arm64 platform build support (Apple Silicon) (#12564)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-08-16 00:35:33 +04:00
Alexandra Sidorova aae5315515 [GPU] Fixed ov integration test build (#12565) 2022-08-15 22:04:36 +04:00
Vladimir Paramuzov b33f22ce8c [GPU] New shape infer baseline (#12241) 2022-08-15 19:11:26 +04:00
Irina EfodeandAlexander Zhogov d04521a7c3 API Conformance report: C++ & Merge XML Part (#11245)
* Separate Summary, OpSummary, ApiSummary

* final separatin

* ChangeNamespaces

* git status

* filename

* link error

* Fix linking

* Fix compilation

* Report - ieplugin

* Next step

* Fix build

* Changing inheritance + fix build

* Fix run

* Summary

* Fix comments

* Fix the run

* fix build

* #Extend report

* Fix build

* fix template

* api_report flag

* rebase to master branch

* fix

* fix build

* myriad

* fix problem with crash

* Fix some mistakes

* python merge

* fix tests

* tmp

* Update Merge_xml script

* Fix op

* fix build

* Fix bug with --report_unique_name

* build

* remove extra

* gg

* gpu build

* c

* Fix issue with win

* infer_req

* compiled + exec net

* ov_plugin

* ie_plugin

* Fix comments

* ff

* fix last comment

* fix build

* fix template func

* Apply commnets

* Apply commnets

* fix ci

* build

* build

* build

* inl

* Remove extra

* fix merge_xml

* fix build

* remarks

* skip one test

Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
2022-08-15 18:57:10 +04:00
Vladimir Paramuzov dd55f434c3 [GPU] NonZero primitive (#12519) 2022-08-15 17:32:37 +04:00
Vladimir Paramuzov 03b7c1e69e [GPU] Support hint::inference_precision (#12526) 2022-08-15 16:34:36 +04:00
Evgenya Stepyreva de9a785328 Auto Batch: if disabled during cmake (#12383) 2022-08-15 11:12:59 +00:00
Roman Kazantsev d635c91df7 [TF FE] Correct Result node names and output tensor names (#12466)
* [TF FE] Correct Result node names and output tensor names

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Return transformation pass with TransposeSinking

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix code-style

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Switch off TransposeSinking transformation due to bugs with preserving tensor names

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Use just set_friendly_name for Result nodes

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Use get_friendly_name for composing Result node name

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix tensorflow tests for partially convert

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Recover header for manager

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-15 09:32:40 +00:00
Oleksii Zaderykhin dd051be43a [CPU] Fix for FakeQuantize-1 conformance tests
The convert node was extended to support the conversion from Precision::BIN precision. The issue with FakeQuantize-1 conformance tests failures is related to the convert node. In the case of binarization, the FakeQuantize node is transformed into a binarization node and the convert node. But the convert node didn't support conversion from Precision::BIN precision. (#12149)
2022-08-15 09:03:27 +00:00
Vladimir Paramuzov 9ec5d258fc [GPU] Fixed invalid access to input layout in impl map (#12533) 2022-08-15 12:59:54 +04:00
Vladimir Paramuzov 5c83f7d6b1 [GPU] Baseline network and primitive_inst changes for dynamic shapes (#12413) 2022-08-15 12:59:33 +04:00
Ilya Churaev 7ec9bcf33a Fixed CODEOWNERS (#12523) 2022-08-15 12:47:56 +04:00
Nadezhda Ageeva 2fccd87d0b [GNA] Fix pass for fused transpose + reshape (#12295) 2022-08-15 09:57:30 +03:00
Irina Efode 5baa403d42 Add model logging to SubgraphDumper (#12441) 2022-08-14 19:17:58 +00: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
River Liandruiqi cbbac125f8 [C API] Refine OV 2.0 C APIs for better expansibility and compatibility (#12187)
* [C API 2.0]Redifine partial shape and property wrapper

1. Use dimension object to initialize partial_shape rather than string
2. Use void* to unify property value rather than union
3. rename some C api name to strict align with C++ method.

Change-Id: I64b5c521461264dba2d23543808584632fbd6d4b

* [C API 2.0]Memory check and implement all reshape interface

1. Memory safe create and free
2. Implement all reshape interface align with C++ interface
3. rename some api to align with C++ interface

Change-Id: Ib5e4192bdbd8a11cdd7e30b1dc84881ba3f2d505

* Rename prepostprocess to strict align with C++ name

Change-Id: I7a4d0a6e835b2d6ed01cd218ac81b1b621f600bf

* [C API 2.0]redefine ov_node and ov_model interface

1. redefine ov_node and ov_model interface
2. rename some api to aligne with C++ interface
3. remove some redundant code
4. align CMakeLists.txt with OpenVINO 2.0 convention

Change-Id: I4d5e92157e7891319c9754da8e70b9c6150ae2e3

* Redefine ov_layout to support more than one char

Change-Id: I39e5389246cf3edcc2f4734d13157457773d89b8

* Add interface to get partial_shape from node

Change-Id: I8cef77db581b43d2f0a9ac48cfdc09a86e39b694

* Use unique_ptr prevent memory leaks in case of exception

Change-Id: I150b375108a3eded400bdde087ab5c858958c25f

* Put legacy C API and 2.0 C API into a library

Change-Id: I067a55a00e78b80cdede5ae7adad316ee98cabd1

* Only keep OV 2.0 C sample and move legacy C sample to legacy directory

1. Move legacy C samples to tools/legacy/c directory
2. Keep OV 2.0 C samples in samples/c directory

Change-Id: I05880d17ee7cb7eafc6853ebb5394f3969258592

* Fix format and log issues

Change-Id: I05d909b3d7046d41b807e35808a993bb09672e68

* Restore documents update

Change-Id: I82dd92081c0aa1a2d7dca7f114cf6a35131d6f92

* Change config map data be const

Change-Id: I9043859e8308c01d80794dc8280ae236947f3bbb

* Update api document

Change-Id: I35bc149bad0de17424d95f48c3027030b708e147

* Add clang enable

Change-Id: I335639c05fb5fb38e682dbb72bfaf78380c0adaf

* Fix clang issue after enable clang for ie_c_api.c

Change-Id: Idcb4dda9d66e47a169eb79a9c4fe7a7d4df838db

* split header file and c file into multiple files

Change-Id: I7c3398966809ef70d7fcb799f2d612a33b471e31

* Fix clang format issue

Change-Id: Ibd18b45537c8f3bcbb5b995c90ae28999161d54d

* Add single ov_dimension_create method

Change-Id: Icd06b50e4f4df8f7897c7c4327edb67178162544

* Remove all legacy c samples completely

Change-Id: I098360a0d9002340e8769074181f7997b43bce8f

* Update ov_property_value to replace only ptr

Change-Id: I9f5a11b4cf07e759c1998e78e2624f0a1266d9b0

* Split more header files, add static dimension api

Change-Id: I14e4fb8585fc629480c06b86bd8219e75a9682f7

* Change ov_dimensions_create to be ov_dimensions_create_dynamic

Change-Id: I50c02749cea96f12bcea702b53a89c65b289550e

* rename status and get_out_tensor

Change-Id: I762c1d0c5a069454506fe3c04283c63ddbfacf31

* Split ov_c_api_test.cpp

* Split OV2.0 CAPI tests

* move var into Setup

* Merge legacy and 2.0 C API test

* Merge InferenceEngineCAPITests into openvino_capi_test

1. put InferenceEngineCAPITests into openvino_capi_test
2. resolve some format issues

Change-Id: I47bbba6bd70a871ee063becbd80eb57919fa9fb0

* legacy api test skips clang format

Change-Id: Id54ecdba827cf98c99b92295c0a0772123098b63

* Fix clang format issue

Change-Id: I7ed510d8178971fe04a895e812c261db99d8b9f2

* Restore InferenceEngineCAPITests

Change-Id: I4d641ffb1de9ce4d20ebecf35fc036fa7bd73e55

* rename openvino_capi_test to ov_capi_test

Change-Id: I6b6fe0cdb89aab7210abb17f32dbfdcdce72ba25

* unify list size name and refine ov_core_version_t

Change-Id: I137fc6d990c7b07f597ee94fa3b98d07ae843cb6

* align header file path to be openvino/c/openvino.h

Change-Id: I1a4552e1d558098af704942fe45488b0d6d53a90

* Fix path issue

Change-Id: I84d425d25e3b08c1516cbcc842fb9cb75574bf17

* move ov_color_format and remove opencv depenency

Change-Id: I486145f9e92e8bbf2e937d3572334aa9f0e68841

* Resolve some memory allocation error handling issues and read model with empty weight issue

Change-Id: Icd8e3b6de9741147993fa215a0c7cfd7debd5500

* Add GPU test cases

Change-Id: I13324ef019b5b1af79259ca932a36a0cec792c27

* Fix clang issue

Change-Id: I9bb4c47de301d142b5e2a77a39f667689ad9fe38

* Resolve CI test failure

Change-Id: Ia327d5edab19d8dd44ac369670f190d5c57aca79

* Redefine ov_shape and add default ov_core_create

Change-Id: I3e47d607f8aad65cb99cdddacaecf7bf34b1361b

* Remove some unnecessary api of node

Remove the unnecessary node api:
     ov_node_get_any_name(ov_output_const_node_t* node, char** tensor_name)
     ov_node_get_element_type(ov_output_const_node_t* node, ov_element_type_e* tensor_type)

Change-Id: I80a3243676800263a9e56afa3cfffce7b4bd2ae7

* Rename reshape api

ov_model_reshape should be common case which allow to reshape any models with different number of input.

Change-Id: I26bafeeb8a3dda7cd5164cda15fdb338db8668cb

* Rename ov_node api

Change-Id: I03114ecb6de5c46b6d02c909b6f6fb6c8bfd5cba

* Remove subfolder out of source code

Change-Id: Ib033ae7712cc0460d6fc21a0f89818381ae503c0

* apply absolute path for all header files

Change-Id: I8024c897d424b407025e21460ed4b62829b853d2

* Fix CI issue ov_capi_test failed to find libgna

Change-Id: I166e79a818498c6721fe956f43873f36d9ae1e07

* Resolve build issue to align with PR12214

Change-Id: I9e6094db213b431ee1b46e0d64199131db33bb36

Co-authored-by: ruiqi <ruiqi.yang@intel.com>
2022-08-14 19:51:34 +04:00
jszczepaandTomasz Dołbniak a887306465 Remove ipython lib reference (#12168)
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
2022-08-14 02:11:49 +04:00
Ilya Lavrenov c2a1422810 Fixed Windows AZP (#12544) 2022-08-13 18:11:23 +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
Anastasia Popova 595bdb71a7 Changed update date in MO message. (#12396)
* Changed update date.

* Changed update date.

* Year update.
2022-08-12 13:29:45 +00:00
Ilya Lavrenov 81e41f7c8e Added vresion generation as in CI (#12521) 2022-08-12 15:43:09 +04:00
Ilya Lavrenov af05733a3a Failed plugins search from current directory w/o LD_LIBRARY_PATH (#12499) 2022-08-12 12:10:03 +04:00
Ilya Lavrenov 91c192f358 Migrated to xbyak v6.00 (#9166) 2022-08-12 11:38:34 +04:00
Ilya Lavrenov 6415fdc6cf Install python libs for debian explicitly (#12522) 2022-08-12 11:37:45 +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
Ilya Lavrenov e0b12009ea Removed old headers from OV 2.0 API (#12214)
* Removed old headers from OV 2.0 API

* FIxed clang

* Fixed warning

* Updated OMZ submodule

* Fixed gpu tests build
2022-08-12 11:35:36 +04:00
Ilya Lavrenov 92ef155ed1 Debian packages tests on Azure (#12469)
* Squashed commit of the following:

commit 036a32290ed795326d51dd41d83b891248b0ac05
Merge: db41a71ea9 ee0b67e605
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Aug 9 04:33:54 2022 +0800

    Merge remote-tracking branch 'origin/debian-packages-azure' into debian-on-azure

commit ee0b67e605
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Jul 18 03:31:46 2022 +0800

    test

commit e357eb1428
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Thu Jul 7 02:58:22 2022 +0800

    Test

commit 4635acc497
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 22:10:52 2022 +0800

    Azure

commit b1fff55143
Merge: 806ecaefa5 d67d4ce736
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 21:28:49 2022 +0800

    Merge branch 'debian-packages' into debian-packages-azure

commit d67d4ce736
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 21:28:30 2022 +0800

    Removed commented code

commit 806ecaefa5
Merge: e328c9fc07 4413f0c4a8
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 21:24:40 2022 +0800

    Merge branch 'debian-packages' into debian-packages-azure

commit 4413f0c4a8
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 21:24:22 2022 +0800

    Fixed python; need to update component name in product config

commit e328c9fc07
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 21:23:51 2022 +0800

    Updated .ci

commit cb59bc9563
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 15:33:21 2022 +0800

    Updates

commit d733e7aeb5
Merge: 096bdcc9e4 e31018844d
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 15:31:26 2022 +0800

    Merge branch 'debian-packages' into debian-packages-azure

commit e31018844d
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 15:31:08 2022 +0800

    Some updates

commit b079a9e3a5
Merge: b0f15a8513 6514c213c3
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 15:06:59 2022 +0800

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 096bdcc9e4
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 02:59:56 2022 +0800

    CI pipeline with debian

commit 5b1c29a1a3
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jul 17 02:12:15 2022 +0800

    Test comit

commit b0f15a8513
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Jul 16 18:56:58 2022 +0800

    Fixde tests on Windows

commit 16dc4d8bc0
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Jul 16 15:46:15 2022 +0800

    Try to fix GNA

commit 9801e52322
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Jul 16 14:40:21 2022 +0800

    Update TBB install rules

commit 279f8a8a72
Merge: 9bf178fce0 09f2b5062b
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Jul 16 14:30:15 2022 +0800

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 9bf178fce0
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Jul 15 21:09:00 2022 +0800

    Fix for debian

commit 7afa431f05
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Jul 15 20:16:09 2022 +0800

    Revert cmake scripts location

commit 9ead76efce
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Jul 15 19:31:08 2022 +0800

    Try to fix TBB finding

commit 6f0da74e2a
Merge: be9e25c6f7 e8310f7e0b
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Jul 15 19:14:50 2022 +0800

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit be9e25c6f7
Merge: c203963548 35a31a329d
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Thu Jul 14 22:44:45 2022 +0800

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit c203963548
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Apr 5 22:29:34 2022 +0300

    Small fixes after self-revew

commit e2f1595c21
Merge: 3bae350d1c c2703c81f6
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Apr 5 22:21:41 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 3bae350d1c
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Apr 5 22:17:17 2022 +0300

    Split debian file on common tools and repo specific stuff

commit 8a5bb7fe04
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Apr 5 20:41:45 2022 +0300

    Revert TMP WAs

commit be78da4a88
Merge: d0da7056d0 86495ceb0f
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Apr 5 13:44:49 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit d0da7056d0
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Apr 3 12:11:33 2022 +0300

    Improvements

commit 69bafd3519
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Apr 3 12:02:25 2022 +0300

    Enabled nlohmann_json from system

commit bdbc7804af
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Apr 3 11:46:19 2022 +0300

    Use nlohmann_jsonConfig from system

commit 0f2e2bbdcb
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Apr 3 11:13:40 2022 +0300

    Tried to use dependencies on system

commit 88415fc133
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Apr 2 19:28:48 2022 +0300

    Try to improve gflags: part 2

commit b8fafcb670
Merge: 56dad4d12a 29fb8c79b1
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Apr 2 19:23:19 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 56dad4d12a
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Apr 2 19:23:15 2022 +0300

    Try to improve gflags

commit 81aa7ccc38
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Apr 2 18:08:03 2022 +0300

    Skip TBB component

commit 9446326040
Merge: 610729c716 4fcc18c00e
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Apr 2 11:13:14 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 610729c716
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Apr 1 19:36:10 2022 +0300

    fixed TBB

commit 1930daa580
Merge: fc37de4382 2388f3b976
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Apr 1 19:04:19 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit fc37de4382
Merge: c2ea71e45d d3060d4bcc
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Thu Mar 31 21:08:44 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit c2ea71e45d
Merge: aeebfeba92 9fa5150d71
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Mar 30 13:42:44 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit aeebfeba92
Merge: e65d2e8097 30ec7366bb
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Mar 28 20:06:38 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit e65d2e8097
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Mar 26 13:55:52 2022 +0300

    Reverted OV_CPACK_COMPILER_IS_CLANG

commit 8cf4d15d4d
Merge: 2639adb686 aded1a2c70
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Mar 26 13:53:40 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 2639adb686
Merge: cebdf3f92a a2705b1fed
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Mar 25 15:18:48 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit cebdf3f92a
Merge: 7ded4663d0 e3098ece7e
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Mar 18 18:08:10 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 7ded4663d0
Merge: ab92bd6c13 6b22d0d109
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Feb 18 19:51:47 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit ab92bd6c13
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Feb 18 19:48:07 2022 +0300

    added versions via -

commit 1f4f71a498
Merge: f3825b8d9d 07f0966e62
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Feb 18 19:29:31 2022 +0300

    Merge branch 'tf-brick-3' into debian-packages

commit f3825b8d9d
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Feb 18 19:05:20 2022 +0300

    Used standard dir for OV_CPACK_TOOLSDIR

commit 466c5c055c
Merge: 6d57fc75a3 d2177cf177
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Feb 18 18:47:36 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 07f0966e62
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Feb 18 15:02:29 2022 +0300

    Revert "repair TF FE tests after build (#10432)"

    This reverts commit 306b7611d9.

commit 6d57fc75a3
Merge: 697b0190e3 61f657795c
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Feb 18 14:30:26 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 697b0190e3
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Feb 16 20:00:45 2022 +0300

    Fixed package name

commit 8bd9368f6e
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Feb 16 19:37:55 2022 +0300

    Tuned locations

commit 61f09a2f3e
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Feb 16 19:24:42 2022 +0300

    Fixed cmake stage

commit 4519f0fc06
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Feb 16 19:07:41 2022 +0300

    Split packaging into common and debian part

commit a6b3259e38
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Feb 16 18:27:22 2022 +0300

    Renaming

commit 694581c317
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Feb 16 18:20:44 2022 +0300

    Parametrize installation paths

commit d693205c40
Merge: 5047fc8667 abeb910ce2
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Feb 16 17:34:11 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 5047fc8667
Merge: ee8cdf3b12 317b956d2e
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 18:49:52 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit ee8cdf3b12
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 18:49:23 2022 +0300

    Removed custom MYRIAD kernels

commit 5c1db8f9f8
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 18:26:58 2022 +0300

    Disabled versioning for now

commit f305376469
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 17:12:24 2022 +0300

    System TBB

commit fcc455e18e
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 16:35:40 2022 +0300

    Improvements

commit a2dc0275a3
Merge: de9cb7c102 e168c9b1c3
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 14:14:54 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit de9cb7c102
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 14:14:36 2022 +0300

    Self-review

commit df794a493a
Merge: 85e01e8b4c 68c390f679
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 13:35:32 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 85e01e8b4c
Merge: f637f8fbc4 a875f6ed9c
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Feb 15 12:55:25 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit f637f8fbc4
Merge: db2e5d348e 3a5d821219
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Feb 14 19:29:34 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit db2e5d348e
Merge: 78073f53ca ac2e639ff8
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Feb 14 18:25:05 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 78073f53ca
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Thu Jan 13 16:37:54 2022 +0300

    Automatic triplet generation; added SOVERSION

commit 2267703a55
Merge: 91b67538ca b7e8ef910d
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Thu Jan 13 16:01:38 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 91b67538ca
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Thu Jan 13 01:09:30 2022 +0300

    Added both version and soversion

commit c19ecf16a8
Merge: fc449e76dc ab09135195
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Jan 11 18:29:46 2022 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit fc449e76dc
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 20:17:22 2021 +0300

    removed if target

commit 52638ac629
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 20:13:01 2021 +0300

    location for DM

commit dd8f0ffaf4
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 19:55:04 2021 +0300

    Fixed complation of private plugins

commit 140472f436
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 18:40:44 2021 +0300

    Enable FHS even for non-debian packages

commit f461859cfe
Merge: e603fcf8af f565e0f854
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 18:34:31 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit e603fcf8af
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 18:34:20 2021 +0300

    Install location for plugins and python

commit 1ae71e993d
Merge: 5c2b9a97d5 ab10057371
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 17:53:48 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 5c2b9a97d5
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 17:53:30 2021 +0300

    Fixed for debian packaging

commit ab53b80e56
Merge: 043768808c 4188dbbf9f
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 27 16:06:40 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 043768808c
Merge: cd44300742 2514c0ef38
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Thu Dec 16 16:05:24 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit cd44300742
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Dec 14 01:52:30 2021 +0300

    Fixes

commit c97ce1ef60
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Dec 14 01:40:50 2021 +0300

    Created virtual packages

commit 680a11ee2d
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 13 16:19:49 2021 +0300

    Added more files to core component for DEBIAN generator

commit 9b454a00de
Merge: 394e600fed 5124d95df7
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 13 15:30:55 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 394e600fed
Merge: 74504d011f 562d388ad9
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Dec 10 17:50:30 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 74504d011f
Merge: aabd31a3a5 0c68574aa7
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Dec 10 14:25:47 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit aabd31a3a5
Merge: 95bbc6f1e8 92760949bf
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Dec 8 18:06:01 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 95bbc6f1e8
Merge: b4b5149e84 f734e7679b
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Wed Dec 8 14:53:12 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit b4b5149e84
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Tue Dec 7 19:19:58 2021 +0300

    Last fixes

commit 311529ce50
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 6 19:47:35 2021 +0300

    Works

commit 746f91c8e8
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 6 18:42:54 2021 +0300

    Ntext iteration

commit c6d9b58b2a
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 6 14:29:53 2021 +0300

    Fixes after merge with master

commit 64c633d8fe
Merge: 29252a7d96 d27720777c
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Mon Dec 6 14:20:40 2021 +0300

    Merge remote-tracking branch 'upstream/master' into debian-packages

commit 29252a7d96
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Dec 5 20:50:19 2021 +0300

    Improvements

commit c13d7795ef
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Dec 5 19:45:01 2021 +0300

    Debian packages are generated

commit 61f36feb97
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sat Dec 4 22:00:11 2021 +0300

    Removed samples_deps, demo_scripts component

commit e67a46cc3e
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Dec 3 18:48:43 2021 +0300

    Start point for debian packages

commit 0ab57298f8
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Fri Dec 3 13:10:17 2021 +0300

    Export frontend_common as dev target

* Improvements

* Fixed aizre scripts

* Revert "Fixed MINOR version"

This reverts commit aa391a94bd6e488e27dbb830403e6531dcdc7a19.

* Try to parametrize linux.yml

* Tests

* Fixes

* Fixed commands

* Disabled test

* Fixes

* Fixed typo

* Try to enable debian packages on CI

* One more iteration

* Fixes

* Fixed tensorflow tests

* Explicit debian pipeline

* Fixes

* Skipped ov_core_read_model_from_memory
2022-08-12 00:07:21 +04:00
Roman Lyamin 73da7080a3 [GPU] Align StridedSlice parameters with ngraph (#12414) 2022-08-11 18:34:55 +04:00
e521f3a7a1 Update to add climits for ULLONG_MAX (#11958)
Avoid GCC compiling issue ‘ULLONG_MAX’ was not declared in this scope

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-08-11 17:00:48 +04:00
Artur Kulikowski ab9319ba94 Fix: Refreshing of places after subgraph extraction (#12494) 2022-08-11 16:55:06 +04:00
Roman Kazantsev f23fd569bc [TF FE] Refactor MaxPool operation translator for xj_feature model (#12485)
* [TF FE] Refactor MaxPool operation translator for xj_feature model

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Correct MaxPoolV2 since it has three inputs

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-11 14:13:23 +03:00
Jan Iwaszkiewicz 4dc713c7eb [SAMPLES] Fix flake issues in Python speech sample (#12514)
* Fix flake issues

* Add whitespace

* Add whitespaces in tests asserts
2022-08-11 15:00:27 +04:00
Eddy Kim b9457b3a31 [GPU] Get rid program_node reference from all primitive_impl classes (#12211)
* removed references to program_node

* removed member variables in primitive_impl

* removed redundant variables

* removed whithspace at the end of line

* added ctor for updated primitive_impls

* changed init_kernels to require kernels_cache

* removed program_node ref from custom_primitive

* added set_node_params to update the lastest status of program_node

* removed const from get_kernel
2022-08-11 14:14:21 +04:00
Roman Lyamin 85e2229a80 [GPU] Align Tile parameters with ngraph (#12345) 2022-08-11 14:08:22 +04:00
Roman Lyamin e98cdcf496 [GPU] Use int64_t type for axis in GatherElements (#12317) 2022-08-11 14:07:08 +04:00
Adrian Boguszewski fe4e875586 Fixed NameError: name 'ARCH' is not defined on Raspberry Pi (#12421) 2022-08-11 13:15:23 +04:00
Jan Iwaszkiewicz ed39903028 [PyOV] Fix error handling for Debug builds and extend configs for CI (#12417) 2022-08-11 10:53:54 +02:00
Mykhailo Hnap 175b00a346 Fixed DFTs documentations. (#11762) 2022-08-11 10:29:05 +02:00
Vladimir Paramuzov 5dc8d548e3 [GPU] Replace tensor with PartialShape in layout class. (#12305)
Refactored layouts comparison methods
2022-08-11 11:45:50 +04:00
Felix Dohyun Kim 48b7814871 [GPU] Pass activation unit tests on DG2 (#12227) 2022-08-11 14:32:44 +09:00
Luo Cheng 2c06c36366 [CPU] Default enable brgconv AVX512 (#12406) 2022-08-11 09:19:16 +04:00
Roman Baranchuk 3e648f2788 [CPU] NormalizeL2: uniform application of eps (#12077) 2022-08-11 06:11:00 +03:00
Tomasz Dołbniak 90463c1812 Undefined Behavior sanitizer fixes (#12333) 2022-08-10 22:35:56 +03:00
Vladimir Paramuzov 52b57fa860 [GPU] Use partial shape in some ops factories (#12353) 2022-08-10 19:51:55 +04:00
Artur Kulikowski 91ce7406ad Remove unused private methods from LSTMSequence (#12397) 2022-08-10 14:18:04 +03:00
Mateusz Tabaka c328db5aac Set dontReverseIndices to Gather if its indices come from NMS v9 (#12478)
Ticket: 86909
2022-08-10 11:31:39 +02:00
Min, Byungil 6e4a8b0d2e [GPU] Fix network loading time related to onednn engine creation (#12375)
+ Creation of onednn_engine in ocl_engine is changed to on-demand.
+ benchmark cache_dir option takes longer than cl_cache_dir env in loading network.
+ For clDNN execution, benchmark cache_dir created onednn_engine if just ONEDNN_ENABLE config is ON.

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-08-10 16:27:26 +09:00
Oleksandr Kramskyi 10ccf50ee0 [GPU] Add unit tests for activation functions for blocked layouts (#11948) 2022-08-10 16:18:29 +09:00
Roman Kazantsev e2080cd8a4 [TF FE] Implement conversion for Attention OCR model (#12428)
* [TF FE] Implement conversion for Attention OCR model

The following scope of work is done to make Attention OCR convertable:
1. Refactored translators for BiasAdd, Slice, and ArgMax operations. Add translation for StopGradient operation.
2. The previous traversing algorithm to compute topological sorted nodes list was incorrect. Now it is implemented based on topologically_sorted function from core/graph_util.hpp.
3. The unsupported data types are now preliminary converted to undefined type for the purpose of to have them cut off.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert workaround for support of non-frozen models

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Correct third-party dependencies

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply feedback from code-review

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-review feedback from PR12444

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply the rest of comments from the code-review

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-10 09:06:26 +03:00
Mateusz Tabaka 277666cdc6 Revert "Disable fusings_gpu/deconv_scale_activation_quantize_i8_eltwise_quantize_u8.basic/4 (#11777)" (#12400)
This reverts commit 4650ecd0b5.
2022-08-10 13:32:41 +09:00
yanlan song a81eca55c5 refine auto config and enable default config values (#12452)
* initial draft

Signed-off-by: fishbell <bell.song@intel.com>

* enable tests

Signed-off-by: fishbell <bell.song@intel.com>
2022-08-10 11:13:34 +08:00
Ilya Lavrenov 92d28a6ea5 Fixed MINOR version (#12475)
Tested via product-config
2022-08-09 19:25:23 +04:00
Felix Dohyun Kim ae1066a74c [GPU] Fix perf regression of #12113 (#12451)
* Disable fs_b_yx_fsv32 fusing for onednn case too
2022-08-09 17:12:16 +09:00
Taylor Yeonbok Lee 751337d428 W/A for compilation issue (#12346)
Previously INPUT/OUTPUT_SIZES was declared as an unnamed array macro.
However current ocl compiler deals with the value obtained from such an array non-constant, so that it results in a side effect in compiler optimization.
Here, a workaround for this issue is applied, i.e., declare the INPUT_OUTPUT_SIZES as a __const array instead of jit constants.
2022-08-09 08:42:32 +03:00
Min, Byungil f6a7d72a92 [GPU] resolve WA of using clDNN reduce (#11823)
+ Resolved layout mismatch of unreduced axes in creating onednn descriptor
+ Removed redundant reduce in ngraph

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-08-09 09:52:30 +09:00
Ilya Lavrenov db41a71ea9 Trying to fix CVS-85530 (#12455) 2022-08-08 23:06:54 +03:00
Vladimir Paramuzov 3b5cc98b1c [GPU] Replaced shared_ptr with const ref for impl_params (#12399) 2022-08-08 20:55:57 +03:00
Pawel Raasz 93dbffafd4 Add gtest_main_manifest target to avoid duplicates (#12438)
- Add gtest_main_manifest target as main application for google test using manifest file to ignore tests
- Use new target in frontends tests
2022-08-08 19:31:29 +02:00
Andrew Kwangwoong Park b03e903621 [GPU] Disable TCs for OVClassHeteroExecutableNetworkGetMetricTest (#12433)
Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-08-08 20:04:14 +04:00
Vladimir Paramuzov 2e92d33acc [GPU] Added format::adjust method. Minor refactoring (#12261) 2022-08-08 16:21:41 +04:00
Bartek Szmelczynski 1b5a1309cd [PyOV] Expose ConvertSequenceToTensorIterator transformation (#12362)
* check style CI

* remove space

* remove space

* expose ConvertSeqToTensorIterator transformation

* revert accidental changes

* fix namings

* revert adding transformation to MO
2022-08-08 13:34:28 +02:00
Ilya Lavrenov 6ca47b074d Library versions & made tests relocatable (#12416)
* Fixes for cases when TBB_DIR env var is set

* Don't use make in build_samples.sh script

* First version of Windows installer

* WIndows NSIS installer

* Improved version of debian packages

* Improvements

* Improvements

* Debian packages now look good

* Library versioning

* Fixed tests to run against debian packages

* Fixed frontend tests

* Fixed code style

* FIxed Windows

* Fixed python tests

* Fixed paths in tests

* fdvfdv

* Fixes

* USe versioning only for debian packages

* Relocatable tests

* Fixed

* Fixed all tests

* Fixed clang-format

* Fixed more tests

* Fixed some tests

* Absolute paths in .ci

* Fixes

* Added support of OpenCV 3.4

* Trying to fix gnaUnitTests
2022-08-08 13:59:24 +04:00
Felix Dohyun Kim b9126fe6ea [GPU] Fix convolution unit test for onednn (#12389)
* no goiyx to bfyx convert when using onednn
2022-08-08 18:13:33 +09:00
Roman Kazantsev 76e78c3400 [TF FE] Refactor translators for Conv2d and Conv3d (#12444)
It allows to convert CNN-Transformer model. Padding was previously incorrect.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-08 12:29:31 +04:00
Artur Kulikowski b3341defce Method Node::constant_fold uses new evaluate method with TensorVector (#12423)
* Method Node::constant_fold uses new evaluate method with TensorVector

* Simplify conditions for creating tensor

* Add test for evaluate with TensorVector

* Add line at EOF
2022-08-08 11:22:55 +03:00
Ekaterina Aidova c541208d43 [OMZ]: update submodule (#12447) 2022-08-08 11:04:36 +03:00
Krzysztof Czugala ef00498385 [MO] Result edges naming issue (#12154)
* the first approach to fixing the Result edge naming issue

* more robust approach, not depending on the split

* out_nodes_ids type change

* missing if clause
2022-08-08 10:55:00 +04:00
Roman Kazantsev 77b5adcc38 [TF FE] Fix StridedSlice translator for new_axis vector size longer input rank (#12442)
* [TF FE] Fix StridedSlice translator for new_axis vector longer input rank

Currently, new_axis vector is cut by input rank that is correct and leads to the loss of new axes.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Use int64 type in mask_to_vector function

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-08 10:47:59 +04:00
Ilya Churaev 1c51ca8995 Added map of mutex to CoreImpl (#12240)
* Added map of mutex to CoreImpl

* Added human readable error message

* Added global mutex for map of mutexes

* Lock mutex before addExtensionsUnsave
2022-08-08 08:04:15 +04:00
Xiping Yan 631cd160ee Add set_property without param device name. (#12354)
* Add get_property without device_name param.

Signed-off-by: xipingya <xiping.yan@intel.com>

* update

* fix build error

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* update test case for set/get property tbb

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove test_p, don't need parameter(deviceName).

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add get_property for python API.
Currently I don't know how to add relevant test case.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Don't need this function.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove return ov::Any, replace with throw a description.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add throw unsupported test for get_property without param deviceName.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add python test case for get_property.
Test usage:
$ python -m pytest ../src/bindings/python/tests/test_runtime/test_properties.py

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* change == to is

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
2022-08-08 11:25:59 +08:00
Tomasz Dołbniak 4e223c3d3e Models path adjustment in ONNX tests (#12426)
* TEST_MODEL_ZOO as absolute path

* ONNX test adjustments
2022-08-07 00:04:26 +03:00
Daniil Lyakhov edaa7f8e7e [POT] Precommit reference update (#12304)
* WIP graph tests fixing

* Fix collectiors graph tests

* remove debug code

* Fix rebase

* eps update for scales tests

* Outputs for some reference models was changed

* Sanity reference metrics update for VNNI CI hosts

* Unused hyperopt dependency which broke python3.6 support is commented

* Minor comments fixes
2022-08-05 17:50:45 +04:00
Mateusz Bencer 3d337ccbbb Extend RIC fusion transformation to support quantized weights (#12028) 2022-08-05 12:03:49 +02:00
Roman Kazantsev 141e1f8dd7 Implement workaround to convert non-frozen models using new TensorFlow frontend (#12386)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-05 12:26:36 +04:00
Inhyuk JoandWonju Lee 0592ba3e8c fix: incorrect fq type (#12234)
Co-authored-by: Wonju Lee <wonju.lee@intel.com>
2022-08-05 12:20:04 +04:00
Chen PeterandYuan Xu 67c5390f98 Update doc for AUTO and AUTO_BATCH (#12265)
* Update doc for AUTO and AUTO_BATCH

Signed-off-by: Chen Peter <peter.chen@intel.com>

* Update docs/OV_Runtime_UG/automatic_batching.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-08-04 15:12:49 +08:00
Egor Duplenskii a89c4cfc3f [LPT] Correct a check for whether model is quantized (#12364)
Look inside subgraph operations, such as TensorIterator, Loop, If, etc
2022-08-03 20:36:01 +04:00
Vladimir Paramuzov 3bd1002c88 [GPU] Added common impl for optionals (#12366) 2022-08-03 17:06:10 +04:00
Roman Kazantsev e0cef714d2 [MO, POT] Top up upper bounds for TensorFlow and NumPy modules in all requirement files (#12191)
* [MO] Relax MO upper-bound requirements for TensorFlow and NumPy

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Just debug numpy version

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Pin upper-bounds for NumPy and TensorFlow modules in all reqs files

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Update submodule dependency for open_model_zoo

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Install numpy module first

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Update NumPy version in POT setup.py

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Extend telemetry tests with a set of possible solutions for events

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix build issue

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Update NumPy module version for layer tests

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-03 16:18:41 +04:00
Tomasz Dołbniak 62f79c3222 GroupedGatherElimination short circuit (#12380)
* Disable GroupedGatherElimination in case of scalar inputs containing indices

* clang format
2022-08-03 13:47:22 +04:00
Felix Dohyun Kim 9d5e799c62 [GPU] Pass concat unit tests on DG2 (#12142)
* check optimized
* skip kernel compile when optimized
2022-08-03 17:30:41 +09:00
Karol Blaszczak 029f94fad9 DOCS-fix_maths_formatting (#12402)
mathematical equation formatting issue fixed in POT readme for range supervision
2022-08-03 09:54:16 +02:00
Paul Youngsoo AhnandTaylor Yeonbok Lee 03b0199521 [GPU] implement lru_cache(#12349) (#12349)
* Fix memory leak issue

Co-authored-by: Taylor Yeonbok Lee <taylor.lee@intel.com>

Co-authored-by: Taylor Yeonbok Lee <taylor.lee@intel.com>
2022-08-03 10:25:44 +04:00
Ilya Lavrenov b449481439 Improved OpenVINO debian packages (#12385) 2022-08-03 07:20:26 +04:00
Andrew Kwangwoong Park bb1560c05c Update pre_replace_deconv to support output_shape for transposed conv (#12335)
Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-08-03 10:22:42 +09:00
Wilson Seok 32182bd3ce [GPU]get data type of conv weights from node.weights() when network is internal (#12232)
* get data type of convolution weights from node.weights() when network is internal

* use only instance.node.weights().get_output_layout().data_type

* fix typo

* add unit test for the case
2022-08-03 03:49:53 +03:00
Andrew Kwangwoong Park da63a40521 [GPU] Add exception handling for calc_output_layout (#12393)
* Add exception handling for calc_output_layout

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Apply comment to error handler

Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-08-03 01:42:53 +03:00
Katarzyna Mitrus 674e1ce217 [AUGRU] AUGRUCell/Sequence op specification (#12162) 2022-08-02 20:54:07 +03:00
Egor Duplenskii c05e086717 Add debug log showing the result transformation callback (#12365) 2022-08-02 20:16:28 +03:00
Roman Kazantsev 2fa9b4d1f4 [TF FE] Implement translators for TensorFlow ConvBackpropInput operations (#12356)
* [TF FE] Implement ConvBackPropInput translators

Now the translators supports dynamic input_sizes attribute and different padding modes
including EXPLICIT mode

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix clang-style issue

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix code-style issue

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix code-style issue

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-review feedback and fix build issues

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-review feedback: check for input size

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix retrieving explicit_padding attribute

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix code style

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-02 14:56:53 +03:00
Mateusz Bencer 73689845a5 Decompose NormalizeL2 on GPU (#12361) 2022-08-02 13:11:32 +02:00
Pawel RaaszandIlya Churaev 75db2bdc8c Use static pointers to frontend libraries (#12235)
* Add static shared_objects map in FEM
- add unit tests for frontend lib close
- not use static FEM in ie network reader
- add main for gtest which can use manifest file to filter tests

* Move library pointers map to manger impl
- add to manger impl method to make frontend from loaded plugin

* Add shutdown function to ov namespace
it cleans the static resources

* Revert changes related to linking mian for tests

* Add python binding to ov::openvino_shutdown

* Renamed shutdown method and added to legacy C++ API

(cherry picked from commit a8395bd207)

* Added C bindings

(cherry picked from commit d2c9ddc263)

* Move frontend lib close test to ieFunctTest
- moved to not introduced new test binary and modification on CI
  the frontend tests use dynamic linked frontend lib which is load
  on test application start and mask lib close tests
- remove gtest_main_manifest as not required now
- add ov::shutdown test to expect application crash

* Fix lib_close test
- remove not get_disabled_tests from utils
- revert CMake file formating

* Fix get model path in lib close tests

* Skip frontend lib close tests if static lib build

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-08-02 10:28:16 +04:00
Andrew Kwangwoong Park 67dcb05251 [GPU] Remove dependency to typed_program_node from calc_output_layout (#12378)
Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-08-02 08:34:15 +04:00
Vladimir Paramuzov 075b833a7a [GPU] added is_dynamic methods to program_node and primitive_inst. Minor refactoring (#12322) 2022-08-01 09:54:20 +04:00
Vladimir Paramuzov 88bbad4a5d [GPU] ScatterUpdate axis alignment (#12233) 2022-07-28 16:51:36 +04:00
Nadezhda Ageeva 67173a74d4 [GNA] Replace GNA SoftSign by opset9 SoftSign (#12302)
* Replace GNA SoftSign by opset9 SoftSign

* v9 -> opset9
2022-07-28 16:24:56 +04:00
Bartek SzmelczynskiandJan Iwaszkiewicz 9bd02f76ab [PyOV] Enable type casters (#12204)
* add type caster for ov::Layout, enable load method to take pathlibs.Path as arugment

* fix typo

* fix style

* add missing blank line

* add common function to check if py::object is either Path or string

* fix style

* Update src/bindings/python/src/pyopenvino/graph/preprocess/pre_post_process.hpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* add tests, fix style, remove pointer argument overload

* fix style

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-07-28 11:24:34 +02:00
Alina Kladieva 9b3e47aaf3 Bump OMZ submodule to fix pip-conflicts ssues (#12320) 2022-07-28 10:15:34 +02:00
Roman Lyamin 25224eb2c2 [GPU] Use int64_t type for axis in ScatterElementsUpdate (#12323) 2022-07-28 09:17:29 +04:00
Roman Lyamin 31e3c11291 [GPU] Use int64_t type for axis in CumSum (#12306) 2022-07-28 09:16:21 +04:00
Roman Lyamin 5e52d519ea [GPU] Align TopK parameters with ngraph (#12278) 2022-07-28 09:15:41 +04:00
Maxim VafinandChetverikov 25b0013b8f [MO] Fix broken port numbering for Constant operations (#12318)
* Restore inputs order in IR Reader

* Fix broken port numbering for Constant operations

Co-authored-by: Chetverikov <anton.chetverikov@intel.com>
2022-07-27 21:57:33 +02:00
Roman Kazantsev 4176608f0b [TF FE] Fix conversion of NetVLAD model (#12328)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-07-27 22:47:36 +04:00
River Li 0ef4ccb86f [CC]Fix CC issue for transformation (#12292)
* Revert "Fixed 3 naming issue"

This reverts commit a92d3cfff5.

* Revert "Fix CC issues for transformation and snippets"

This reverts commit d08a3f5aac.

* Fix NGRAPH_PASS_CALLBACK issue to make it can work

* Fix matcher name missing issue
2022-07-27 16:17:53 +04:00
Taylor Yeonbok Lee 361ca2078d [GPU] Fix get_default_params & choose_impl not to dependent on program_node (#12239)
* Getting rid of dependency from get_default_param for typed_program_node

* Fix bug

* Enable two pathes to call choose_impl / does_possible_impl_exists / does_an_impl_exists to be able to use given layout

* Replaced impl factory API to get kernel_impl_param's pointer

* Update for recently added primitives

* Add and apply optional_layout

* fix kernel_param_impl to be handled as unique_ptr

* Applied review comments

* Fix rebase conflict

* Fix CI error
2022-07-27 14:36:53 +04:00
Ilya Lavrenov 101e1ea5ad simple Windows installer POC (#12308)
* Fixes for cases when TBB_DIR env var is set

* Don't use make in build_samples.sh script

* First version of Windows installer

* WIndows NSIS installer
2022-07-27 14:04:22 +04:00
Sun XiaoxiaIlya LavrenovShen, Wanglei <wanglei.shen@intel.com>
1dd13e2cf6 Xiaoxia/onetbb old version (#12303)
* support oneTBB old version

* fix oneTBB version mismatch issues

* fix clang issue

* add 'tbb' path to setupvars.sh and OpenVINOConfig.cmake.in

* Update scripts/setupvars/setupvars.sh

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
2022-07-27 16:49:53 +08:00
Szymon Irzabek 761a6d10d0 [GNA] Add missing support for batch normalization with weights broadcasting. Add unit tests. (#12301) 2022-07-27 12:14:09 +04:00
almilosz d7cf585485 [PyOV] Test refactoring (#12248) 2022-07-27 08:44:10 +02:00
Ilya Churaev 4df5a104f3 Investigate GNA tests (#12267)
* Test commit

* Revert "Disable loading of v7 reader for new IR versions (#12252)"

This reverts commit cb6ca7bb89.

* Revert "Test commit"

This reverts commit 977b83f2ba.
2022-07-27 09:26:13 +04:00
Ilya Lavrenov 14e8e3259d Fixed build_samples.sh not to call setupvars.sh for Debian package case (#12309) 2022-07-26 23:17:41 +04:00
Sebastian Golebiewski 6227123d21 Porting to master - update -readme for CPP and Python benchmark (#12245)
Porting #11961
2022-07-26 14:12:08 +02:00
Chenhu Wang 7d5fbebe27 [DOC] [CPU] Proofreading for grammatical and stylistic corrections (#12288) 2022-07-26 16:11:32 +04:00
Roman Lyamin e2da32721b [GPU] Use int64_t type for axis in softmax (#12287) 2022-07-26 13:21:43 +04:00
Pawel Raasz 72509ec041 Add const fold check in operators instead pass (#12189)
* Add const fold check in operators instead pass
- refactor constant fold pass to using ov instead of ngraph
- add constant_folding_is_disabled overload for raw pointer

* Remove Reshape from skip const inferences
in legacy graph transformer

* Const fold test for modified operators
2022-07-26 11:12:23 +02:00
Yuan Xu 04cbe34801 Update error message on pypi.org (#12243)
* Add Overview page

* Revert "Add Overview page"

* fix references

* update links

* update the wording to be more clear

* add the error message about Visual studio back

* update links to static html links of 2022.2

* port changes to master

* update description
2022-07-26 06:33:07 +00:00
Roman Kazantsev 914d79b7e6 [TF FE] Implement LinSpace and BatchMatMul translators (#12271)
* [TF FE] Implement LinSpace and BatchMatMul translators

It helps to convert STN model (from e2e testing) using TensorFlow frontend

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix BatchMatMul translator

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix LinSpace operation translator

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-review feedback

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-style rules

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code style rules

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-07-26 01:31:37 +03:00
Evgenya Stepyreva 00d34c5f1d Remove Interpolate Transposes as it does nothing (#12205) 2022-07-25 19:26:55 +00:00
Mateusz TabakaandMateusz Bencer 270051ebce [CPU] Add RDFT and IRDFT operators (#12099)
* [CPU] Add RDFT and IRDFT operators

Tickets: 79178 and 79192

Co-authored-by: Mateusz Bencer <mateusz.bencer@intel.com>
2022-07-25 19:23:27 +02:00
Irina Efode 862aebce71 Update summarize.py (#12175) 2022-07-25 15:34:28 +03:00
Vladimir Paramuzov 87b73b4508 [GPU] Get rid of direct layout::size field usages (#12172)
* [GPU] Get rid of direct layout::size field usages to simplify further replacement

* [GPU] Enabled -Wall and resolved compiler complaints
2022-07-25 16:31:01 +04:00
Ilya Lavrenov 36df7f51ae Fixes for cases when TBB_DIR env var is set (#12266)
* Fixes for cases when TBB_DIR env var is set

* Don't use make in build_samples.sh script
2022-07-24 15:13:00 +04:00
Ilya Churaev cb6ca7bb89 Disable loading of v7 reader for new IR versions (#12252)
* Disable loading of v7 reader for new IR versions

* Try to fix CI

* Fixed PDPD frontend

* Fixed error message creation
2022-07-22 23:34:04 +04:00
Ilya Lavrenov 926a87e7eb Install user provided TBB as well (#12260) 2022-07-22 22:36:58 +04:00
Ilya Churaev 811a483acb Fixed newAPI for case if core was removed (#12207)
* Fixed newAPI for case if core was removed

* Fixed code style

* Fixed typo

* Use new API by default

* Create core with template plugin

* Added doxygen comment
2022-07-22 16:46:08 +03:00
Roman Kazantsev 23e513d679 [MO] Fix Mul fusion with dynamic dimension (#12253)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-07-22 14:01:42 +04:00
Xiping Yan 9519461453 Move GNU build flag to "cmake/developer_package/compile_flags/sdl.cmake" (#12143)
Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
2022-07-22 10:13:13 +04:00
Ilya Lavrenov 564b25a71f Fixed WIndows backslash paths (#12250) 2022-07-22 01:34:46 +03:00
Konstantin Beluchenko ed65d199bb [GPU] ROIAlign v9 support (#11899)
* ROIAlign v9 support

* Code changes after review1

* Code changes after review2

* fix of single layer test for Windows

* Since PR #12043 we don't need strong include order of primitive_base.hpp and
impls/implementation map.hpp anymore

* Code changes after review3

* Code changes after review4
2022-07-21 11:52:32 +02:00
Roman Kazantsev 598975fb63 [TF FE] Handle optional attributes for Convolutional operations (#12230)
* [TF FE] Handle optional attributes for Convolutional operations

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-style rules

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-07-21 09:30:13 +02:00
Marcin Kusmierski 3eafa653f3 [GNA] Fix accuracy degradation in compact mode (#12150) 2022-07-20 12:53:45 +02:00
fdae2eb8e3 [GNA] Fixed convolutions with shared transpose and un-fuse-able activations after Convolution filter (Renew PR11373) (#12152)
* Commits from PR11373:
Fixed handling of transpose after convolution
[GNA] Fixed calculation of dimensions for ConvolutionFilter and PWL primitives
[GNA] Fixed coverity error and failed tests

* Apply comments

* Update src/plugins/intel_gna/gna_graph_compiler.cpp

Co-authored-by: Marcin Kusmierski <marcin.kusmierski@intel.com>

* Update src/plugins/intel_gna/gna_graph_compiler.cpp

Co-authored-by: Marcin Kusmierski <marcin.kusmierski@intel.com>

* Rollback names

* Separate test data

* Move coverity issue to separate request

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>
Co-authored-by: Marcin Kusmierski <marcin.kusmierski@intel.com>
2022-07-20 14:50:07 +04:00
Egor Duplenskii 3cec746a64 [CPU] Explicitly enable DNNL_VERBOSE only in case of CPU_DEBUG_CAPS (#12108) 2022-07-20 14:08:24 +04:00
Chen Xu ee9127e10e [CPU] Fixed heap sort bug regarding heapifying (#12221) 2022-07-20 13:14:08 +04:00
Roman Kazantsev c332a162ff [MO] Fix TopK partial shape inference with dynamic K (#12212)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-07-20 09:16:24 +02:00
River Li 9a3c969cb7 Restore FEM to be static instance (#12219)
* Restore FEM to be static instance

* Restore frontend manager in ie_read_network.cpp
2022-07-20 08:09:31 +03:00
Ilya Lavrenov 00fe7be00f Use system pugixml where it's possible (#12218) 2022-07-20 08:53:17 +04:00
Chenhu Wang 43b3fff708 [DOC][CPU] Denormals optimization doc (#12127) 2022-07-20 04:35:45 +03:00
Jan IwaszkiewiczandKarol Blaszczak 06019c442f [PyOV][DOCS] Python API contribution and developer guide (#12145)
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-07-19 16:25:58 +02:00
Irina Efode 5ea8186888 [IE TESTS][CONFORMANCE] Fix OpImplCheck Precision (#12148) 2022-07-19 12:35:12 +04:00
Artur Kulikowski 6a795936b2 ONNX: Pass name to the InputEdge (#12177) 2022-07-19 08:52:54 +02:00
Xiping YanandChen Peter 6966af3ced Xp/benchmark app ocl (#12112)
* Add some tip description about enable OpenCL for benchmark_app.

Signed-off-by: xipingya <xiping.yan@intel.com>

* Export doesn't work, we need to add -Dopencl_root_hints=[PATH]/OpenCL-CLHPP/include to cmake command.

Signed-off-by: xipingya <xiping.yan@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-07-19 14:43:59 +08:00
Ilya Lavrenov 3c0b17f108 Debian packages: base version (#11387) 2022-07-19 09:07:26 +03:00
Ilya Lavrenov 6307fdc77b Fixes for system libraries pugixml, tbb (#12206)
* Fixes for system libraries pugixml, tbb

* Added more dependencies for core
2022-07-19 08:52:06 +04:00
Evgenya Stepyreva 1535be3c16 TI repetative shape inference (#12178) 2022-07-18 18:47:15 +03:00
Jade Cho 7b03520395 Check memory allocation size of network graph (#11911)
+ Add exception handling for out of resource
2022-07-18 20:39:21 +09:00
Sungeun Kim 3bd475ad26 [GPU] integrate persistent caching for onednn (#12094)
* integrate persistant caching for onednn
* add api to save/load binary file.
2022-07-18 20:13:46 +09:00
Katarzyna Mitrus 4e379d63eb Update opset.md with opset9 (#12169) 2022-07-18 11:01:45 +02:00
Tomasz Dołbniak cc3ec0c50a Update of naming of the last operators in the graph (#12139) 2022-07-18 07:34:14 +02:00
Taylor Yeonbok Leeandsi-eun-kim fae113f7f5 [GPU] optimize permute_ref (#12159)
* change memory access pattern of fsv layout for permute

* Fix permute_ref to process F first only when (bf...) => (b...f)

* Refactor

Co-authored-by: si-eun-kim <sieun.kim@intel.com>
2022-07-18 10:41:45 +09:00
Ilya Lavrenov 6514c213c3 Ubuntu 22.04 support (#11472)
* Ubuntu 22.04 support

* Try to fix setuptools

* Try to fix arm

* Try to add more packages

* Test 2

* test 3

* Turn dependnecies download off

* Fix

* Fix

* Fix

* Fix

* Fix

* test

* Fix

* restore eveything

* Try to restore

* Restore install_openvino_dependencies.sh

* clean-up raspbian

* New if conditions

* Removed excess dependencies

* COsmetic chnages

* Removed autools

* Removed libgkt-2

* Added HDLDL libs

* Test

* Removed some dependnecies

* Better fixes

* Removed some dependencies

* Fixed compilation

* Removed all extra
2022-07-17 11:10:02 +04:00
Yuan Xu 09f2b5062b Update pypi.org pages (#12170)
* fix references

* update links

* update the wording to be more clear

* add the error message about Visual studio back

* update links to static html links of 2022.2
2022-07-15 16:27:52 +00:00
Kelvin Choi 68bda59c20 [GPU] Add reorder from i32 to f32 for max-pooling/conv/fc which doesn't support i32 (#12137) 2022-07-15 23:24:37 +09:00
Przemyslaw Wysocki 603b56ec7f [MO] Fix output shape bug in GatherNDDecomposition (#12110) 2022-07-15 15:37:57 +02:00
Mateusz Bencer e8310f7e0b Fix IRDFT for case when axes are in reversed order (#12155) 2022-07-15 13:22:52 +03:00
Eddy Kim dc7efafd7c Revert "[GPU] Pass activation unit tests on DG2 (#11969)" (#12167)
This reverts commit 3334e8933c.
2022-07-15 12:58:09 +03:00
Bonhun Koo a230eebcc1 [POT] optimizer - update usage of IndexSampler (#12146) 2022-07-15 09:31:29 +09:00
Tetiana Gubanova 35a31a329d [GPU] Implement NMS-9 operation (#11890)
* Fix GPU NonMaxSuppression implementation

* Introduce Nms9 single layer tests

* Adapt internal NMS and GPU implementation for NMS9 implementation

* Adapt CPU implementation in GPU for NMS9

* Add blocked layouts support to NMS

* Add unit tests for blocked formats for NMS

* Fix boxes groups size for the small shapes

* Use ocl implementation for blocked layout input

* Fix templates typedefs to pass win build

* Fix second output to set data in correct format
2022-07-14 22:56:15 +09:00
sheng.gui@intel.com b67aeb881c [ONNX] Add operator com.microsoft.Fusedgemm support into frontend/onnx (#11878) 2022-07-14 14:35:49 +02:00
zihan wu 2f1ad1a54f polish onednn cc readme (#12114) 2022-07-14 14:25:16 +04:00
Luo Cheng 23b1b76457 [CPU] revert pr 11990 and enable brgconv avx512 on SPR by default (#12105) 2022-07-14 14:11:21 +04:00
RICKIE777andShen, Wanglei <wanglei.shen@intel.com> 64c0af3568 [PYTHON][BENCHMARK_APP] Add BGR covert to Gray function (#12118)
* Fix the JIRA 80700 issue. Add BGR covert to Gray function

* Support NCHW and NHWC

Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
2022-07-14 11:10:02 +02:00
Andrew Kwangwoong Park dc374ca1bf Enable tensor offset to GemmKernelRef for input padding support (#12133)
Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-07-14 06:22:36 +03:00
Min, Byungil 99dbb35835 [GPU] modify fusing condition for reduce (#12119)
Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-07-14 11:04:14 +09:00
Felix Dohyun Kim 3c1ed2ce1f [GPU] Pass eltwise unit tests on DG2 (#12113)
* check fusion in onednn too
2022-07-14 10:15:57 +09:00
Krzysztof Bruniecki 9d0e623af6 [GNA] Add support for future devices with relaxed capabilities (#12000) 2022-07-13 14:18:34 +02:00
Vladimir Paramuzov a185299ba4 [GPU] Simplify namespaces in the plugin part (#12121) 2022-07-13 15:47:40 +04:00
Szymon Irzabek ed812bdf68 [GNA] Reduce impact of sf propagation fix (#12115) 2022-07-13 11:59:44 +02:00
Tomasz Dołbniak dd2fa7f5c2 Zlib update to 1.12.2 (#12128) 2022-07-13 11:11:26 +02:00
Tingqian Li 52434b7ea0 [CPU] Move cpu_dump_check into CPU plugin's tools folder (#12100)
* Move cpu_dump_check into CPU plugin's tools folder

* remove cpu from names

* Update README
2022-07-13 13:39:08 +08:00
Felix Dohyun Kim d032fd3abd [GPU] Pass reduce unit tests on DG2 (#12086)
* scale to eltwise
2022-07-12 21:55:58 +09:00
Felix Dohyun Kim 1d7b595548 [GPU] Pass lrn unit tests on DG2 (#11986) 2022-07-12 16:53:36 +09:00
Felix Dohyun Kim f624efba08 [GPU] Pass Resample unit tests on DG2 (#12052)
* fix validate_fusings_gpu error
* fix biased scale testcase
2022-07-12 16:51:32 +09:00
Tomasz Dołbniak 8811a88fc5 Virtual destructor for the base class (#12102) 2022-07-12 10:40:50 +03:00
Karol Blaszczak e5673c2d2d DOCS-code-reference-css-style-change (#12109)
code formatting changed from blue to black, to distinguish from links
2022-07-12 15:15:47 +08:00
Marcin Kusmierski 7a0c20ab75 [GNA] Add automatic model splitting for compiled graphs (#12001) 2022-07-12 09:01:24 +02:00
Yaroslav TorzukandOleksii Khovan a250634b75 [GPU] Assign-6 and ReadValue-6 (#11780)
* Add methods for access to varables information in Program class

* add ReadValue and Assign primitives

* ReadValue and Assign implementations

* Implementation of memory states allocation

* Add output existance check in primitive_inst to avoid crashes if output is set during execution

* Add memory states management functionality in network component

* Integration of memory states feature in inference request component

* Exclude constant path for read_value and assign nodes in cldnn transformations

* Improve memory states test to run on a single inference request

* unit tests for ReadValue and Assign

* single-layer test for ReadValue and Assign

* Add QueryState API implementation

* Add memory state test which covers dynamic batch case

Co-authored-by: Oleksii Khovan <okhovan@lohika.com>
2022-07-12 11:45:53 +09:00
RICKIE777 60e31ad8c3 Fix the uninitialized value issue found in Coverity Scan (#12098) 2022-07-12 10:01:14 +08:00
Szymon Irzabek 3232c90a13 GNA SF propagation fix (#11806) 2022-07-11 12:27:02 +02:00
Marcin Kusmierski 3efda5067b [SAMPLES] Remove unused commandline arguments for speech_sample (#11892) 2022-07-11 12:23:32 +02:00
avoskoboinyk-lohikaandChenhu Wang bb82f43e22 NonZero operation: uncomment tests since they can be passed now (#11548)
* NonZero operation: uncomment tests since they can be passed now

# Conflicts:
#	src/tests/functional/plugin/cpu/shared_tests_instances/skip_tests_config.cpp

* Unbreak tests once more by changing base class from LayerTestsCommon to SubgraphBaseTest

* Unbreak compilation / style

* Add test case for cache

Co-authored-by: Chenhu Wang <chenhu.wang@intel.com>

* Increase zeroes count for NonZero tests

* Correct the change

* Remove my previous changes and add dynamic shapes / repeatable shapes into the correct file

Co-authored-by: Chenhu Wang <chenhu.wang@intel.com>
2022-07-11 08:34:11 +03:00
Bonhun Koo b371e74735 [hotfix] pytest error of act_act example (#12093)
* [hotfix] pytest error of act_act example

* remove needless import
2022-07-11 12:56:32 +09:00
RICKIE777 bbf54e01e7 [C API][COVERITY SCAN]Fix the TAINTED_SCALAR and DEADCODE in Coverity Scan (#12087)
* Fix the Coverity scan issues

* Fix the insecure data handling (TAINTED_SCALAR) issue found in coverity scan
2022-07-10 17:21:03 +08:00
Wang, YangandChen Peter 0c7282a1f5 setting tput as the default performance mode only for AUTO, excluding MULTI plugin. (#12083)
Signed-off-by: ywang2 <yang4.wang@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-07-08 13:37:30 +00:00
Paul Youngsoo Ahn 7fe3ab0328 [GPU] Fix gather data type issue (#12085) (#12085) 2022-07-08 21:18:28 +09:00
Eddy Kim 73381e976e updated to fuse activation in eltwise_vload8 (#12084) 2022-07-08 12:15:10 +00:00
b1dcb276da Proofreading-OV-Runtime (#11658)
* Update docs/OV_Runtime_UG/protecting_model_guide.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/protecting_model_guide.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/protecting_model_guide.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/protecting_model_guide.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/protecting_model_guide.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/protecting_model_guide.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/ARM_CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/ARM_CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/ARM_CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/ARM_CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/ARM_CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/ARM_CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/optimization_guide/dldt_deployment_optimization_common.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/Device_Plugins.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GPU_RemoteTensor_API.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/HDDL.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/HDDL.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/HDDL.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/MYRIAD.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/MYRIAD.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/MYRIAD.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/ov_dynamic_shapes.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/config_properties.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/config_properties.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/preprocessing_details.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/preprocessing_details.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/preprocessing_details.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/preprocessing_details.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/performance_hints.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/deployment/deployment-manager-tool.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Apply suggestions from code review

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/preprocessing_details.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/performance_hints.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/preprocessing_details.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/performance_hints.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/OV_Runtime_UG/deployment/deployment-manager-tool.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Apply suggestions from code review

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Apply suggestions from code review

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Update ref links

* Update Getting_performance_numbers.md

* Update deployment_intro.md

* Update preprocessing_details.md

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update tools/pot/openvino/tools/pot/algorithms/quantization/default/README.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

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

* Update docs/OV_Runtime_UG/automatic_batching.md

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update docs/OV_Runtime_UG/deployment/deployment-manager-tool.md

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update tools/pot/openvino/tools/pot/algorithms/quantization/default/README.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

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

* Update automatic_batching.md

* Update docs/OV_Runtime_UG/automatic_batching.md

* Update docs/OV_Runtime_UG/ShapeInference.md

* Update deployment-manager-tool.md

* Update deployment-manager-tool.md

* Update docs/OV_Runtime_UG/deployment/deployment-manager-tool.md

* Update automatic_batching.md

* Update automatic_batching.md

* Update docs/OV_Runtime_UG/ShapeInference.md

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

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Update integrate_with_your_application.md

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

* Apply suggestions from code review

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

* Update docs/OV_Runtime_UG/model_representation.md

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

* Update docs/OV_Runtime_UG/model_representation.md

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

* Update integrate_with_your_application.md

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update model_representation.md

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update integrate_with_your_application.md

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update Additional_Optimizations.md

Removing redundant information.

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update Additional_Optimizations.md

* Apply suggestions from code review

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

* Update Additional_Optimizations.md

* Update docs/OV_Runtime_UG/model_representation.md

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

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update docs/OV_Runtime_UG/layout_overview.md

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

* Update model_representation.md

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update tools/pot/docs/SaturationIssue.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update tools/pot/openvino/tools/pot/algorithms/quantization/accuracy_aware/README.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update tools/pot/docs/SaturationIssue.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update tools/pot/docs/SaturationIssue.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update tools/pot/docs/SaturationIssue.md

* Update tools/pot/docs/SaturationIssue.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update README.md

* Update README.md

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update tools/pot/docs/Introduction.md

* Update tools/pot/docs/AccuracyAwareQuantizationUsage.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Removing one-liners

Removing introductory sentences from 'Supported Features' sections.

* Update docs/OV_Runtime_UG/openvino_intro.md

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

* Update docs/benchmarks/performance_benchmarks_ovms.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update tools/pot/docs/Introduction.md

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update tools/pot/docs/DefaultQuantizationUsage.md

* Update tools/pot/docs/BestPractices.md

* Update tools/pot/docs/BestPractices.md

* Update tools/pot/docs/AccuracyAwareQuantizationUsage.md

* Update docs/optimization_guide/model_optimization_guide.md

* Update docs/optimization_guide/dldt_deployment_optimization_guide.md

* Update docs/OV_Runtime_UG/supported_plugins/config_properties.md

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

* Update docs/OV_Runtime_UG/preprocessing_usecase_save.md

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
Co-authored-by: msmykx <101244365+msmykx-intel@users.noreply.github.com>
Co-authored-by: Piotr Milewski <piotr.milewski@intel.com>
2022-07-08 13:34:45 +02:00
Felix Dohyun Kim 6283ab2fde [GPU] Pass convolution unit tests on DG2 (#12056)
* scale -> eltwise
2022-07-08 17:03:05 +09:00
Felix Dohyun Kim f9e5499f8e init (#11985) 2022-07-08 16:52:44 +09:00
Eddy Kim 8d852b4aee fixed 'is_rotating_except_batch' to follow the IE order (#12050) 2022-07-08 15:36:17 +09:00
Min, Byungil b5c058738d Update module version to remove vulnerability (#12054) 2022-07-08 08:28:48 +02:00
Tingqian Liandzihan wu bc34fa0934 [CPU] Re-enable Selective build on oneDNN2.6 (#12074)
* update submodule onednn26 selective build

* onednn code review

* merge onednn selective build

* fix bug in cc onednn26

Co-authored-by: zihan wu <zihan.wu@intel.com>
2022-07-08 03:48:12 +00:00
Taylor Yeonbok Lee 2500ad120e Revert the mmap-ed constants to the original buffer load (#12075) 2022-07-08 11:51:53 +09:00
guozhong wang ab8c2f6fd8 change gpunum to 3 (#12073) 2022-07-07 18:15:27 +03:00
Andrew Kwangwoong Park 32937ab7ca Add Debug Config for maximum kernels per batch (#12068)
Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-07-07 14:26:51 +03:00
guozhong wang cd6c7da91c AUTO/MULTI supports ov::auto_batch_timeout (#12023)
* add auto_batch_timeout for MULTI and AUTO

* fix clang-format for ie_core.cpp

* fix coredump

* simplify insert key to deviceConfig logic and parseDeviceNameIntoConfig() check "AUTO" and "AUTO:" only

* check config auto_batch_timeout

* add CleanUpInIECore()

* fix clang-format for ie_core.cpp
2022-07-07 10:33:04 +00:00
Bonhun Koo d5e8d1d968 Nm/outputs quantization scheme (#12035)
* [POT] outputs quantization scheme

* [POT] remove needless blank line

* add a range_estimator config for outputs

* Add fq_config_priority
2022-07-07 16:08:55 +09:00
Luwei Zhou 0224e6a067 Fix the deconv depwise post ops issue on AVX2 and AVX512 and enable deconv test (#11870)
* Fix the deconv fused issue on AVX2 and AVX512 and enable deconv test

* Keep GroupDeconv BF16 test cases still disabled.

* Update to also excluding nightly

* Update onednn submodule.

* Update onednn submodule

* Update onednn submodule.

* Update the ONDENN submodule

* Update the ONEDNN commit.

* Update with merged onednn commit.
2022-07-07 13:26:44 +08:00
RICKIE777andRiver Li 70d967ffb6 [C API] Enable hello_nv12_input_classification samples for C APIs of OV API 2.0 (#12031)
* Define new ppp API for nv12

* Add new ppp API function

* Add new ppp API unit test

* Add hello nv12 input classification ov

* Define new ppp API for nv12

* Add new ppp API function

* Add new ppp API unit test

* Add hello nv12 input classification ov

* Fix the clang -formate issue

* Modify the function called is_supported_image_size

* Update code as suggested

* Add hello_nv12_input_classification e2e test

* clang-format openvinotoolkit

* Fix the doc error in CI

Co-authored-by: River Li <river.li@intel.com>
2022-07-07 11:36:55 +08:00
Xiping YanandChen Peter e8bd70f273 Add build flag for GCC. (#12017)
Some compiler flags restrict the compiler from making arbitrary decisions while handling undefined C/C++ behaviors.

Therefore they can be used to fix some issues caused by undefined behavior.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-07-07 10:02:04 +08:00
River Li b80f724414 Fix rnn cache missing issue (#12053) 2022-07-06 11:20:27 +00:00
Kelvin Choi 63ab516c85 [GPU] Delete previous inputs by numbered new name for batching (#12045) 2022-07-06 16:32:14 +09:00
Bonhun Koo 1901087677 [POT] GNA - prevent an overflow in eltwise layer (#12048) 2022-07-06 16:15:13 +09:00
yanlan songandChen Peter e718e51a85 Bell/fix lifecycle coredump (#11934)
* enable binder schedule

Signed-off-by: fishbell <bell.song@intel.com>

* add cases

Signed-off-by: fishbell <bell.song@intel.com>

* refine

Signed-off-by: fishbell <bell.song@intel.com>

* fix build failure

Signed-off-by: fishbell <bell.song@intel.com>

* fix coredump

Signed-off-by: fishbell <bell.song@intel.com>

* do not return hw requests directly, potential issues

Signed-off-by: fishbell <bell.song@intel.com>

* fix bug

Signed-off-by: fishbell <bell.song@intel.com>

typo

Signed-off-by: fishbell <bell.song@intel.com>

* optimize memory

Signed-off-by: fishbell <bell.song@intel.com>

* hold the hw plugin

Signed-off-by: fishbell <bell.song@intel.com>

* Revert "hold the hw plugin"

This reverts commit 5b537f5b6f.

* apply the fix

Signed-off-by: fishbell <bell.song@intel.com>

apply the fix

Signed-off-by: fishbell <bell.song@intel.com>

* hold the plugin library for destructing tensor

Signed-off-by: fishbell <bell.song@intel.com>

* solve the virtuual plugin Getblob life cycle issue

Signed-off-by: fishbell <bell.song@intel.com>

* remove log

Signed-off-by: fishbell <bell.song@intel.com>

* refine interface

Signed-off-by: fishbell <bell.song@intel.com>

* fix build failure

Signed-off-by: fishbell <bell.song@intel.com>

* fix for hetero plugin

Signed-off-by: fishbell <bell.song@intel.com>

* replace with vector

* enable life time tests for virtual plugins

Signed-off-by: fishbell <bell.song@intel.com>

rework cases due to vpux build issue

Signed-off-by: fishbell <bell.song@intel.com>

disable context test for now

Signed-off-by: fishbell <bell.song@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-07-06 05:21:17 +00:00
opoluektov-lohika 7a50ce2491 Coverity: fix issue with uninitialized members (#11996) 2022-07-05 23:55:53 +00:00
Mateusz Bencer 43c0c964b8 Added FoldSubgraphEmptyInputs transformation (#11957) 2022-07-05 19:38:46 +02:00
Maciej SmykandHelena Kloosterman d91a06ac08 Apache MXNet rename (#11871)
* MXNet

MXNet renaming into Apache MXNet

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* MXNet 2

* MXNet 3

* Revert "MXNet 3"

This reverts commit 046c25239d.

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
2022-07-05 15:04:03 +02:00
Karol BlaszczakandYuan Xu f635621aab DOCS-return ONNX and MO_techniques articles (#11805)
* DOCS-return ONNX and MO_techniques articles

ONNX support article revised and changed to local tabs

* Update docs/MO_DG/prepare_model/Model_Optimization_Techniques.md

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

* Update docs/OV_Runtime_UG/ONNX_Support.md

* Update docs/OV_Runtime_UG/ONNX_Support.md

* Update docs/OV_Runtime_UG/ONNX_Support.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-07-05 15:03:26 +02:00
Pawel Raasz e1bcfeca9d Add SoftSign to CPU plugin (#12034) 2022-07-05 13:34:42 +02:00
River LiandShen, Wanglei <wanglei.shen@intel.com> 177d977449 oneTBB support terminate tbb thread (#11972)
Change-Id: Iea618b72db193bd48bfbf0dba3586dcdb139c43f

Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
2022-07-05 14:11:10 +03:00
Bartek Szmelczynski 82f691c38b [ONNX FE] Extend ONNX FE NMS-9 (#11790)
* update ONNX FE NMS to v9

* remove reshaping dynamic shapes

* fix style

* xfail two MSFT models
2022-07-05 12:10:29 +02:00
Sungeun Kim 654105d567 Set reorder format in reorder_inputs pass (#11992)
* Set reorder format in reorder_inputs pass
* set zyx_fsv16 formats if input is zyx_fsv4 formats
2022-07-05 18:20:01 +09:00
Tingqian Li 3e97d12fe2 [Transformation] transform ConvertLike into Convert when applicable (#7543)
* [Transformation] transform ConvertLike into Convert when applicable

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Remove xfail markup for onnx castlike cpu tests

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* remove un-used xfail

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Enable ConvertLike cpu functional test

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* remove unnecessary headers

* move to common transformation

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* remove test

* fix pytest CI issue

* minor fix after rebase

* fix clang format check

* fix failed tests
2022-07-05 15:50:35 +08:00
Chenhu Wang 8c152405ad [CPU] General denormals optimization (#11883)
* FTZ_and_DAZ_set_for_cpu

* remove DAZ

* fix

* extract to utils

* ie core part changes to add do as property and benchmark_app enable do

* enable brgcov from Luocheng patch

* add debug info

* enable_brgemm_on_avx512

* add python binding

* dlb test

* FTZ_and_DAZ_set_for_cpu

* remove DAZ

* fix

* extract to utils

* ie core part changes to add do as property and benchmark_app enable do

* enable brgcov from Luocheng patch

* add debug info

* enable_brgemm_on_avx512

* add python binding

* dlb test

* revert test code

* revert test code
2022-07-05 15:50:16 +08:00
Kelvin Choi 186189ee09 [GPU][DOC] Change fixed input string name to get_friendly_name at yuv infer request (#12003) 2022-07-05 15:36:02 +09:00
Tingqian Li 3f9c6b2f3f [BUG fix] Reshape node: WA in-place failure case by mem-copy (#10828)
* Handle in-place failure cases in reshape node

* Disable inplace when non-const reshape connected to constant

* Add comment to reshape_inplace test

* move copy WA into execute() to cover more general in-place failure cases
2022-07-05 04:46:27 +00:00
a571539107 Optimize FullyConnected FakeQuantize post-ops (#11819)
* Optimize FullyConnected FakeQuantize post-ops

* matmul bias fuse

* Add simplifyToScale for FakeQuantize and use it in FC and Conv.

* Add fakequantize documentation

* Update doc and fix accuracy issue

* Update doc

* Fix accuracy regression

* Generalize the judgment Criteria about fake quantization with scale

* Update document

Co-authored-by: Zhang Yi3 <yi3.zhang@intel.com>
Co-authored-by: xuchen-intel <chen.xu@intel.com>
2022-07-05 09:39:42 +08:00
Luo Cheng 35ee842446 [CPU] [WA] Use config to enable brgconv f32 kernel (#11990)
* enable brgconv f32

* use config to enable brgconv f32

* when brg disabled not init bin-postops

* change prop name for extensive

* use more general field

* fix review comments.
2022-07-05 07:14:40 +08:00
River LiandShen, Wanglei <wanglei.shen@intel.com> 30c7f561e3 Add FORCE_TBB_TERMINATE to legacy API (#12022)
* Add FORCE_TBB_TERMINATE to legacy API

* Put this config into proper place

* fix issue in property test

Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
2022-07-04 18:49:23 +03:00
Jan Iwaszkiewicz e5a719480b [PyOV] Fix bugbear's B023 (#12040) 2022-07-04 15:57:36 +02:00
Felix Dohyun Kim 3334e8933c [GPU] Pass activation unit tests on DG2 (#11969)
* supprot bfwzyx format
* Add test: bfwzyx activation
* Make opt kernel support bfwzyx
2022-07-04 19:54:17 +09:00
Jade Cho 195f5df2e8 set zero-point as immediate value (#12002) 2022-07-04 19:53:50 +09:00
avoskoboinyk-lohikaandMichal Lukaszewski 88784c2b6f [CPU] Optimize NonZero operation (#11549)
* [CPU] Optimize NonZero operation

# Conflicts:
#	src/plugins/intel_cpu/src/nodes/non_zero.cpp

* [CPU] Rewrite NonZero implementation, so it will use generic ie_parallel API

* [CPU] NonZero operation: apply an additional optimization

* NonZero operation: add fallback code for inRank >= 6

* NonZero operation: apply review modifications

# Conflicts:
#	src/plugins/intel_cpu/src/nodes/non_zero.cpp

* NonZero operation: inShape.getDims().size() -> inRank

* NonZero operation: eliminate input array index calculation by slight modification of ie_parallel API

* Adjust ie_parallel.hpp style for clang-format

* Try to unbreak the build

* Move to parallel_nt and add a cache for nd loops to optimize more

* Add minimal size threshold for threading and reduce warning count

* Try to workaround linter errors

* One more try to unbreak cpplint build

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-07-04 10:52:18 +08:00
Mang Guo d22c429d0e [CPU] Remove vmaxps in store_vector. (#12005)
* Remove vmaxps in store_vector.
This instruction is not needed for dst_prc int8.
And it may lead to wrong result with denormals optimization is on.

* Add vpmaxsd if dst_prc is u8 or u16.
2022-07-02 13:22:05 +00:00
Oleksandr Kramskyi dde3300cac [GPU] Add SoftSign_9 operation (#11795) 2022-07-01 15:22:17 +09:00
Mykhailo Hnap e23a568b7a Added axes node validation to DFTs operations (#11814)
* Fix DFTs axes node validation.

* Add DFTs type prop tests for invalid nodes.

* Adjusted DFTs axes node validation.
2022-07-01 15:19:04 +09:00
Wang, YangandChen Peter 8138e240a0 Remove the config key MULTI_WORK_MODE_AS_AUTO from the AUTO/MULTI plugin. (#12016)
Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-07-01 05:05:39 +00:00
Wang, Yang 378b3a2dca Enable default performance hint as tput in AUTO (#11848)
* Enable hint to tput if no property is specified for both AUTO device and target device.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* 1. Update logic.
2. Add test cases.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update. Set hints to default for target device if no hints setting for AUTO plugin and no specific properties setting for target device.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-07-01 02:49:20 +00:00
Taylor Yeonbok Lee 1872e05375 Fix wrong output type propagation for gather elements (#12013) 2022-06-30 17:22:38 +00:00
Tomasz Dołbniak 5a5c404f13 Hello reshape SSD sample fix (#12004) 2022-06-30 13:35:14 +03:00
Bo Liu 7834dba545 fix CPU Plugin deformable conv Node output incorrect issues with uneven dilations (#11940) 2022-06-29 18:14:30 +08:00
Min, Byungil 730c3f8f25 [GPU] Update Debug config for GPU plugin (#11983)
+ Added OV_GPU_DumpLayersResult
+ Applied minor update

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-06-29 11:41:13 +03:00
Karol Blaszczak 563d4f16e6 DOCS-nncf_rephrasing (#11997) 2022-06-29 08:54:05 +02:00
Wonju Lee 62d5f9a006 [POT] Rename ranger to range_supervision (#11998)
* fix: rename ranger by range_supervision

* ci: dummy commit
2022-06-29 15:27:57 +09:00
stephenli2000 4125d71ce8 setupvars.sh: Removing extra semicolon, which breaks glibc build (#11849)
This extra semicolon creates an output as example below. The extra
'::' is equivalent to add '.' as part of the LD_LIBRARY_PATH. This
breaks glibc build, and very often creates weird issue when launch
commands from different path.

...inference_engine/external/tbb/lib::/opt/intel/openvino_2021/...

We also noticed that :${parameter:+:$parameter} is widely used in
this file. Please review the code and fix as needed.
2022-06-29 08:11:24 +02:00
Vladyslav TsilytskyiandJan Iwaszkiewicz 72505b1d82 Use 2020-resolver feature only for pip3 < 20.3.0 (#11926)
Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-06-28 12:05:13 +02:00
Katarzyna Mitrus 674ca1ccc2 [ONNX] Enable Concat with empty tensor/scalar (#11979) 2022-06-28 08:34:10 +02:00
Chenhu Wang 1288706589 large_batch_opt (#11951) 2022-06-28 10:33:16 +08:00
Karol Blaszczak a4e6cda7e8 DOCS-restore_gsearch_comma (#11980) 2022-06-27 23:27:12 +02:00
Mateusz Mikolajczyk a70bbad988 [PyOV] Fix loading data to Tensor from array-like objects (#11974) 2022-06-27 16:26:45 +02:00
opoluektov-lohika 8a21e4e062 [GPU] Implement ExperimentalDetectronDetectionOutput operation (#11772)
* ExperimentalDetectronDetectionOutput: refine sorting criteria for NMS stage

This is to ensure the operation produces stable predictable results across
the possible sorting algorithm implementaions.
This property is useful for the operation testing.

* [GPU] Implement ExperimentalDetectronDetectionOutput operation

* [GPU] ExperimentalDetectronDetectionOutput: use vector types and operations in kernel

* Reformat changed files to make clang format checker happy

* [GPU] ExperimentalDetectronDetectionOutput: add another test case to the unit test

* [GPU] ExperimentalDetectronDetectionOutput: Add f16 test

* ExperimentalDetectronDetectionOutput: single-layer test: use all three outputs

* [GPU] ExperimentalDetectronDetectionOutput: increase single layer test coverage

More attribute permutations were added.
2022-06-27 23:11:03 +09:00
Chenhu Wang 95a297ed68 onednn_update (#11930) 2022-06-27 11:22:50 +00:00
Inhyuk Jo 4d741703d1 [POT] Fix dynamic shapes and batchfying data (#11923)
* fix: batchfy data by sampler or data loader

* feat: add batched sampler

* docs: update doc
2022-06-27 15:18:36 +09:00
Luwei Zhou 4be0c59505 Fix the Non_Zero childedge check. (#11963) 2022-06-27 10:43:38 +08:00
guozhong wang 44da3f06c4 add tag for log (#11887)
* add tag for log

* cumulative log tag output AUTOPLUGIN

* add use comment for log_xxx_tag and use AUTO OR MULTI for log tag
2022-06-26 15:10:45 +08:00
guozhong wang c0a2c98a45 add testcase for plugin properties should not be revised by compile_m… (#11842)
* add testcase for plugin properties should not be revised by compile_model

* rename smoke_cpuCompileModelBehaviorTests to smoke_gpuCompileModelBehaviorTests

* remove property EXCLUSIVE_ASYNC_REQUESTS in ov2.0 test

* add testcase for plugin properties should not be revised by loadNetwork
2022-06-25 16:37:43 +08:00
River Li 2bbd2b1990 Fix coverity issue in executorManager (#11964)
1. fix coverity issue
2. avoid oneTBB build error due to different API with TBB

Change-Id: I0339446e33186e0ce57de07aa8492186f2f6e369
2022-06-25 10:22:34 +08:00
Wang, YangandChen Peter bd04dc1ecf fix compiled model failed issue when set config with ov device properties (#11793)
* 1. Enable IE Core filter to promote the secondary properties to first level for hardware device.
2. Enable IE Core filter to pass the secondary properties to AUTO plguin.
3. Enable AUTO Plugin to parse secondary properties to first level and pass them to corresponding target hardware device.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* 1. Enable MULTI Plugin to support secondary properties.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* 1. Enable HETERO Plugin to support secondary priorities.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Catch the EXPECT_CALL with AVAILABLE_DEVICES argument inputting to GetMetric.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Revert the logic of handling secondary properties for MULTI and HETERO device.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Remove the secondary property flattening logic because this logic has been implemented within AUTO plugin.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* 1. update flatten logic when secondary properties is specified.
2. add the test case with secondary properties for CPU.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* add the test case with secondary properties for GPU plugin.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Add debug message to fix the test case failure issue.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Add more debug info.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.
1. For IE Core, 1st level property overides the 2nd level property.
2. For AUTO plugin, add available device list to check if the secondary properties is vaild.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Add CUDA and ARM.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update device name for ARM Plugin and add device name for HPU plugin.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-06-25 10:17:30 +08:00
Karol Blaszczak 23b0ba6898 Update integrate_with_your_application.md (#11833) 2022-06-24 13:26:06 +02:00
Kevin Putnamandintelkevinputnam f19b4c7ae4 Puts page switch parameters in alphabetic order to support S3 (#11960)
Signed-off-by: intelkevinputnam <intelkevinputnam@github.com>

Co-authored-by: intelkevinputnam <intelkevinputnam@github.com>
2022-06-24 11:59:10 +02:00
Wang, Yang 30bd4a905e Support ov::device::capabilities for AUTO plugin. (#11925)
* 1. Enable OPTIMIZATION_CAPABILITIES for AUTO plugin.
2. Add corresponding test case.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Remove EXPORT_IMPORT as Export is not implemented in the AUTO/MULTI.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-06-24 10:14:34 +08:00
Yuan Xu 079d1d6e74 fix the link to VPU extensibility article (#11956) 2022-06-23 11:24:32 +00:00
5008ee8090 Troubleshooting guide update (#11896)
* Add Overview page

* Revert "Add Overview page"

* fix errors & formatting

* fix article usage according to the styles

* fix errors

* update according to PXT comments

* CVS-80775

* update support matrix with Python version

* fix formatting

* fix formatting

* CVS-71745

* update formatting

* fix formatting

* fix formatting

* fix links & errors

* fix formatting

* update bullet points

* update

* adjust the order

* update

* update

* updates

* update references

* update

* update

* apply same updates with 22/1

* minor fix

* update reference link

* fix CVS-71846

* test

* add troubleshooting steps

* restructure get started home page

* update navigation menu

* update formatting

* fix mistakes

* update wording

* update

* rename configurations files

* update wording

* adjust the structure

* update formatting

* reverse the heading

* test with formatting

* 2nd version of Get Started homepage

* add line breaks

* change to ordered list

* update wording

* update content

* updates

* update DL workbench reference

* update wording

* update references to pip installations

* remove redundant files

* update headings

* update

* update

* restructure

* rename

* updates

* remove a comment

* correct grammar

* fix formatting

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* integrating comments

* update

* update

* correct an error

* update

* typo

* hiding CentOS issues

* update verification steps

* to show one change

* to show the change

* add comments

* update comments

* revert the changes

* update formatting

* test formatting

* update code formatting

* update formatting

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* update content, remove some comments

* update Python installation info

* update formatting

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Ryan Loney <ryanloney@gmail.com>

* update wording

* test formatting

* update formatting

* update formatting

* fix formatting

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
Co-authored-by: Ryan Loney <ryanloney@gmail.com>
2022-06-23 10:22:30 +00:00
Karol Blaszczak 1341c0d6f4 Docs doc structure step 1 (#11922)
* DOCS-structure_workflow
workflow diagram files and formatting
added overview articles on models and deployment
added the ecosystem page and changed the header from addons

* DOCS-structure_dlworkbench
* DOCS-structure_ovtf
2022-06-23 10:38:08 +02:00
Artur Kulikowskiandsadolini 7e7bb37fe3 Fixed FakeOutputResolver to avoid renaming correctly named nodes (#11938)
* fixed FakeOutputResolver to avoid renaming correctly named nodes

* fixed failed mo_args test: process reverse_input_channels through eltwise with constant with shape=[]

* changed fix to more accuarate to avoid possible issues

* Remove unnecessary iterating over producer outputs

Co-authored-by: sadolini <svetlana.a.dolinina@intel.com>
2022-06-23 08:05:06 +00:00
RICKIE777andRiver Li ebeb0a3802 Add hello_classification_ov_c test (#11933)
Co-authored-by: River Li <river.li@intel.com>
2022-06-23 15:08:53 +08:00
Paul Youngsoo Ahn 11a9888c3f [GPU] Fix coverity issues(#11876) (#11876)
- CID: 1489915
2022-06-23 07:21:05 +03:00
River Li b490ef545f Property to terminate tbb threads (#11650)
* Property to force terminate tbb threads

During inference done, tbb threads cannot be closed by itself, which cause memory leak and unload/lingering threads.
Sometimes the tbb threads need to be terminate for resource(memory, thread) consumption

This PR contains:
1. Add a new property to control whether force to terminate tbb threads.
2. Property key is "FORCE_TBB_TERMINATE", default value is false.
3. Explicitly to terminate tbb task scheduler during unload openvino dll if this property is set true.
    e.g: core.set_property(device, ov::force_tbb_terminate(true));
4. If not set FORCE_TBB_TERMINATE, there will be no any additional tbb operations.

Change-Id: I32dc0ba122bb19a9dbf3ba12fdd596aad9ac54b4

* Fix executorManager test case

Change executorManager from static to be dynamic, the test case should fit this change.

* Change frontendManger to be non-static instance

Make frontendManger to be non-static instance.
We should guard it is not released before Model, due to Model will use the mem allocated by frontendManger.
So put frontendManager reference in ov::Model to make it work.

* Fix race condition between executor and executorManger

* Add test case for tbb property

1. Add basic test case for ov::force_tbb_terminate property
2. set ov::force_tbb_terminate to be false

* Avoid terminate tbb in case of no tbb thread created

* Fix Constant ops segmentfault issue

There is segmentfault issue during Constant destruction, which is caused by some shared memory is double free
Test case is:
	ie = IECore()
        net = ie.read_network(model=test_net_xml, weights=test_net_bin)
        query_res = ie.query_network(net, device)
        func_net = ng.function_from_cnn(net)
        ops_net = func_net.get_ordered_ops()
ie and net will be released before ops_net destruction, so Constant will free the shared memory that has been freed

* Make constant::m_data is released before frontendmanager

* tiny format change

* change tbb blocking_terminate to terminate

Tbb blocking_terminate calling will cause some segmentfault during run some special models,
the reason may comes from block_terminate cause current thread block here to wait for tbb exit,
but cannot handle some resource dependencies.
After adopt terminate(), the dependencies can be resolved and no segmentfault any more.

Change-Id: I0b920630a25cd3fd2747c57ec71ca749ba35573b

* Remove unnecessary dependencies

* Disable dynamic lib test case in static library compilation version

As CVS-68982 description, we should disable the test case which will load
dynamic library in openvino static library compilation.

* Fix nested-namespace-definition issue

* Address reviewer's comments
2022-06-23 03:20:15 +00:00
Tomasz Jankowski bf2bd624b6 Limit ONNX version (#11949)
OV does not currently support opset 17 introduced in onnx 1.12 release.
2022-06-22 22:26:47 +02:00
Bartek Szmelczynski 1543e35b1b [MO] update ROIAlign op to opset9 (#11623) 2022-06-22 10:58:15 +02:00
Adam Tumialis 4426aa58e2 Update windows.yml (#11943)
Temporary change for Win build timeout in Azure.
2022-06-22 10:30:33 +02:00
Roman Baranchuk 5cba0ae871 [CPU] GRN: dynamic shapes support (#11678) 2022-06-22 10:45:06 +08:00
Roman Baranchuk dab9da25fa [CPU] Roll: dynamic shapes support (#11707) 2022-06-22 10:33:18 +08:00
Roman Baranchuk 44cecc8579 [CPU] ReverseSequence: dynamic shapes support (#11644) 2022-06-22 10:27:06 +08:00
Tomasz Jankowski c8ced8728e [Core] Fix GridSample assertion (#11924)
* Fix GridSample assertion

* Avoid ONNX opset 17 backend tests
2022-06-21 23:28:21 +02:00
Krzysztof Bruniecki d25b8466f6 [GNA] Fix and extend removed logging capabilities (#11880)
* [GNA] Fix and extend warning and debug log levels using speech_sample

* [GNA] Cleanup and apply const correctness

* Apply review
2022-06-21 09:57:44 +02:00
Yuan XuandHelena Kloosterman dc6e5c51ee update pypi installation for pypi.org (#11907)
* update pypi installation for pypi.org

* Update docs/install_guides/pypi-openvino-dev.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/pypi-openvino-rt.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/pypi-openvino-rt.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/pypi-openvino-dev.md

* update

* remove comment

* remove comment

* hide Visual Studio error

* update wording

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
2022-06-20 17:06:49 +08:00
Katarzyna Mitrus 217b39e76b [MO] Name fix for mxnet Eye conversion (#11903)
* Fix mx eye op name string

* Enable default for num_columns 0
2022-06-20 07:03:11 +02:00
yanlan songandChen Peter 7f435059c9 Bell/fix single device coredump (#11895)
* enable binder schedule

Signed-off-by: fishbell <bell.song@intel.com>

* add cases

Signed-off-by: fishbell <bell.song@intel.com>

* refine

Signed-off-by: fishbell <bell.song@intel.com>

* fix build failure

Signed-off-by: fishbell <bell.song@intel.com>

* fix coredump

Signed-off-by: fishbell <bell.song@intel.com>

* do not return hw requests directly, potential issues

Signed-off-by: fishbell <bell.song@intel.com>

* fix bug

Signed-off-by: fishbell <bell.song@intel.com>

typo

Signed-off-by: fishbell <bell.song@intel.com>

* optimize memory

Signed-off-by: fishbell <bell.song@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-06-20 10:10:45 +08:00
Wilson Seok 477bfa1c09 [GPU]fix kernel select validate in deconv kernel fsv16 for fs=8 input (#11909)
* fix kernel select validate in deconv kernel fsv16 for fs=8 input
* apply the WA for Windows only
* Narrow down condition of ref kernel selection
2022-06-20 10:34:45 +09:00
River Li ce5b2c6a45 Refine ov_partial_shape for OV API 2.0 C interface (#11891)
* Refine ov_partial_shape for OV 2.0 C interface

To avoid potential string security problem, remove string pointer from ov_partial_shape structure.

* Remove redundant code

* fix typo issue

* fix shape test issue

* fix some minor issues

* Address reviewing comments

Use Dimension to represent rank of parital shape.

* Appy safer method to parse partialShape string

1. adopt ov::Dimension::value_type to construct ov::Dimension
2. safter method to convert string to dimension value
3. apply std::vector<std::string> to replace std::vector<char *> during pasrsing partialShape string

Change-Id: I0e0b70a915fc5c5fefad51de51f167798854f55e
2022-06-20 08:22:39 +08:00
Xiping YanandMaksim Kutakov 870f84f19b Xp/maxnick in place fix 43602 (#11664)
* Convolution concat sum inplace conflict fix

* Minor refactoring.

* Rebase to OV2.0, build pass.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove old file.
Rebase introduce this file by mistake.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Move functional test for subgraph.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Disable some crash test for continue to test others.

* Rename ConcatConvSumInPlaceTest to ReLuConcatConvSumInPlaceTest
fix ci crash issue.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Revert "Disable some crash test for continue to test others."

This reverts commit f7a8677c002747b45e84f74672f76e2fdfc7ab22.

* Add const for inPlace.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix build issue, missing braces;

Co-authored-by: Maksim Kutakov <maksim.kutakov@intel.com>
2022-06-17 16:35:58 +08:00
Min, Byungil d3ca2f8cf1 [GPU] Add functionality of debug config ForceImpltype (#11884)
+ Force one layer using id
+ Add do, reduce to the primitive list

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-06-17 15:03:34 +09:00
Kelvin Choi 49c1a25e0f [GPU] Add deeper case handling for ConvertColor op (#11874) 2022-06-17 09:15:17 +09:00
d7b8d80a61 Cumulative throughput 2022.2 (#11831)
* Add Overview page

* Revert "Add Overview page"

* update auto with cumulative throughput

* update formatting

* update formatting

* update content

* update

* fix formatting

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Chen Peter <peter.chen@intel.com>

* update

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/multi_device.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/auto_device_selection.md

* Update docs/OV_Runtime_UG/auto_device_selection.md

* Update docs/OV_Runtime_UG/auto_device_selection.md

* Update docs/OV_Runtime_UG/auto_device_selection.md

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Chen Peter <peter.chen@intel.com>

* Update docs/OV_Runtime_UG/auto_device_selection.md

* Update docs/OV_Runtime_UG/auto_device_selection.md

* Update docs/OV_Runtime_UG/auto_device_selection.md

* Update docs/OV_Runtime_UG/auto_device_selection.md

* Update docs/OV_Runtime_UG/auto_device_selection.md

* update indentation of table

Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-06-16 16:23:10 +00:00
Tingqian Li 2fec03024d Add signal stack management for AMX in linux python API (#11894)
* Add signal stack management for AMX in linux python API

* fix wording

* fix empty line

* add AT_MINSIGSTKSZ definition

* Fix misspelling and conditional compiling on __linux__
2022-06-16 20:17:05 +08:00
guozhong wang 164a59925a ctput enable perf_count (#11854) 2022-06-16 15:44:35 +08:00
Tomasz Jankowski f8c4e736b4 [Core] GridSample operator reference implementation (#11841) 2022-06-16 08:47:29 +02:00
mei, yang 39981bf2b8 relax the class number check in paddle multiclass_nms op (#11857)
* relax the class number check in paddle multiclass_nms op

* relax checks in paddle multiclass_nms op
2022-06-16 11:29:15 +08:00
Yuan Xu 54fe2d1a3f Fix yum code format (#11902)
* fix formatting

* update formatting
2022-06-16 09:52:32 +08:00
Bonhun Koo e5ddce54f6 Add an option to store the quantized weights as INT8 on the GNA speech sample (#11838) 2022-06-16 09:51:28 +09:00
Przemyslaw WysockiandMichal Lukaszewski 09a0fb7890 [PYTHON] Create graph and generate image in tests (#11569)
* Change read_image() into generate_image()

* Move test utils from testdata repo to local files

* Minor changes

* Remove unnecessary code

* Minor changes

* Fix compatibility tests

* Fix imports for Azure pipeline

* Move model generation into test_utils

* Minor changes

* Minor changes

* Update linux.yml CI

* Remove testdata repo from .ci/linux.yml

* Remove testdata repo from pipelines

* Fix Azure compatibility tests

* Reset linux.yml

* Remove testdata repo from linux CI

* Try eliminating one of configs

* Attempt at fixing Azure tests

* Add separate utils for compatibility

* xfail comp if op tests

* Minor changes

* Revert changes to .ci files

* minor changes

* Remove xfails

* Remove unecessary import

* Skip if op tests

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-06-16 00:31:05 +03:00
Helena Kloosterman 7114863cbc Update date in MO update message (#11834) 2022-06-15 16:53:45 +02:00
Tomasz Dołbniak eb2fb5bf7d Additional tensor names for ONNX variadic ops (#11893) 2022-06-15 13:22:59 +02:00
Szymon Irzabek 9f7d08154d [GNA] Decompose 2D convolution fix (#11818) 2022-06-15 12:39:22 +02:00
yanlan songandChen Peter 6d903d4376 optimize sample (#11864)
Signed-off-by: fishbell <bell.song@intel.com>

optimize sample

Signed-off-by: fishbell <bell.song@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-06-15 13:38:10 +03:00
Bartek Szmelczynski 6033e52dd9 Remove set_from from samples, update docstrings (#11889) 2022-06-15 12:10:00 +02:00
594c3dac49 Top k v2 (#11731)
* add paddle op top_k_v2

* rebase

* fix variable support issue for paddle top_k_v2

* Update src/frontends/paddle/src/op/top_k_v2.cpp

Co-authored-by: Bo Liu <bo4.liu@intel.com>

* Update src/frontends/paddle/src/op/top_k_v2.cpp

Co-authored-by: Bo Liu <bo4.liu@intel.com>

* Update src/frontends/paddle/src/op/top_k_v2.cpp

Co-authored-by: Bo Liu <bo4.liu@intel.com>

* format the top_k_v2.cpp

Co-authored-by: meiyang-intel <yang.mei@intel.com>
Co-authored-by: Bo Liu <bo4.liu@intel.com>
2022-06-15 17:59:48 +08:00
Artur Kulikowski 6fdbbe03f5 Remove protobuf requirements in python bindings (#11886) 2022-06-15 10:52:33 +02:00
7963ba20f4 Update Get Started Guide structure (#11875)
* Add Overview page

* Revert "Add Overview page"

* fix errors & formatting

* fix article usage according to the styles

* fix errors

* update according to PXT comments

* CVS-80775

* update support matrix with Python version

* fix formatting

* fix formatting

* CVS-71745

* update formatting

* fix formatting

* fix formatting

* fix links & errors

* fix formatting

* update bullet points

* update

* adjust the order

* update

* update

* updates

* update references

* update

* update

* apply same updates with 22/1

* minor fix

* update reference link

* fix CVS-71846

* test

* add troubleshooting steps

* restructure get started home page

* update navigation menu

* update formatting

* fix mistakes

* update wording

* update

* rename configurations files

* update wording

* adjust the structure

* update formatting

* reverse the heading

* test with formatting

* 2nd version of Get Started homepage

* add line breaks

* change to ordered list

* update wording

* update content

* updates

* update DL workbench reference

* update wording

* update references to pip installations

* remove redundant files

* update headings

* update

* update

* restructure

* rename

* updates

* remove a comment

* correct grammar

* correct grammar

* update structure

* update headings

* restructure

* fix formatting

* change the capitalization

* update heading

* update PyPI install

* updates

* update formatting

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* Update docs/install_guides/troubleshooting-steps.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

* integrating comments

* update

* update

* correct an error

* correct an error

* update

* update

* update wording

* typo

* typo

* hiding CentOS issues

* update headings

* update heading

* Update docs/get_started/get_started_demos.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/get_started/get_started_demos.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/install_guides/pypi-openvino-dev.md

* Update docs/install_guides/pypi-openvino-dev.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-06-15 05:59:17 +00:00
Krzysztof Bruniecki 5939cb1b36 [GNA] Use node name as tensor name on import previous format where tensor n… (#11826) 2022-06-14 17:16:59 +02:00
Sungeun Kim a454b7371e add zyx_fsv32 format for onednn deconv (#11873) 2022-06-14 22:04:29 +09:00
Krzysztof Czugala 25e002808a Change pyenchant version to 3.0.0 (#11735)
* Change pyenchant version to 3.0.0

* Change pyenchant version to 3.0.0
2022-06-14 07:56:33 +02:00
Krzysztof Czugala 15d64d25af removal of compatibility tests executing models with dynamic shapes (#11751) 2022-06-14 07:55:24 +02:00
Taylor Yeonbok Lee c73201c9e6 Optimize memory depdendency analysis (Constant memory does not use pool : No need to add constant nodes to deps) (#11861) 2022-06-14 13:46:24 +09:00
Luo Cheng cae0c924b6 [CPU] [Test] Eye testcase does not populate all parameters (#11869) 2022-06-14 09:32:56 +08:00
Luo Cheng 151d77062f [CPU] remove unused primitive (#11811)
* remove unused primitive

* update onednn commit
2022-06-14 06:19:05 +08:00
Zhang YiandEgor Shulman 209331d9df Pr/8669 (#11840)
* Added tests

* Apply comments

* Update

* Apply comments

* Fixed remaining comments

* Use ov::test::SubgraphBaseTest

Co-authored-by: Egor Shulman <egor.shulman@intel.com>
2022-06-13 20:25:59 +08:00
Tomasz Dołbniak 8603acecba Dont use moved-from object (#11859) 2022-06-13 10:13:47 +00:00
Katarzyna Mitrus 421520bda0 Handle error from propagate_rt_info (#11773) 2022-06-13 11:11:30 +02:00
Luo Cheng 922e32e2f1 disable avx512 brgconv (#11866) 2022-06-13 17:10:42 +08:00
cecilia peng d91b8bd17c disable random unit tests for multiclass nms and matrix nsm. (#11839)
They sporadically impact CI... possible reason is the order of paddle and openvino is not guaranteed when more than
one bboxes have equal scores.
Actually there is no need for these random tests as the remainding cases have covered them.
2022-06-13 16:43:57 +08:00
Bartek SzmelczynskiandAnastasia Kuporosova 93839f8379 [PYTHON API] Check new config (#11402)
Improve code-style in Python API and reduce number of ignored hints.

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2022-06-13 10:21:04 +02:00
Luo Cheng 9fe27be1cb [CPU] Fix smoke_Conv_3D_FP32_fusingScaleShiftAndFakeQuantizePerChannel sporadic failure (#11813)
* fix smoke_Conv_3D_FP32_fusingScaleShiftAndFakeQuantizePerChannel sporadic failure

* rebase onednn
2022-06-13 15:29:20 +08:00
Luo Cheng 91216fef5a [CPU] Revert enable ReduceSum -> AvgPool transformation due to perf issues (#11865)
* disable ConvertReduceMeanToPooling

* recover testcase
2022-06-13 14:11:53 +08:00
River Li c4fdcafa70 Enable unit test for OV 2.0 C API (#11828) 2022-06-13 13:37:59 +08:00
River Li 0571124fd3 Fix CC issues for transformation and snippets (#11798)
* Fix CC issues for transformation and snippets

Matcher should be enabled if it was hit during analyze stage.

* Fixed 3 naming issue
2022-06-13 13:36:35 +08:00
Luo Cheng c848e138f8 [CPU] cherry-pick: Fix possible data race when accessing global reorder list (#11829)
* [CPU] cherry-pick: Fix possible data race when accessing global reorder list

* rebase onednn
2022-06-13 13:11:53 +08:00
Eddy Kim 3961a241cd Revert "Disable fc_int8_inputs_fused_fp32_sum (#11709)" (#11863) 2022-06-13 13:25:59 +09:00
Sieun Kim 6e3dd4adce Update scatter nd update kernel to support blocked_formats (#11533)
* draft pr for planar and fsv16

* draft pr for general test

* update fusion test (failing)

* update fusing test (pass)

* update fusing test (include exception)

* clean gpu unit test

* review comment applied

* unit test cases added & cpplint applied

* cpplint error fixed

* change gpu test cases for fp16

* fusing test fix generate_unique_indices

* fix typo

* revise cl kernel for occasions when updates shape is altered
2022-06-13 13:25:24 +09:00
Paul Youngsoo Ahn ca7ddae9ba [GPU][Coverity] Fix coverity defects (#86191) (#11852)
- CID 1486993 Big parameter passed by value (PASS_BY_VALUE)
- CID 1489431 Uninitialized scalar variable
- CID 1489432 Uninitialized scalar variable
2022-06-13 02:51:45 +00:00
Sungeun Kim 9bda2bd580 lws quantize/eltwise (#11851) 2022-06-13 11:18:49 +09:00
Felix Dohyun Kim d831047f30 [GPU] Optimize DepthToSpace (#11761)
* lws optimize
2022-06-13 11:17:22 +09:00
Luwei Zhou 0066ddbd22 Update onednn submodule hash to fix 3D deconv post-ops issue. (#11836) 2022-06-13 09:21:29 +08:00
Luwei Zhou c73f6576e0 Luwei/extend reorder test (#10003)
* Extend the reorder unit test.

* Update CMake

* fix somme issues.

* Update

* Update

* Update

* Update

* Update and fix caused by input portconfig only support NCSP.

* Update Copyright

* Add more tests

* Apply review comments.

* Update

* Update

* Fix building error.

* Applied review comments.

* Update

* Update

* Update

* Fix CI

* Update

* Update Cmake
2022-06-11 21:09:26 +08:00
Mateusz Bencer 8e9eaaee91 [FakeQunatize] Use shape from HostTensor instead of FakeQuantize* (#11843) 2022-06-10 17:57:03 +03:00
mei, yang 38a81ec486 update and reorder supported paddle op list (#11601) 2022-06-10 18:46:11 +08:00
guozhong wang 408bdc9f81 add single IECore for core_threading test (#11796) 2022-06-10 08:25:12 +03:00
Bo Liu 79d3fbe3c1 remove limitation usage of brgemm for 'FullyConnected' Node (#11783) 2022-06-10 10:19:41 +08:00
Chenhu Wang 1066d4551f fix_nms_ops_transformation (#11794)
* fix_nms_ops_transformation

* replace node when 5-9
2022-06-10 10:18:28 +08:00
Chenhu Wangandmandrono 604dc4589c [CPU] Deconvolution caching support (#11835)
* Deconvolution caching support

* get ride of deprecated name

Co-authored-by: mandrono <maxim.andronov@intel.com>
2022-06-10 10:17:59 +08:00
Chenhu Wang e2e7417c2a load_store_emitters_optimization_and_apply_to_interpolate (#11742)
* load_store_emitters_opt_and_apply_to_interpolate

* zmm_zero_is_always_needed_on_all_platform
2022-06-10 10:17:29 +08:00
opoluektov-lohika d87233863d Fix experimental detectron do ref impl (#10621) 2022-06-10 03:10:13 +03:00
Tomasz Dołbniak 0932c74ff8 GridSample operator (#11770) 2022-06-09 14:21:53 +00:00
Andrew Kwangwoong Park 5fa669785c [GPU] Update reorder_inputs for data type conversion on fc layer (#11832)
Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-06-09 15:18:28 +09:00
8faf8f2d89 OV 2.0 C API (#11700)
* Initial files & cmakefiles for ov 2.0 c api development

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Add all ov 2.0 C APIs define

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Fix review comments

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Disable test of OV 2.0 C APIs test for tmp

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Add related property key for ov 2.0 C-API

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Add description for ov_property_key_e

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Add EXECEPTION handling

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* compiledModel add interface

* add inferrequest interface

* solve cpplint problem

* Finished OV 2.0 C-APIs PPP related development

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Fix code review issues

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Add ov::tensor API

* add compiled model func

* Finished C-API funs about core, model, node development

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [OV 2.0 C-API] add const to ov_output_node

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [OV 2.0 C-API] Using define GET_OV_ELEMENT_TYPE & GET_CAPI_ELEMENT_TYPE in tensor APIs

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [OV 2.0 C-API] add string initialize

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* add inferrequest func

* add move construction to runtime_model

* supplement two infer request interface functions

* [OV 2.0 C-API] Add the common framwork of unit test

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* modify ov_infer_request_get_profiling_info

* add tests dir

* restore CMakeLists.txt

* Fix the bug of COPY in Tensor

* [OV 2.0 C API] Finished core related function unite test

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Add ov:Tensor API test

* [OV 2.0 C API] fix some review issues

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* add some infer request test

* add compiled model test

* [OV 2.0 C API] Finished preprocess related function unite test

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [OV 2.0 C API] Fix review issues

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [OV 2.0 C API] Modify to use default model

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* transfer device_name from fix value to parameter

* add some infer request test

* remove compiled model get_property test

* add infer request tests

* Add ov::model Test and modify Tensor Test name

* Determine whether partial shape meets the standard

* Add get tensor name function and Modify reshape test case

* modify fixed tensor name,remove unnecessary comparison

* add ov_model_get_nodes_info, modify according to comments

* Update reshape test

* extract common function, modify interface about get tensor name,shape and type

* modify according comments

* [OV 2.0 C API] Finished hello classification with ov 2.0 c-api development

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [OV 2.0 C API] Fixed hello classification with ov 2.0 c-api review issues

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [OV 2.0 C API] delete inactive code hello classification with ov 2.0 c-api

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Fix clang format issue

* [OV 2.0 C API] rename

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Fix windows build erre

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Apply qsort for sorting data

Apply qsort for sarting data
Fix issues of "potentially uninitialized local pointer variable"

* Not use deprecated INSTANTIATE_TEST_CASE_P for c api gtest

INSTANTIATE_TEST_CASE_P is deprecated, should use INSTANTIATE_TEST_SUITE_P.

* Fix some review issues

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Ov 2.0 C API] Add error info

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Fix some review issues

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Fix review issues

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* polish error message for ov c api

* Redefined ov_shape_t, ov_partial_shape_t and ov_layout_t. Modified functions and test cases involving these variables

* Added the conversion between char* and partial_shape

* Add partial_shape_to_shape

* prune code

* modify split

* Use regex to split and search pattern

* Modify str_to_char_array delete

* Add the judgment of rank

* Fix compiling error

Fix issue: address of array 'shape.dims' will always evaluate to 'true'  if -Wpointer-bool-conversion

Co-authored-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: sunxiaoxia2022 <xiaoxia.sun@intel.com>
Co-authored-by: ruiqi <ruiqi.yang@intel.com>
2022-06-09 10:39:07 +08:00
Roman Baranchuk 0231637441 [CPU] GatherTree: dynamic shapes support (#11544) 2022-06-09 10:18:51 +08:00
Karol Blaszczak fe41b8eacc Docs multiplugin page-wide tabs merge (#11461) (#11784)
* Docs multiplugin page-wide tabs merge

porting to master changes aligning multi plugin with other articles already present in 22.1

* Update docs/snippets/MULTI4.cpp

* Update docs/snippets/MULTI4.cpp
2022-06-08 16:56:37 +02:00
hyunback kim 41a0d3a0f8 [GPU] Add oneDNN zero point value debug log. (#11817)
* [GPU] Add oneDNN zero point value debug log.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-06-08 22:01:16 +09:00
Sungeun Kim 2c4cb88862 [83906] DG2 Systolic engine not getting used for fp16 Action Recognition model (#11815)
* shallow feature convolution needs to set by zyx_fsv2

* bug fix: wrong get_output_layout calling in is_mixedLayout
2022-06-08 16:48:40 +09:00
Mykhailo Hnap 9ee9f880bd [GPU] Implement Bucketize-3 (#11738)
* [GPU] Implement Bucketize-3

* Add i8 and u8 to evaluates map for bucketize op.
2022-06-08 15:47:19 +09:00
yanlan songandChen Peter bd02415ad5 enable binder schedule for preview (#11763)
* enable binder schedule

Signed-off-by: fishbell <bell.song@intel.com>

* add cases

Signed-off-by: fishbell <bell.song@intel.com>

* refine

Signed-off-by: fishbell <bell.song@intel.com>

* fix build failure

Signed-off-by: fishbell <bell.song@intel.com>

* fix coredump

Signed-off-by: fishbell <bell.song@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-06-08 10:02:33 +08:00
Tetiana Gubanova a3cd2bcc49 [GPU] Implement Reverse operation (#11672)
* Reverse operation single-layer test

* Reverse CreateOp(), primitive and kernel selector

* Implement Reverse CL kernel

* Implement reverse GPU unit tests

* Add boolean as extended input type to reverse operation
2022-06-08 09:46:52 +09:00
Steve Yoo 263c184b97 Fix deformable convolution cl kernel for Multi-Groups (#11613)
* Fix deformable convolution cl kernel for multi group and add its test cases

* Add batch 2, 3, 4 test case to multiple groups
2022-06-08 09:45:42 +09:00
David Nam 755394c1cb [GPU] Use IE_THROW() instead of throw std::runtime_error (#11769)
* Use IE_THROW() instead of throw std::runtime_error

* Change all of throw std::runtime_error into IE_THROW()
2022-06-08 09:44:59 +09:00
Karol BlaszczakandYuan Xu e70074d9db DOCS-clear out the integrate_with_app article (#11799)
* DOCS-clear out the integrate_with_app article

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

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

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-06-07 21:52:27 +02:00
Karol Blaszczak 275f2adf52 DOCS-add supported PdPd models (#11804) 2022-06-07 21:51:17 +02:00
Eddy Kim 3a5805fce0 quick fix in tests (#11812) 2022-06-07 15:22:39 +00:00
hyunback kim 98f989302a [GPU] Update to use immad with oneDNN test case. (#11808)
Update correct test case

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-06-07 17:08:23 +03:00
Felix Dohyun Kim 1c9cd04f96 [GPU] Enable blocked formats in Gather primitive (#11486)
* gather blocked format
* enable double blocked
* 5d test
* support cross dimension
* Add some disabled test for later use
* Support non-default planar formats
2022-06-07 17:50:09 +09:00
Felix Dohyun Kim c1f4cc04de [GPU] Enable blocked formats in Border primitive (#11652)
* fix default_value of border tensor parameters
* Enable all in/out layout
2022-06-07 17:39:57 +09:00
Min, Byungil 49942c2f80 [GPU] Forcing to use clDNN FC on small batch size (#11715)
+ forced to use clDNN FC due to perf drop

Signed-off-by: byungilm <byungil.min@intel.com>
2022-06-07 10:25:14 +03:00
Kelvin Choi f9afe07c9d [GPU] Add reorder between FC matmal and reshape (#11706) 2022-06-07 13:10:58 +09:00
Mateusz Bencer 7335984edd [MO] Check only source layout if both changing layout and reverse input channel is applied (#11779) 2022-06-06 17:46:07 +02:00
Min, Byungil 104a9d8d52 Add debug config for forcing impl type of fc (#11713)
+ Added new debugging config OV_GPU_ForceImplType to set impl type

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-06-06 23:02:34 +09:00
bb3868d8cd [CPU] OneDNN 2.6 migration (#11627)
* Migrate on OneDNN 2.7

* [CPU] Enabled brconv implementation

* Post ops optimizations

* [CPU] Enabled I8 precision on activations for Convolution node

* [CPU][WA] Disabled Deconvolution + post ops fusing optimization

* Fixed FQ post op optimization

* [CPU] Optimize post ops processing

* [WA] Add node name if tensor names are empty

* [WA] remove  layout compatibility chheck that leads to the fase-positive exceptions

* [CPU] Optimize processing for FQ + Sum + FQ post ops pattern

* [CPU][WA] Enabled ReduceSum -> AvgPool transformation due to perf issues

* fix compiler error

* rebase onednn master

* cherry pick from 2.7 to 2.6

* [WA] make cpu case to run completed

* fix xmm zero check

* reopen 'FuseDeconvolutionAndSimpleOperation' Transform  to fix CPU 'ConvolutionBackpropDataLayerTest' fail issue

* [WR] Removed failed the ReduceMean tests caused by 21f3555.

* group deconv may crash on memory out of bound

* [WA] Remove the moc fail case by #af4731a1

* testcase conv maxpool will check brgconv instead of jit

* test subgraph added nhwc format check

* fix gemm bf16 win crash

* fix avx2 groupconv accuracy problem

* [WA] remove invalid FQ tests

* WR to disable the LPT multiplyToGroupConv test because the  transformation was disabled in d5e16f

* add gemm int8 binary postops to fix GroupConvolutionQDqTransformation fail

* add gemm int8 binary postops to fix GroupConvolutionQDqTransformation fail

* fix gemm bf16 fail

* Fix ConcatConvSumInPlaceTest

* Add cpuDebugFuncTests target

* [WA] bf16 crash due to MemoryInput/Output

* OVClassBasicTest case typo

* testcase subgraph sets default ENFORCE_BF16 to NO

* fix clang check

* Fix primType check issue

* Fix cpplint error

* MemoryInput/Output support bf16; Enforce bf16 'NO' should enable snipptes

* disable BF16 fusing fakequant testcase

* testcase init support amx check

* testcase for conv brgconv avx512/amx

* testcase for conv brgconv avx512/amx

* WR enforce reorder bug and add NSPC into deconv supported list.

* Compiling issue fix.

* [WA] skip fakequantize fusing in bf16

* mix legacy/new binary postops

* make nightly case run. tested on amx/avx512/avx2.

* [CPU] Add BF16 AMX test for Matmul

* Add CPU dump check tool

* Add verbose log

* Generate exec graph in cpu dump check tool

* fix binary prelu post Ops

* fix cpplint

* Update ONEDNN version to fix AVX2 bug.

* cpu dump check supports compare dump files

* Add a new CPU_DEBUG_CAPS: OV_CPU_SUMMARY_PERF

* change VERBOSE_LOG to DEBUG_LOG

* fix oneDNN register_jit_code log

* fix cpplint

* Add OV_CPU_DEBUG_LOG controls debug logs to show

* Revert reorder WR.

* Enhanced CPU debug logs and breakpoint support

* Enhanced cpu_dump_check with --ports

* Fix DEBUG_LOG compile issue

* GroupDeconvolutionLayerCPUTest extend to add amx test cases

* Add Node into DBUEG_LOG

* cpu_dump_check: Dump results even no port is specified

* FIx MergeTransposeAndReorder for blocked input

* Fix cpu_dump_check result names

* Enhance DEBUG_LOG on edges

* Cpu dump check support shape mismatch

* Fix bi-directionl inplace

* Cpu dump check support inference_precion_hing f32.

* fix windows dump fail.

* fix depthwise nwc conv

* add rtol arg

* win debugbreak

* fix pooling accuracy

* GroupDeconvolutionLayerCPUTest remove invalid test param for nspc

* recover ov onednn fork

* revert af4731a1f1 '[WA] remove layout compatibility chheck'

* [WA] disable avx2 conv3d fusing case

* [WA] disable avx2 conv3d fusing case

* [WA] Disabled weights md transpose in FC to prevent perf degradations

Co-authored-by: dmitrygo <dmitry.gorokhov@intel.com>
Co-authored-by: Vladislav Golubev <vladislav.golubev@intel.com>
Co-authored-by: Zhang Yi3 <yi3.zhang@intel.com>
Co-authored-by: liubo-intel <bo4.liu@intel.com>
Co-authored-by: Luwei Zhou <luwei.zhou@intel.com>
Co-authored-by: Li, Tingqian <tingqian.li@intel.com>
Co-authored-by: xuchen-intel <chen.xu@intel.com>
Co-authored-by: ceciliapeng2011 <cecilia.peng@intel.com>
2022-06-06 18:30:32 +08:00
Helena Kloosterman 764a2ec012 Fixes for OpenCV script filename in docs (#11791) 2022-06-06 16:42:04 +08:00
guozhong wang d3b7a1b86c fix cumulative donot handle nireq (#11775) 2022-06-06 10:10:05 +08:00
Artur Kulikowski 32580ca65b Add ReduceMerge transformation (#11746)
Tickets: 60918
2022-06-04 13:44:50 +02:00
Sungeun Kim 8029fd9675 add mixed precision case (#11747) 2022-06-04 11:40:52 +09:00
Mateusz Bencer dba4dbb9d6 Improve L2NormFusion transformation (#11765) 2022-06-03 18:51:21 +02:00
Mateusz Tabaka 4650ecd0b5 Disable fusings_gpu/deconv_scale_activation_quantize_i8_eltwise_quantize_u8.basic/4 (#11777) 2022-06-03 21:07:48 +09:00
aea04e275c [GPU] Enable onednn reduction (#11570)
* It has better performance by using reduction kernel instead of pooling kernel in oneDNN for reduction layer.
* Stop using global pooling instead of reduce primitive
* Use oneDNN reduction if its mode is supported by optimized onedNN kernel
* activation pow is supported
* Use clDNN reduce if 3d or redundant reduce, tensor size mismatch
* Updated thirdparty onednn_gpu

Signed-off-by: Min, Byungil <byungil.min@intel.com>

Co-authored-by: Wei Tang <wei1.tang@intel.com>
Co-authored-by: Chen Kurt <kurt.chen@intel.com>
2022-06-03 18:36:27 +09:00
mei, yang b780c61506 Extend python API for GenerateProposals (#11723) 2022-06-03 10:38:02 +02:00
Krzysztof Bruniecki 4ef0aab166 Create copy of RO IR/bin file mapped Blob to allow converting from NCHW to NHWC (#11771) 2022-06-03 08:38:52 +02:00
Krzysztof Bruniecki 10a6e56811 Return instead throw in check function aroun dtors (#11745) 2022-06-03 08:37:33 +02:00
Katarzyna Mitrus 47155b43d0 [Transformation] Add GeluFusion with Tanh (#11752) 2022-06-03 08:36:12 +02:00
Przemyslaw Wysocki 1db4446e2a [MO] Extend MO for NonMaximumSupression-9 (#11576) 2022-06-02 18:18:14 +02:00
b88eed7645 Proofreading MO Guide (#11605)
* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/IR_and_opsets.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/customize_model_optimizer/Customize_Model_Optimizer.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/customize_model_optimizer/Customize_Model_Optimizer.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/prepare_model/customize_model_optimizer/Customize_Model_Optimizer.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/IR_and_opsets.md

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

* Update docs/MO_DG/IR_and_opsets.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/IR_and_opsets.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update docs/MO_DG/IR_and_opsets.md

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

* Update docs/MO_DG/IR_and_opsets.md

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

* Update docs/MO_DG/IR_and_opsets.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_DeepSpeech_From_Tensorflow.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_DeepSpeech_From_Tensorflow.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_CRNN_From_Tensorflow.md

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/MO_DG/IR_and_opsets.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

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

* Update docs/MO_DG/prepare_model/FP16_Compression.md

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

* Update docs/MO_DG/prepare_model/customize_model_optimizer/Extending_Model_Optimizer_with_Caffe_Python_Layers.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_lm_1b_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_lm_1b_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update Additional_Optimizations.md

* Update Deep_Learning_Model_Optimizer_DevGuide.md

* Update IR_and_opsets.md

* Update Getting_performance_numbers.md

* Update Model_Optimizer_FAQ.md

* Update Supported_Frameworks_Layers.md

* Update Convert_Model_From_Caffe.md

* Update Convert_Model_From_Kaldi.md

* Update Convert_Model_From_MxNet.md

* Update Convert_Model_From_ONNX.md

* Update Convert_Model_From_Paddle.md

* Update Convert_Model_From_PyTorch.md

* Update Convert_Model_From_TensorFlow.md

* Update Convert_Model_Tutorials.md

* Update Converting_Model.md

* Update Cutting_Model.md

* Update IR_suitable_for_INT8_inference.md

* Update Aspire_Tdnn_Model.md

* Update Convert_GluonCV_Models.md

* Update Convert_Style_Transfer_From_MXNet.md

* Update Convert_Faster_RCNN.md

* Update Convert_Mask_RCNN.md

* Update Convert_Bert_ner.md

* Update Convert_Cascade_RCNN_res101.md

* Update Convert_F3Net.md

* Update Convert_QuartzNet.md

* Update Convert_RCAN.md

* Update Convert_RNNT.md

* Update Convert_YOLACT.md

* Update Convert_AttentionOCR_From_Tensorflow.md

* Update Convert_BERT_From_Tensorflow.md

* Update Convert_CRNN_From_Tensorflow.md

* Update Convert_DeepSpeech_From_Tensorflow.md

* Update Convert_EfficientDet_Models.md

* Update Convert_FaceNet_From_Tensorflow.md

* Update Convert_GNMT_From_Tensorflow.md

* Update Convert_NCF_From_Tensorflow.md

* Update Convert_Object_Detection_API_Models.md

* Update Convert_RetinaNet_From_Tensorflow.md

* Update Convert_Slim_Library_Models.md

* Update Convert_WideAndDeep_Family_Models.md

* Update Convert_XLNet_From_Tensorflow.md

* Update Convert_YOLO_From_Tensorflow.md

* Update Convert_lm_1b_From_Tensorflow.md

* Update Customize_Model_Optimizer.md

* Update Extending_Model_Optimizer_with_Caffe_Python_Layers.md

* Update docs/MO_DG/prepare_model/FP16_Compression.md

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

* Update docs/MO_DG/prepare_model/FP16_Compression.md

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

* Update docs/MO_DG/prepare_model/FP16_Compression.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_TensorFlow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_TensorFlow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_MxNet.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Kaldi.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Caffe.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Caffe.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Caffe.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Caffe.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Caffe.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Caffe.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Caffe.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Caffe.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Kaldi.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Kaldi.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Kaldi.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Kaldi.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Kaldi.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_Kaldi.md

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

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_ONNX.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_PyTorch.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_PyTorch.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_PyTorch.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Convert_Model_From_PyTorch.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Converting_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Converting_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Converting_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/IR_suitable_for_INT8_inference.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/IR_suitable_for_INT8_inference.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/IR_suitable_for_INT8_inference.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/IR_suitable_for_INT8_inference.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/IR_suitable_for_INT8_inference.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/IR_suitable_for_INT8_inference.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/kaldi_specific/Aspire_Tdnn_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/kaldi_specific/Aspire_Tdnn_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/mxnet_specific/Convert_Style_Transfer_From_MXNet.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/onnx_specific/Convert_Faster_RCNN.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/onnx_specific/Convert_GPT2.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/onnx_specific/Convert_Mask_RCNN.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/pytorch_specific/Convert_Bert_ner.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/pytorch_specific/Convert_Cascade_RCNN_res101.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/pytorch_specific/Convert_Cascade_RCNN_res101.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/pytorch_specific/Convert_RNNT.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/pytorch_specific/Convert_YOLACT.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/pytorch_specific/Convert_YOLACT.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/pytorch_specific/Convert_YOLACT.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/pytorch_specific/Convert_YOLACT.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_AttentionOCR_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_BERT_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_BERT_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_CRNN_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_DeepSpeech_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_DeepSpeech_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_EfficientDet_Models.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_EfficientDet_Models.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_FaceNet_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_FaceNet_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_NCF_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_NCF_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_NCF_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_RetinaNet_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_Slim_Library_Models.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_Slim_Library_Models.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_Slim_Library_Models.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_WideAndDeep_Family_Models.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_WideAndDeep_Family_Models.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Update Getting_performance_numbers.md

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Cutting_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update Convert_Model_From_Kaldi.md

* Update docs/MO_DG/prepare_model/convert_model/Cutting_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Apply suggestions from code review

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

* Update docs/MO_DG/prepare_model/Supported_Frameworks_Layers.md

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

* Update docs/MO_DG/prepare_model/convert_model/Cutting_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Cutting_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/Cutting_Model.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_NCF_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_Object_Detection_API_Models.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_GNMT_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_FaceNet_From_Tensorflow.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/MO_DG/IR_and_opsets.md

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

* Apply suggestions from code review

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

* Update docs/MO_DG/prepare_model/Getting_performance_numbers.md

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

* Apply suggestions from code review

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update

* Update docs/MO_DG/prepare_model/Supported_Frameworks_Layers.md

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

* Update docs/MO_DG/prepare_model/Supported_Frameworks_Layers.md

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

* Update docs/MO_DG/prepare_model/Supported_Frameworks_Layers.md

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

* Apply suggestions from code review

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

* Update Convert_Model_From_Paddle.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-06-02 17:05:14 +02:00
Eddy Kim 04b69af0f5 [GPU] Support for PReLU with multiple dims slope tensor for GPU (#11782)
* reshape a slope tensor of channel-wise prelu

* changed to follow prelu spec

* added unittests for prelu with multiple dims slope

* Update constant.cpp

Blanks are added.

* added comments about PReLU slope reshape policy

* added int8 prelu fusion tests
2022-06-02 23:01:01 +09:00
Yuan XuandKarol Blaszczak fc61b001c0 Yuan transition guide restructure (#11778)
* Add Overview page

* Revert "Add Overview page"

* restructure

* update

* updates

* update

* update

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/preprocessing.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* fix formatting

* fix formatting

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-06-02 11:33:44 +00:00
Katarzyna Mitrus fb09555b6d [Eye-9] Extend MO with Eye-9 op (#11555) 2022-06-02 11:29:55 +02:00
guozhong wang 5b75d69712 add testcase for EXCLUSIVE_AYSNC_REQUESTS when input device is AUTO (#11716)
* add AUTO cpu and gpu testcase for EXCLUSIVE_AYSNC_REQUESTS

* add AUTO myriad testcase for EXCLUSIVE_AYSNC_REQUESTS
2022-06-02 10:28:30 +08:00
guozhong wangHu, Yuan <yuan2.hu@intel.com>Chen PeterShen, Wanglei <wanglei.shen@intel.com>
cd771ed23b Simple graph correctness test for virtual devices (#11492)
* add cumulative correctness test

* add infer_correctness test

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

* add comments

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

Co-authored-by: Hu, Yuan <yuan2.hu@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
2022-06-02 09:42:38 +08:00
Mykhailo Hnap d26ed6a180 [GPU] Roll-7 (#11602)
* [GPU] Implement Roll kernel

* [GPU] Add Roll kernel selector

* [GPU] Add Roll primitive

* [GPU] Add Roll helpers

* [GPU] Implement unit tests for the Roll operation

* [GPU] Add Roll operation to GPU plugin

* [GPU] Add single layer tests for the Roll operation

* [GPU] Add changes after review

* [GPU] Improve cldnn unit test
2022-06-02 09:42:11 +09:00
Jan Iwaszkiewicz c7f8112339 [ONNX] Extend ONNX FE with SoftSign-9 operation (#11766) 2022-06-01 13:37:17 +02:00
River Li 042bd7274a Dynamic shape mem reuse solution (#11667)
* Dynamic shape memory reuse solution

* Fix Split node to properly work with dyn mem

* Fix race condition for Memory mgrHandle

* Avoid Memory race condition between GetData and SetDataHandle

Add a lock for race condition between  ov::intel_cpu::Memory::GetData() and ov::intel_cpu::Memory::SetDataHandle() is not a good solution,
which will impact the inference performance. We found that it is unnecessary get edge DataPtr in inferRequest::SetBlob or GetBlob, which
only need the tensorDesc, so we can only get tensorDesc to replace get dataPtr to avoid this race condition.

* Resolve reviewer's comments

* Avoid performance impact due to frenquent reset MemMngrHandle

If MemMngrHandle already has been assigned an external buffer, it can be reused.
Else it need create a new one.
2022-06-01 18:49:47 +08:00
Artur Kulikowski 8b1ed3d5b2 Fix onnx_frontend_tests (#11358) 2022-06-01 10:59:37 +02:00
Artur Kulikowski c519aff42f Enable ShuffleChannelsFusion and DepthToSpaceFusion in MOC (#11662)
Ticket: 79523
2022-05-31 11:09:00 +02:00
Chenhu Wang 2e4f14a9f7 fix unitialized value in code scan (#11711) 2022-05-31 05:53:50 +03:00
cecilia peng 016c5f537a Cecilia/multiclass nms9/cpu impl (#11246)
* multiclass_nms opset9 spec, api, reference, paddle fe mapper, paddle fe unittest.

* multiclass_nms opset9 cpu node impl.

* multiclass_nms opset9 shape infer fix.

* multiclass_nms opset9: add transform ConvertMulticlassNms8ToMulticlassNms9.

* ConvertMulticlassNmsToMulticlassNmsIE: to MulticlassNmsIEInternal

* add test dependency package paddledet==2.1.0

* 1. fix for roisnum overflow. 2. common shape_infer private function.

Signed-off-by: jialipen <cecilia.peng@intel.com>

* 1. use common infer_shape helper. 2. fix roisnum overflow issue. 3. fix for nmsWithEta.

* test suite for opset9 multiclass_nms smoke tests pass, with both static and dynamic shapes.

code clean for unit test.

* decouple specification from this PR.

* op fuzzy: dynamic input/output

* reference impl refactor

* multiclass_nms_base no need clone_inputs.

* code clean

* restrict ppdet import

* fix clang format error

* change ppdet import to resolve CI fail issue related to its dependency.

* fix CI

* refactor: multiclass_nms_shape_inference for opset9 and reference impl.
TODO: could be applied to opset8 and even matrix_nms.

* fix CI build failure.

* CI fix for ambiguous namespace reference issue when
building static libs.

* update nms save_model python scripts.

* dynamic inputs for NMS with CPU plugin.

* copyright header for test scripts.

* op comformance test for multiclass_nms_9.

* minor update: is_type

* python opset9 and multiclass_nms

* flake8 CI fix

flake8 CI fix

flake8 CI fix

* remove NmsBase. stage1.

flake8 CI fix

remove NmsBase. stage 1 fix.

* rm NmsBase. stage2.

* more multiclass_nms prop tests and fix.

* remove unchanged ops from binding opset9.

* dependcy of paddle_tests.

* fix: add MulticlassNms to op mapper.

* clang format fix

* fix merge error.
2022-05-31 07:56:01 +08:00
Sungeun Kim 82fdf165eb [GPU] choose onednn for 3d conv (#10857)
* add formats for 3d conv
   data formats
   -bs_fs_zyx_bsv32_fsv32
   -bs_fs_zyx_bsv32_fsv16
   -bs_fs_zyx_bsv8_fsv4
   -bs_fs_zyx_bsv8_fsv2
   -bs_fs_zyx_bsv16_fsv32
   -b_fs_zyx_fsv2, b_fs_zyx_fsv4
   weight formats
   -os_is_zyx_osa2_isa8_osv8_isv2
   -os_is_zyx_osv8_isv4
   -os_is_zyx_osv8_isv2
   -gs_oizyx_gsv32
* add supported formats for primitives
* choose onednn convolution impl for 3d conv
* optimize layout of shallow depth convolution
* remove reorder for conv
* Don't remove reorder between bs_fs_zyx_b32_f16/f32 and bfyx.
* add formats to SetDefault() to optimize gws/lws for quantize/eltwise
* fallback cldnn if onednn pooling's layout is b_fs_zyx_fsv32 and i8.
* fixed wrong position for new weight formats
* restore imad_case()
* This func is used to choose format for fallbacked cldnn
* [GPU] add debug flag: OV_GPU_SerialCompile
    0(default): parallel compile
    1: serial compile
* add is_mixed_layout
* remove format::bs_fs_zyx_bsv8_fsv4 in needs_onednn_small_ic_to_blocked
* prevent to fuse the reorder which is between quantize and conv
* shallow feature first conv
2022-05-31 07:54:00 +09:00
Yuan Xu b67ffe303f Fix a heading issue in Auto (#11744)
* fix the heading issue

* fix headings
2022-05-30 09:01:54 +00:00
Artur KulikowskiandMichal Lukaszewski 93021121e3 Fix cutting the graph (#11574)
* Revert "[MO args][ONNX FE]fix cutting graph with input, output or both (#9698)"

This reverts commit 2b03d5fe66.

* Fix cutting the graph when inputs/outputs are passed to the MO

* Check that port exists

* Simplification of getting node port

* Reducing amount of nesting inside searching of node by operation name

* Refactoring

- remove mutable default arg
- changes in code style
- change variables name

* Check that user input data type is dictionary

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-05-30 10:04:24 +02:00
guozhong wang f5e2a463b5 remove CPU from default candidate list while GPUs more than 2 (#11753) 2022-05-30 10:04:13 +08:00
Tomasz Jankowski 70e9cc0ce8 Enable ConvertNegative in MOC (#11720) 2022-05-27 13:37:35 +02:00
Artur Kulikowski ae84e11a41 [ONNX Import] add method Node::get_attribute_as_constant() (#10783)
Tickets: 53284
2022-05-27 12:34:48 +02:00
Katarzyna Mitrus 8a975c886a [MO] Support for TF GRUBlockCell (#11732)
* Add GRUBlockCell front extractor

* Add GRUBlockCell Op to mo ops

* Add TF GRUBlockCell mo layer tests

* Add GRUBlockCellToGRUCell Replacement init

* Update GRUBlockCellToGRUCell Replacement with gate order adjustment

* Update GRUBlockCellToGRUCell Replacement with weights transpose

* GRUBlockCellToGRUCell Replacment refactor

* Set tests eps to avoid sporadic failures

* Style
2022-05-27 11:47:42 +02:00
Bartek Szmelczynski da09272d9f remove xfails and update tolerance (#11729) 2022-05-27 10:26:28 +02:00
Bartek Szmelczynski ffd797bc9f [PYTHON][NMS-9] Extend Python API for NMS-9 (#11681)
* extend NMS-9 ngraph python

* add tests for NMS

* move tests for NMS from test_reduction to test_create_op
2022-05-27 10:25:49 +02:00
Sungeun Kim 7a1e7f122f [GPU] some convs are in ref for WDSR (#11728)
* add supported data types for onednn conv

* Remove case: in_f32 to out_f32 in are_data_types_suitable_for_onednn
2022-05-27 13:50:30 +09:00
Artur Kulikowski 873e3dad2d Limiting protobuf to version < 4.0.0 (#11748)
* Upgrade Protobuf to version 3.18.2 in python's requirements

* PaddlePaddle tests requires protobuf < 4.0.0

* ONNX tests use protobuf 3.18

* Python bindings protobuf <4.0.0
2022-05-26 21:32:37 +02:00
Yuan Xu 1bcdf48f42 Get started guide restructuring and updating (#11719)
* Add Overview page

* Revert "Add Overview page"

* restructure get started home page

* update navigation menu

* update formatting

* update wording

* update

* rename configurations files

* update wording

* adjust the structure

* update formatting

* reverse the heading

* test with formatting

* 2nd version of Get Started homepage

* add line breaks

* change to ordered list

* update wording

* update content

* updates

* update DL workbench reference

* update wording

* update references to pip installations

* remove redundant files

* update headings
2022-05-26 17:09:31 +02:00
Paul Youngsoo AhnAhn, Paul Y <paul.y.ahn@intel.com>Vladimir Paramuzov
c185198785 [GPU] Added UUID property(#81574) (#11567)
Co-authored-by: Ahn, Paul Y <paul.y.ahn@intel.com>

Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com>
2022-05-26 16:44:53 +09:00
opoluektov-lohikaandtgubanova-lohika ccd001f25b [GPU] Support axis 0 for Softmax (#10364)
* [GPU] Modify Softmax single layer tests to check Softmax-8 is supported with axes in [-rank, rank) interval

* [GPU] Fix cldnn::softmax::dimension_t documentation

* [GPU] Fix ParamsKey::EnableSoftmaxDim

Support Z dimension.

* [GPU] Add Softmax single layer test that checks 5D case

Since some Softmax kernel code contains ifdef on 5-dimensional case,
a test case is needed that covers this functionality.

* [GPU] Support axis 0 in Softmax

* [GPU] Modify Softmax single layer tests to check axis 0

* [GPU] Modify Softmax items class optimized kernel to handle axis 0 correctly

Modify single layer test accordingly.

* [GPU] Modify Softmax unit-test to check softmax::normalize_b

* Split SoftMaxLayerTest into opset1 and opset8 versions

Use SoftMax8LayerTest in the tests throughout repository.
SoftMaxLayerTest now defaults to SoftMax1LayerTest for compatibility.

* [GPU] Add f16 test-case for Softmax single-layer test

Co-authored-by: tgubanova-lohika <tgubanova@lohika.com>
2022-05-26 12:06:08 +09:00
Bo Liu 1cce278fcb Paddle Frontend Op conversion: ROIAlign9,Sqrt,Swish (#11661)
* Paddle Frontend Op conversion: ROIAlign9,Sqrt,Swish

* modify import ppdet way based on the latest master branch
2022-05-26 08:38:31 +08:00
Tomasz Dołbniak dd930fdb6e GridSample-9 specification (#11703) 2022-05-25 21:34:11 +02:00
yanlan songandHu, Yuan2 <yuan2.hu@intel.com> 0c7840ef28 multi code refine (#11663)
* draft

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

* refactor for multi

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

* refactor auto draft

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

* try to fix executable get config test failed issue

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

* set ExecNetwork only one time

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

* format code and using alias

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

* clear head file

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

* change name from Context to ScheduleContext

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

* polishing

Signed-off-by: fishbell <bell.song@intel.com>

* polish & new implementation

Signed-off-by: fishbell <bell.song@intel.com>

* enable/test a new schedule

Signed-off-by: fishbell <bell.song@intel.com>

* port fps logs over

Signed-off-by: fishbell <bell.song@intel.com>

* restructure

Signed-off-by: fishbell <bell.song@intel.com>

* fix windows build failure

Signed-off-by: fishbell <bell.song@intel.com>

* clean up code

Signed-off-by: fishbell <bell.song@intel.com>

Co-authored-by: Hu, Yuan2 <yuan2.hu@intel.com>
2022-05-25 22:53:47 +08:00
Tetiana Gubanova eb36b891eb [GPU] Impelement ExperimentalDetectronPriorGridGenerator-6 gpu implementation (#11632)
* Implement experimental_detectron_prior_grid_generator kernel

* register experimental_detectron_prior_grid_generator operation

* implement single layer tests

* add unit tests to detectron
2022-05-25 18:52:03 +09:00
Jan Iwaszkiewicz 320531def0 [MO] SoftSign operator extractors (#11726) 2022-05-25 11:44:26 +02:00
Krzysztof Bruniecki 81adc47e83 [GNA] Implement GNA memory region splitting (RO/Input/Output/State/Scratch) and export in GNA format enabled (#11577) 2022-05-25 11:40:50 +02:00
4b08ce4787 [GPU] (I)Dft with single layer test (#9891)
* dft with single layer test

* idft with single layer test

* fix output param usage in dft

* update dft according to the clang-format

* move output layout setup to calc_output_layout

* add support for other dimensions

* add clDNN unit test for DFT/IDFT

* remove unnecessary original rank

* use defined formats in kernel

* fix dft docs

* changes after review

* Revert "fix dft docs"

This reverts commit 45b05172dfd161d92dae6d26e0f1b74748e56fd5.

Co-authored-by: Serhii Pavlovskyi <spavlovskyi@lohika.com>
Co-authored-by: Mykhailo Hnap <mhnap@lohika.com>
2022-05-25 16:24:46 +09:00
Mateusz Tabaka e767e9e243 Extend python API of RDFT and IRDFT (#11737)
Tickets: 79184 and 79198
2022-05-25 08:25:01 +02:00
Mateusz Tabaka 5ffba43f62 Disable fc_int8_inputs_fused_fp32_sum (#11709)
Ticket: 85210
2022-05-25 06:54:22 +02:00
Chenhu Wang fa7ca20425 NMS-9 op creation and ref implementation and CPU plugin (#11132)
* operation creation

* refrence implementation

* code style

* soft_nms_supported_by_nms9

* IE core and cpu plugin update

* apply review

* add transformation test
2022-05-25 06:27:12 +03:00
Karol Blaszczak 728a243d77 Docs-minor fix for documentation build error (#11724)
* Docs-minor fix for documentation build error

* fix one snippet comment and auto-device updates
2022-05-24 19:50:29 +02:00
Mateusz Tabaka 3a202c2775 Don't install networkx with version 2.8.1 (#11718)
With new networkx release (2.8.1) some of MO tests started to fail
with following error:
```
def __setstate__(self, state):
    self._graph = G = state["_graph"]
    self._adjdict = G._pred if hasattr(G, "pred") else G._adj
    AttributeError: 'Graph' object has no attribute '_adj'
```

Seems like regression that was introduced in
https://github.com/networkx/networkx/commit/f50fc70b8cb6b4f5217a6d5505ba0e2b82b4761b
2022-05-24 14:07:36 +02:00
Tetiana Gubanova 22ee17fda6 [GPU] AdaptiveMaxPool and AdaptiveAvgPool gpu implementations (#11556)
* Add kernel for AdaptivePooling

* Add GPU primitive for AdaptivePooling

* Add single-layer tests for GPU

* Add adaptive pooling unit tests
2022-05-24 00:48:55 +09:00
Mateusz Tabaka ff6ea62ce0 Fix local work size for conv kernel yxfb_yxio_b16 with fp16 (#11679)
convolution_gpu_yxfb_yxio_b16 for fp16 has hardcoded reqd_work_group_size
to (16, 1, 1). On devices where CL_DEVICE_MAX_WORK_GROUP_SIZE is 512
GetOptimalLocalWorkGroupSizes picks (16, 2, 1) for LWS.
That causes issues during clEnqueueNDRangeKernel since LWS doesn't match
with reqd_work_group_size in the kernel.
2022-05-23 15:59:37 +02:00
Mateusz Tabaka fbc99ef1ad Disable conv_int8_activation_eltwise_quantize_onednn/bsv32_fsv32 (#11708)
Tests fail because eltwise is not fused properly to convolution.

Ticket: 85205
2022-05-23 12:50:53 +02:00
Mateusz Tabaka 488315fe2e Fix pooling_onednn_activation2 test in cldnn tests (#11680) 2022-05-23 10:26:42 +02:00
Mateusz Bencer a859024d76 MO support of RDFT and IRDFT (#11690) 2022-05-21 13:14:23 +02:00
Szymon Irzabek 714601cf5b [GNA] Change Constants' precision in MVN decomposition (#11665) 2022-05-20 13:21:32 +02:00
Adam Tumialis 14f82ea31c Update CODEOWNERS
Maintainers for IE transformations changed to a new team.
2022-05-20 12:22:43 +02:00
Tetiana GubanovaandOleksii Khovan 91ab69e0c7 [GPU] Implement ExperimentalDetectronGenerateProposalsSingleImage-6 (#11616)
* Add single layer tests for GPU

* Add GPU primitive for ExperimentalDetectronGenerateProposalsSingleImage

* Add kernel for ExperimentalDetectronGenerateProposalsSingleImage

* Add unit test

* rename abbreviation edgpsi to the full name experimental_detectron_generate_proposal_single_image

* Add f16 support to operation

* Add f16 support to the unit test

* Add notification about the second output in primitive

Co-authored-by: Oleksii Khovan <okhovan@lohika.com>
2022-05-20 17:02:29 +09:00
Chen Xu 8886d0fde7 [CPU] Fix shape mismatching in fusing per channel (#11162)
* Fix shape mismatching in fusing per channel

* channelAxis data type changes to int
2022-05-20 11:05:17 +08:00
yanlan songandChen Peter 35ba009cd6 Bell/cache refine (#11414)
* cache compliance

Signed-off-by: fishbell <bell.song@intel.com>

* clang format

Signed-off-by: fishbell <bell.song@intel.com>

* fix crash

Signed-off-by: fishbell <bell.song@intel.com>

* enable test cases

Signed-off-by: fishbell <bell.song@intel.com>

* enable more tests

Signed-off-by: fishbell <bell.song@intel.com>

* refine cases

Signed-off-by: fishbell <bell.song@intel.com>

* do not use try catch

Signed-off-by: fishbell <bell.song@intel.com>

* case refine

Signed-off-by: fishbell <bell.song@intel.com>

* fix unicode failure

Signed-off-by: fishbell <bell.song@intel.com>

* use model_path.empty instead of try catch

Signed-off-by: fishbell <bell.song@intel.com>

* add mock test

Signed-off-by: fishbell <bell.song@intel.com>

* add more mock test

Signed-off-by: fishbell <bell.song@intel.com>

* disable unicode test on windows

Signed-off-by: fishbell <bell.song@intel.com>

* add hetero caching/stateful mode support

Signed-off-by: fishbell <bell.song@intel.com>

* remove the disable label for CPU

Signed-off-by: fishbell <bell.song@intel.com>

* resolve the CI failure

Signed-off-by: fishbell <bell.song@intel.com>

remove redundant lines

Signed-off-by: fishbell <bell.song@intel.com>

Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-05-20 10:17:40 +08:00
76dfeceb93 [Eye-9] Reference and CPU implementation for Eye-9 (#11538)
* Added shell for Eye-9

* Updated spec for Eye-9

* Added reference for Eye-9

* eye cpu

* Added op impl check for Eye-9

* Fix unallowed dynamic to static dim conversion in eye shape_infer

* Add template plugin tests for dynamic shapes

* Add template plugin tests for dynamic shapes batch input

* Enable batch shape input dynamic rank

* Uncomment 3D batch cpu Eye tests

* Update assertions and messages

* use ov::element type

* Remove redundant evaluate from eval map

* Style fix

* Add static_cast<T>(1) to cpu eye

* Add defaults to eye cpu class members

* Reuse out_ptr and checks

* Reutrn if onesPerBatchNum == 0

* Add Eye CPU Dynamic shape tests with 2D batch

* Additional test cases for CPU and reference

* Disable 3D batch eye cpu tests

* Fix CPU implementation for matrix with not equal cols and rows

* Update CPU test name

* Disable CPU Eye 3D batch static shapes tests

Co-authored-by: Alexandra Sidorova <alexandra.sidorova@intel.com>
Co-authored-by: Yury Gaydaychuk <yury.gaydaychuk@intel.com>
2022-05-19 16:37:00 +03:00
Bartek SzmelczynskiandJan Iwaszkiewicz f83530138e [ROIAlign-9] Extend nGraph Python API for operation "ROIAlign-9" (#11572)
* add opset8 ngraph ROIAlign op

* fix style

* fix style v2

* remove redundnat added files

* fix __init__.py imports

* fix style v3

* fix wrong imports

* fix flake error

* fix minor errors

* add blank line

* fix args name

* Update src/bindings/python/src/compatibility/ngraph/opset9/ops.py

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* update docsstring, move roi_align tests to test_create_op.py file

* Update src/bindings/python/tests/test_ngraph/test_create_op.py

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Update src/bindings/python/tests_compatibility/test_ngraph/test_create_op.py

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* add alias

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-05-19 13:55:46 +02:00
Mateusz Bencer 4d0a572f13 Move RemoveConcatZeroDimInput and RemoveMultiSubGraphOpDanglingParams to CNNNetworkNGraphImpl ctor (#11547) 2022-05-19 10:50:22 +02:00
Yuan Xu 18260e0b4b Revert "CVS-82186 port to master (#11701)" (#11704)
This reverts commit 31dab599c7.
2022-05-18 13:43:22 +02:00
Tomasz Jankowski a61902fc7c Disable ONNX UT on Mac (#11685) 2022-05-17 16:15:26 +02:00
Tomasz Dołbniak 94ce06fc29 ONNX node names as friendly names (#10532) 2022-05-17 13:47:52 +02:00
Yuan XuandNikolay Tyukaev 31dab599c7 CVS-82186 port to master (#11701)
* Add Overview page

* Revert "Add Overview page"

* plugin api separate config (#11109)

Co-authored-by: Nikolay Tyukaev <nikolay.tyukaev@intel.com>
2022-05-17 11:46:46 +00:00
hyunback kim 8691b88296 [GPU] Support weight tag for oneDNN v2.6 (#10859)
* Update oneDNN rls-v2.6
* Support weight tag for oneDNN v2.6
* Fix first conv selection issue in oneDNN
* oneDNN v2.6 required specific tags to run jit:ir primitives.
* any_tag can find optimized primitives in oneDNN.
* Enable aBcd2b src tag for oneDNN v2.6
* Add create_memory_desc from format string.
* Apply group depthwise separable conv uses jit:ir in oneDNN v2.6
* Use byxf format.
* Update only use acdb format in shallow group conv
* Fix refconv selection in shallow conv with post operations.
2022-05-17 16:55:55 +09:00
Taylor Yeonbok Lee a82a0d3672 [GPU] Improve int8 FC performance (#11612)
* Enable reshape int8

* Fixed quantize fusing through reorder+reshape : Fixed the condition to check per_tensor_input_shift only when need_input_shift is true

* minor change

* Allow FP quant to be fused to FC/gemm

* Disable reshape tranform for onednn until onednn FC is optimized
2022-05-17 12:48:38 +09:00
Tomasz Dołbniak ffea6b5aac ONNX Resize - sizes/scales inputs handling (#11692) 2022-05-16 20:05:06 +03:00
Mateusz Bencer 3b32502fbf Add IRDFT reference implementation (#11642) 2022-05-16 10:30:56 +03:00
9648080fbc Meiyang/paddle generate proposals 2 (#11285)
* create new op v9::GenerateProposalsSingleImage and support paddle generate proposal v2

* support scale in GenerateProposals

* Add output roi_num in GenerateProposal; change anchor's shape to [H, W, A, 4]

* fix paddle generate proposals frontend issue

* rename MKLDNNGenerateProposalsSingleImage to GenerateProposalsSingleImage

* add GenerateProposals attribute 'roi_num_type'

* fuse type togenerate_proposals

* multibatch support

* fix review comments; paddle tests added

* use pad instead of concat

* fix generate proposals visitor test parameter

* add testcase for generate proposal scale and fix generate proposals reference issue

* rename to GenerateProposals

* add generate proposals ngraph reshape test; opset9 support and test;

* fix compiling issue

* add dependency 'paddledet' on paddle frontend test

* Update src/core/include/ngraph/op/generate_proposals.hpp

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

* Update src/core/include/openvino/op/generate_proposals.hpp

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

* Update src/core/reference/include/ngraph/runtime/reference/generate_proposal.hpp

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

* Update src/core/src/op/generate_proposals.cpp

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

* Update src/core/include/ngraph/op/generate_proposals.hpp

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

* Update src/core/src/op/generate_proposals.cpp

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

* Update src/core/src/op/generate_proposals.cpp

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

* Update src/core/src/op/generate_proposals.cpp

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

* Update src/core/include/openvino/op/generate_proposals.hpp

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

* Update src/core/include/openvino/op/generate_proposals.hpp

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

* fix compiling issue after newly added commit

* clang fix

* fix compiling issue

* add paddledet dependency

* fix compiling issue

* fix compiling issue

* clang fix

* skip ppdet.modeling.ops in paddle generate proposals test

* single layer update after rebase master

* set pycocotools to 2.0.4

* skip ppdet.modeling.ops.__init__

* add paddle test dependency

* fix template issue

* rename mkldnn to dnnl

* fix template issue

* fix windows compiling issue

* update testcase vector construction

* add shape check and test; add some annotation; apply review suggestion

* Revert "add paddle test dependency"

This reverts commit 959a2d770d3f6cb28d4609981c79cc49a25847fd.

* rm dependency of paddledet for paddle frontend test

* update opset9 number

* fix windows issue

Co-authored-by: Luo Cheng <cheng.luo@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-05-16 09:13:52 +08:00
Jade Cho 6ce6a7662e [GPU] Support implicit crop in input transposition. (#11496)
* [GPU] Support implicit crop in input transposition.

+ Make the crop in front of quantize implicit by changing output format to bfyx.
+ Use implicit concat after quantize nodes.

* Add unit test for implicit crop and concat.

+ remove unnecessary code.
2022-05-13 18:02:13 +09:00
Min, Byungil 5da3162cd1 [GPU] Bugfix for invalid LoadType for planar input (#11493)
+ Modified jitter Load for planar input of fused eltwise
+ Bugfix in jitter if planar input has LT_ALIGNED_READ

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-05-13 17:31:20 +09:00
Jan Iwaszkiewicz d19b80a82d [SoftSign-9][PYTHON] Python API for SoftSign (#11677) 2022-05-13 09:55:14 +02:00
Jade Cho de1db99383 [GPU] Replace out scale attribute of onednn pooling with binary mul (#11674) 2022-05-13 13:34:12 +09:00
yanlan song b1ecd3ea8f only strip when device start with - (#11651)
Signed-off-by: fishbell <bell.song@intel.com>
2022-05-12 04:53:38 +00:00
Jan Iwaszkiewicz 62d17a070a [SoftSign-9] Shell, reference impl and decomposition for SoftSign-9 (#11546) 2022-05-11 16:44:15 +02:00
Katarzyna Mitrus 7851020cd3 [ONNX] Enable ONNX ROIAlign-16 (by ov::v9::ROIAlign) (#11633) 2022-05-11 11:43:15 +02:00
Wilson Seok 5456631517 Cleanup eltwise skipped testcase in gpu single layer test (#11525)
* cleanup eltwise skipped test cases in gpu plugin

* update comment clearly
2022-05-11 18:07:36 +09:00
hyunback kim a7368d2e35 [GPU] Apply hsigmoid decomposition in oneDNN post-opt (#11603)
* [GPU] Apply hsigmoid decomposition in oneDNN post-opt

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-05-11 10:07:02 +09:00
Anuj MittalandYuan Xu 01a08c0a97 installing-openvino-yocto: update for 2022.1 (#11657)
Update the branch to be used for 2022.1 and remove reference to
-staticdev package which isn't generated anymore.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-05-10 18:00:42 +02:00
bdf1d92660 1. Makes transition guide link absolute so it will work for API docs using the same theme (#11610)
2. Adds # to links that are broken in openvino_docs_get_started_get_started_demos.htm

Signed-off-by: intelkevinputnam <intelkevinputnam@github.com>

Co-authored-by: intelkevinputnam <intelkevinputnam@github.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-05-10 17:59:48 +02:00
4924e33255 Proofreading the Transition Guide (#11543)
* Update common_inference_pipeline.md

Minor stylistic and grammar corrections.

* Proofreading

Minor stylistic and grammar corrections.

* Update common_inference_pipeline.md

* Update common_inference_pipeline.md

* Proofreading

Minor corrections

* Update preprocessing.md

* Update intro.md

* Update deployment_migration.md

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/deployment_migration.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/deployment_migration.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/deployment_migration.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/deployment_migration.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

* Update intro.md

* Update docs/OV_Runtime_UG/migration_ov_2_0/common_inference_pipeline.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/deployment_migration.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/deployment_migration.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update deployment_migration.md

* Update intro.md

* Update common_inference_pipeline.md

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update docs/OV_Runtime_UG/migration_ov_2_0/intro.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* Update intro.md

* Update deployment_migration.md

* Update docs/OV_Runtime_UG/migration_ov_2_0/deployment_migration.md

Co-authored-by: msmykx <101244365+msmykx-intel@users.noreply.github.com>
Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-05-10 17:59:12 +02:00
Paul Youngsoo Ahn 35b8972da3 [GPU] fix coverity control flow issue (#11585) (#11585)
- Coverity CID: 1488473
- Coverity CID: 1486904
2022-05-10 09:15:03 +09:00
Bo Liu eddd31f58f Liubo/roi align 9 ov core cpu plugin (#11188)
* roi_align_9: ov_core, transformations, template_plugin

* roi_align_9: CPU Plugin

* keep only constructor with enums which is aligned with spec

* remove evaluate function for ROIAlign_9

* Add op check test for operation ROIAlign-9

* Apply suggestions from code review

* fix version name from 'v0' to 'v3' in transform part

* use common shape_infer function for v3 and v9

* remove'tf_' prefix for ROIAlign::AlignedMode to avoid misleading for models from different platforms
2022-05-10 08:14:37 +08:00
ad61593aa5 Update Convert_Model_From_TensorFlow.md (#11425) (#11591)
* Update Convert_Model_From_TensorFlow.md (#11425)

* Apply suggestions by Yuan

The changes are made in the port PR, so will be published with the 22.2 version.

Co-authored-by: Evan <evan.juras@gmail.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-05-09 16:49:15 +02:00
Karol Blaszczak ab7b9afc14 Docs: Add links to specific examples - port (#11618) (#11653)
* Docs: Add links to specific examples (#11618)

* Update docs/OV_Runtime_UG/integrate_with_your_application.md
* Add links to specific examples

This edit adds links to more example applications, making it easier for users to discover how to build an OpenVINO application around their specific model.

* Add links to MO installation and ONNX examples (#11617)

These edits help make it easier for a new user to find more information on how to convert ONNX models.

* Apply suggestions by Yuan

The changes are made in the port PR, so will be published with the 22.2 version.
Co-authored-by: Evan <evan.juras@gmail.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-05-09 16:48:39 +02:00
Tomasz Dołbniak 53e62d2ac6 ONNX OperatorsBridge - non-static version (#11578) 2022-05-09 12:58:51 +00:00
Kelvin Choi 860a074fa9 [GPU] Add tuning cache v2 for yolo_v3 and yolo_v3_tiny (#11589) 2022-05-09 17:10:11 +09:00
Mateusz Bencer 99c04c0d6a additional validation of places (#11480) 2022-05-09 07:24:07 +00:00
yanlan songandTaylor Yeonbok Lee 35ad252003 Bell/rule out device (#11516)
* Fix batchability check of MAX_BATCH_SIZE

* Applied review comment

* new implementation

Signed-off-by: fishbell <bell.song@intel.com>

* enable device removing

Signed-off-by: fishbell <bell.song@intel.com>

* enable tests

Signed-off-by: fishbell <bell.song@intel.com>

* Update plugin.hpp

cpplint error

Co-authored-by: Taylor Yeonbok Lee <taylor.lee@intel.com>
2022-05-07 17:41:59 +08:00
Mateusz Bencer c404e7f76d Handle onnx shape inference exceptions (#11451) 2022-05-07 01:04:07 +03:00
Mateusz Bencer d60deae083 If shape inference - scalar and 1D union handle (#11499) 2022-05-07 00:55:36 +03:00
Tomasz Jankowski e0e916b557 [ONNX] Extract onnx frontend tests from ov core unit tests (#11535) 2022-05-06 11:21:55 +02:00
Jan Iwaszkiewicz 6eb9c11d7e [PYTHON] Infer calls improvement (#11498) 2022-05-06 08:58:00 +02:00
yanlan song 912f40e74d stateful inferface impl for AUTO/HETERO (#11590)
* CPU for stateful model

Signed-off-by: fishbell <bell.song@intel.com>

* log

Signed-off-by: fishbell <bell.song@intel.com>

* hetero impl

Signed-off-by: fishbell <bell.song@intel.com>

* enable tests

Signed-off-by: fishbell <bell.song@intel.com>
2022-05-06 12:43:56 +08:00
guozhong wang 870455675c add cumulative_throughput for python (#11195) 2022-05-06 12:43:41 +08:00
guozhong wang 0a65f5f607 selectdevice returns MULTI:device in cumulative_throughput (#11367)
* selectdevice returns MULTI:device in cumulative_throughput

* load multi with throughput and disable cpu helper in cumulative

* disable cpu helper in cumulative_throughput

* add cumulative to bechmark_app help message

* modify benchmark_app.hpp clang-format
2022-05-06 12:42:59 +08:00
Andrew Kwangwoong Park caccde6a82 [GPU] Add TC for MXNet-style NMS model(decrease_label_id) (#10624)
- Add TC for decrease_label_id=true to cover MXNet-style NMS models
- Fix segfault issue that occurs when data precision is fp16

Signed-off-by: Andrew Kwangwoong Park <andrew.kwangwoong.park@intel.com>
Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-05-06 10:36:46 +09:00
Artur Kulikowski 1331eabbed Getting of python version depend on the used shell (#11614) 2022-05-05 23:42:54 +02:00
Katarzyna Mitrus 50287625d7 [Eye-9] Python API for Eye-9 (#11552) 2022-05-05 16:16:36 +02:00
mei, yang 2d0ffd8fe5 Specify GenerateProposals-9 (#11004) 2022-05-05 10:28:18 +02:00
Bo Liu d560cf19a3 Specify ROIAlign-9 (#11067) 2022-05-05 10:27:58 +02:00
cecilia peng e68613a2fc Specify MulticlassNonMaxSuppression-9 operation (#11083) 2022-05-05 10:27:47 +02:00
Mateusz Tabaka 68ef1555bc Enable test_loop_simple_precommit on GPU (#11625) 2022-05-05 09:55:02 +02:00
Tomasz Jankowski 0babf20bd2 Remove unsued map initialization (#11621)
Details:
- Unused variable removed.
- Added pytest markers declaration to avoid useless warnings.
Tickets:
70158
2022-05-05 00:50:34 +02:00
Mateusz Tabaka b92e10ff6e Fix setting default affinity property in cpuFuncTests (#11609)
CPU plugin sets default affinity to HYBRID_AWARE
if it's running on AlderLake, so we need to reflect that
in cpuFuncTests.
2022-05-04 12:42:43 +02:00
Tetiana GubanovaandOleksii Khovan 7dd8fbd47e [GPU] Einsum with repeated labels and ellipsis support (#11615)
* Einsum test helper

* Einsum single layer tests

* Add Einsum decomposition with repeated labels and ellipsis support
to GPU transformations pipeline

Co-authored-by: Oleksii Khovan <okhovan@lohika.com>
2022-05-03 20:46:22 +09:00
opoluektov-lohika 1ed03bbe6b Fix conformance test runner handling of input directories (#11611)
Check first whether the path specified by --input_dirs is a directory.

Otherwise the argument is always treated as a .lst file,
and in case it is a directory it silently fails,
which causes the test runner to not execute any tests intended.
2022-05-02 22:00:21 +09:00
Artur Kulikowski 26aa197cb1 Expand ONNX functions in Graph ctor (#11599)
* Expand ONNX function in constructor of class Graph

* Add test to expanding function GreaterOrEqual inside If op
2022-05-02 10:12:41 +02:00
Jan Iwaszkiewicz 8d221d1e06 Add lower bound for wheel package (#11595) 2022-04-28 13:02:46 +02:00
Sebastian GolebiewskiandKarol Blaszczak 844fbde328 Update installing-openvino-windows-header.md (#11221)
* Update installing-openvino-windows-header.md

* Update docs/install_guides/installing-openvino-windows-header.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-04-27 13:09:31 +02:00
Karol BlaszczakandYuan Xu f5781b1255 DOCS-cpu_language_review-port (#11537)
* DOCS-cpu_language_review

Co-Authored-By: Yuan Xu <yuan1.xu@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/CPU.md

* Update docs/OV_Runtime_UG/supported_plugins/Device_Plugins.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-04-27 13:07:38 +02:00
Mateusz Tabaka 54e5af95da Disable two cases from smoke_Conv_3D_FP32_fusingScaleShiftAndFakeQuantizePerChannel (#11536)
They sporadically fail in precommit.
Ticket: 84153
2022-04-20 14:34:46 +02:00
Mateusz Tabaka e53f702f81 Handle negative axis in SimplifySecondInputOfReshape (#11524)
Fixes #11501
2022-04-19 12:20:21 +02:00
Karol BlaszczakandNikolay Tyukaev 22398ac9cd sphinx google search (#11439) (#11506)
porting from 22.1 as per Andrey's request from 04.08
* sphinx google search

* fixes

* fixes

* fix version tabs

Co-authored-by: Nikolay Tyukaev <nikolay.tyukaev@intel.com>
2022-04-13 12:39:36 +02:00
Karol BlaszczakandHelena Kloosterman 1b5756a4d7 Docs benchmarktool python correction - port (#11505)
* DOCS-benchmarktool_python_correction

add info on tool installation

* Update docs/OV_Runtime_UG/Samples_Overview.md

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
2022-04-13 11:14:39 +02:00
Karol BlaszczakandAndrey Zaytsev 1e1735b022 Fixed operation names (#11447) (#11507)
Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
2022-04-13 11:14:24 +02:00
Alexandra Sidorova 9dffa706fb Added shell for Eye-9 (#11210) 2022-04-12 12:49:07 +02:00
Przemyslaw Wysocki 76610393a0 [PYTHON] Change dependabot schedule (#11497) 2022-04-12 11:17:29 +02:00
Katarzyna Mitrus 5bedbbe05d [ONNX] Add Scan operator to ONNX Frontend (#11053) 2022-04-12 10:35:15 +02:00
Karol Blaszczak e1cd7bfc5b DOCS-review GPU article changes (#11477)
As per ticket #CVS-80053
int8 link removed
2022-04-12 10:08:10 +02:00
Phillip SchmidtandAndrey Zaytsev 4da0941cd2 Update README.md (#8048)
Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
2022-04-06 06:51:09 +03:00
Luo ChengandIlya Churaev e72d32065c [FrontEnd] add assign, meshgrid, expand_v2 for paddle faster_rcnn model (#10627)
* assign, meshgrid op support

* fix review comments

* add copyright message

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-04-06 09:43:18 +08:00
Alexander Zhogov 9f01380558 Azure CI: Set master ref branch (#11475) 2022-04-05 22:23:07 +03:00
Ilya Lavrenov c2703c81f6 Don't install nlohmann_json_schema_validator for samples (#11446)
* Try to improve gflags

* Try to improve gflags: part 2

* Tried to use dependencies on system

* Use nlohmann_jsonConfig from system

* Enabled nlohmann_json from system

* Improvements

* handle system gflags in developer package

* Simplifications

* Simplify dependency management

* Corrected package names

* Fixed subgraphsDumper configure stage

* Try to fix rhel8

* Try to fix macosx

* Fixed VPUX build

* Fixed aliasing issues

* Suppress some wanrings

* export gflags when build it

* Fixed some LTO

* Try to fix Mac

* revert

* use gflags as private dependency

* Aligned targets in developer package

* Fixed frontends tests build on U20 with LTO

* PAssed

* Don't use pkg_search_module(zlib ..) during cross-compilation

* Removed unused variables

* Fixed finding of zlib during cross-compilation

* CVS-83529

* Use nothreads_static

* Fixed python
2022-04-05 19:16:32 +00:00
Vladimir Paramuzov 050e2e518d [GPU] Replaced tensor dims usages with layout methods calls (#10984) 2022-04-05 21:49:34 +03:00
Irina Efode 01f530d443 API Conformance refactoring (#11421)
* ie_infer_request + ie_exec_net

* build

* build

* ov_compiled_model

* ov_infer_request

* ov_plugin

* ie_plugin

* build
2022-04-05 18:43:36 +03:00
Irina Efode 3f953b37c1 Reduce conformance execution time (#11416) 2022-04-05 18:40:33 +03:00
Jan IwaszkiewiczandAlexey Lebedev 8e9fb18882 [PYTHON] Properties API, improvements of OVAny (#11389)
* WIP for POC

* Bulkwork

* Clean up current solution

* Extend Core methods

* Refactor Any python converts

* add submodule to runtime

* Add initial tests

* Fix copy-paste error

* Extend test

* Improve casting options and move common parts to utils

* Add newline

* Fix properties, remove class approach, move to all string Properties API

* Fix codestyle

* Fix pystyle

* ResolveTODOs, better align and extend python api

* Add extended test cases

* Fix properties in one of compile_model overload.

Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com>

* Update src/bindings/python/tests/test_inference_engine/test_properties.py

Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com>

Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com>
2022-04-05 18:01:36 +03:00
Chenhu Wang fca2595293 Specify NonMaxSuppression-9 (#10729)
* define_NMS-9_specification

* default value as true for soft-nms-supressed-by-iou

* soft nms support

* comments apply
2022-04-05 15:58:02 +03:00
Karol Blaszczak bff9769dd2 DOCS-transitionguide_name_correction (#11450)
OpenVINO™  2.0 => OpenVINO™ API 2.0
2022-04-05 13:33:28 +02:00
Przemyslaw Wysocki 55497a12d8 [PYTHON] Add method to_dtype() to Type class (#11433)
* Add Type method to_dtype()

* Clang formatting

* Add Type __init__ binding

* Add Type constructor

* Add numpy types classes to test
2022-04-05 14:00:02 +03:00
Ilya Churaev 86495ceb0f Update readme content (#11201)
* Update readme content

* Updated HW support matrix

* Update README.md

* Update doc links to nightly

* Update README.md

* Update README.md

* Update README.md

* Add logo

* Update README.md

* fixed links

* Update README.md
2022-04-05 13:09:22 +03:00
3a36d90c11 [GNA] Moved PWL functional tests (#10731)
* Moving PWL to ngraph

* improving the running time of php_search; refactoring the pwl operation

* fixed erros & refactored code

* moved PWL op to GNA

* Update src/plugins/intel_gna/ops/pwl.hpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* Update src/plugins/intel_gna/ops/reference/pwl.hpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* Update src/plugins/intel_gna/ops/pwl.cpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* Update src/plugins/intel_gna/transformations/transpose_to_pwl.hpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* Update src/plugins/intel_gna/transformations/transpose_to_pwl.cpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* fixed compilation error

* Update inference-engine/tests/unit/gna/ngraph/transformations/gna_pwl.cpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* added some tests; changed algorithm of checking accuracy of pwl; refactoring

* added first and last segments; added fq and fixed errors

* fixed after review & rewrote some tests on ngraph

* removed debug logs & fixed code style check error

* s/ngraph_helper/ngraph_util

* removed TRANSFORMATIONS_API in PWLApproximation class declaration

* removed OPENVINO_API in Pwl class declaration

* replaced the deprecated version of evaluate() with a new one

* fixed some problems after reviewing

* fixed a problem when a value of function of left point of segment is less than minimum of function

* corrected a value of the right point of last segments

* [GNA] Moved pwl func tests

* Deleted deprecated test

* s/OPENVINO_RTTI/OPENVINO_OP

* Deleted conflicted test file

* fixed after review

Co-authored-by: Dmitrii Khurtin <dmitrii.khurtin@intel.com>
Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>
2022-04-05 11:43:24 +03:00
Maxim Gordeev 9c8a6aacb7 [IE Samples] Activating new parameter is compact mode(memory_reuse) in speech sample (#11405)
* [IE Samples] Activating new parameter is compact mode(memory_reuse) in speech sample

* changed format

* renamed the option to memory_reuse

* renamed the option
2022-04-05 11:31:05 +03:00
Andrey Noskov a018298023 [GNA] Deleted duplicated config test (#10601) 2022-04-05 11:27:01 +03:00
Maksim Doronin 4edf85c928 [RT][VPU]: Fixes for dynamic models (#10826)
* DynamicShapeResolver is able to save information about dynamic output in order to pass it in INFER_DYNAMIC_SHAPE mode. Previously, it propagated fully dynamic output shape (however ranks were equal) and dynamic Convolutions and Poolings were performed incorrectly. Now in the case of dynamic batch, DSR propagates only dynamic batch and Convolutions and Poolings are performed properly as a Loop of single-batch operations.
* Fixed dynamicToStaticShapeTranspose transformation. There was a bug: transposition indices could not be applied with Scatter because the formula is not applicable for this. Replaced with Gather.
i.e. Shape of output tensor of Transpose with transition [0,3,1,2] indices (NHWC [1, 224, 224, 3]->NCHW [1, 3, 224, 224]) was calculated by ScatterElementsUpdate. So output_shape[transposition[i]] = input_shape[i] and the result was output_shape=[1, 224, 3, 224] which was wrong. Vise-versa Gather does output_shape[i] = input_shape[transposition[i]] and the result is [1, 3, 224, 224] which is right.
* MaxPool and AvgPool can be sliced for loop in case of dynamic batch
* Convert stage for inputs is not inserted in the VPU model in the case of OV API 2.0. It did not cause a problem with non-dynamic functions because Graph Transformer has a pass to eliminate redundant converts (u8->f16, ~f16->f16~). In the case of dynamic inputs, yet another inserted Convert breaks data<->shape relations.
2022-04-05 11:19:43 +03:00
Egor Shulman ed190374fd [CPU] Added support of 'Batched' memory type (#10909) 2022-04-05 09:20:19 +03:00
Ilya Lavrenov 4ad20fb53f Use system dependencies (#11419)
* Try to improve gflags

* Try to improve gflags: part 2

* Tried to use dependencies on system

* Use nlohmann_jsonConfig from system

* Enabled nlohmann_json from system

* Improvements

* handle system gflags in developer package

* Simplifications

* Simplify dependency management

* Corrected package names

* Fixed subgraphsDumper configure stage

* Try to fix rhel8

* Try to fix macosx

* Fixed VPUX build

* Fixed aliasing issues

* Suppress some wanrings

* export gflags when build it

* Fixed some LTO

* Try to fix Mac

* revert

* use gflags as private dependency

* Aligned targets in developer package

* Fixed frontends tests build on U20 with LTO

* PAssed

* Don't use pkg_search_module(zlib ..) during cross-compilation

* Removed unused variables

* Fixed finding of zlib during cross-compilation
2022-04-05 04:47:22 +03:00
Ilya Lavrenov 90366c2c60 Fixed detection of sample type c / cpp (#11444) 2022-04-05 01:57:10 +03:00
Vladislav Volkov d654071b51 CPU Plugin refactoring: Transition from Intel MKL-DNN to oneDNN (#11023) 2022-04-05 01:10:53 +03:00
Yegor Kruglov 74638251e8 [MO] Support TensorFlow FusedBatchNorm with channel_first data_format (#11084)
* layout fix in FusedBatchNorm decomposition

* added tests
2022-04-05 00:13:58 +03:00
Anton Chetverikov c1dc71ce28 [MO] Fix IndexError inside ScatterNDUpdate shape inference function (#11220)
* Restore inputs order in IR Reader

* Add WA to numpy ndarrays IndexError

* Add comments to code

* Add unit test
2022-04-04 23:59:24 +03:00
Svetlana Dolinina c75bc65b83 added recursive run for transformation to fix fp16 IR with Interpolate inside If/Loop/TI (#10905)
* added recursive run for transformation to fix fp16 IR with Interpolate inside If

* added test for interpolate inside If

* remove useless variable

* fixed transformaion for divide

* fix code style

* commit auto change

* review fix

* add test for recursive call of divide marks

* removed empty line
2022-04-04 23:33:59 +03:00
Ilya Churaev 60f9f3dc92 Enabled LTO for static CPU (#11426)
* Enabled LTO for static CPU

* Update CMakeLists.txt

* Update CMakeLists.txt
2022-04-04 20:22:22 +03:00
Maxim Shevtsov 500d36e1c0 cherry-picking opt guide changes from the release branch (#11430) 2022-04-04 19:41:17 +03:00
Mikhail Letavin 417d75d80b [GPU] Fix allocation for cached USM remote blobs (#11304) 2022-04-04 18:16:53 +03:00
Fedor Zharinov 787610b0db -l option is replaced with -extensions (#10878) 2022-04-04 16:08:38 +03:00
Elizaveta Lobanova 9b4e8f5b59 [GNA] Fixed cascade concats binding (#11326) 2022-04-04 15:56:13 +03:00
Karol Blaszczak da8388e263 [DOCS] polish autodevice article (#11171) (#11427)
the article has been changed much and its language has been impacted in the process. Here are some corrections.
2022-04-04 13:12:18 +02:00
Gleb Kazantaev a52092deb0 Enable FQ fusions in MOC (#11269)
* Enable FQ fusions in MOC

* Fix codestyle
2022-04-04 13:34:01 +03:00
Edward Shogulin 542a374c40 [LPT] Introduce new quantization mode attribute (#11380) 2022-04-04 13:27:03 +03:00
Ilya ChuraevandIlya Lavrenov b9ba0bb40c Removed OV_NEW_API (#11082)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-04-04 13:07:12 +03:00
Dmitry Pigasin 80e7857eca [Python Speech Sample] Change argument format (#11012)
* Change `-i` argument format

* Change `-sf` argument format

* Change `-o` and `-r` argument format

* Fix saving file with multiple utterances

* Fix flake8 D415

* fix scale factor for imported models
2022-04-04 13:03:39 +03:00
Roman Kazantsev 9dee25fa79 [MO] Support TensorFlow Grouped Conv2DBackpropInput (#11420)
* [MO] Support TensorFlow Grouped Conv2DBackpropInput

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Correct computation of group number for ConvBackpropInput operation

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix get_conv_backprop_groups function

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Add unit-tests for Deconvolution shape inference

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2022-04-04 12:30:31 +03:00
Chenhu Wang 60521a92c9 [CPU] Fixed NMS implementation on APL targets (#10649) 2022-04-04 10:52:22 +03:00
Maxim Andronov 65a182aaea [CPU] Extract weight cache to executable network (#11118) 2022-04-04 10:47:58 +03:00
Vladimir Paramuzov afdaa7cf89 [GPU] Align permute axis format with IE (#11379) 2022-04-04 10:28:51 +03:00
Ilya Lavrenov d879e34363 Tbb: download only if system libraries are not found (#11415)
* Download custom TBB on demand

* Download TBBBind on demand

* Fixed install steps

* FIxes
2022-04-03 19:55:54 +03:00
Edward Shogulin 5d821453ae [LPT] Introduce new granularity attribute instead of OperationPerTensorQuantizationRestriction (#11330) 2022-04-03 19:35:04 +03:00
Ilya Lavrenov 29fb8c79b1 Don't use template plugin unconditionally (#11409) 2022-04-02 11:40:45 +03:00
Ilya Lavrenov 4fcc18c00e Tbb 2018 and older usage (#11411)
* fixed TBB

* Fixed compilation with old TBBs

* Fixed installation for custom provided TBB
2022-04-02 11:11:13 +03:00
Ilya Znamenskiy 1e4a1b2b4a [GPU] Klockwork issue 57997 fix (#10956) 2022-04-02 11:06:56 +03:00
Roman Kazantsev 1a288c2e99 Enable MO unit-tests but bom tests (#11399)
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2022-04-02 10:58:23 +03:00
Ivan Mikhalev 6105ea3902 [CPU] [DEBUG CAPS] Revert DNNL_VERBOSE (#11410)
Compilation with ENABLE_CPU_DEBUG_CAPS was fixed.
Previous to this change it failed due to undefined dnnl::impl::md2dim_str
(since DNNL_VERBOSE was disabled in the scope of PR #11244).
2022-04-02 10:57:29 +03:00
Andrey Zaytsev 415daecc26 Cherry-pick Feature/azaytsev/doc fixes 2022 1 1 (#11388) (#11407)
* Removed a redundant image

* Fixed ops specifications and other issues

* converted html links to anchor links

* converted html links to anchor links

* Fixed a link

* Fixed a link

* Changed anchor links according to dev review
# Conflicts:
#	docs/OV_Runtime_UG/Operations_specifications.md
2022-04-01 19:53:58 +03:00
Ilya Lavrenov 8ae7c9f2cc Disabled TBBBind usage for oneTBB (#11386) 2022-04-01 19:09:06 +03:00
Maxim Gordeev 2388f3b976 Updated docs for python's version of hello_reshape_ssd (#11401) 2022-04-01 18:21:40 +03:00
Vladislav Golubev a02b3f4995 [Transformation] MarkPrecisionSensitiveDivides extending to mark fp32 divides (#11391)
* MarkPrecisionSensitiveDivides: fp32 divides marking enabled

* ConvertDivide: added a negative test-case with fp32 divide on precision sensitive subgraph
2022-04-01 17:31:23 +03:00
Maksim Derbasov 56df3962e3 Fix for warnings spotted by clang compiler (#11384) 2022-04-01 16:10:51 +03:00
Maxim Andronov 3d92c8c4c7 [CPU] Avoid inserting reorder after RNN in native order case (#10799) 2022-04-01 16:02:50 +03:00
Nikita Semaev fca159293d Fix Bucketize Conformance tests for Template plugin (#11029)
* Right fill in the values of the inputs

* Using create_and_fill_tensor_unique_sequence() instead of create_and_fill_tensor()

* Fixing a problem with a missing parameter when calling the create_and_fill_tensor method

* Fix Bucketize Conformance tests inputs generation for Template plugin

* Correct filling of the first port (data)
2022-04-01 15:22:45 +03:00
Andrey Zaytsev cad355a03e Docs labels adjustment (#11227) (#11294)
* Adjusted documentation labels

* Renamed images

* fix doc tests

Co-authored-by: CCR\ntyukaev <nikolay.tyukaev@intel.com>
# Conflicts:
#	docs/IE_PLUGIN_DG/ExecutableNetwork.md
2022-04-01 15:06:55 +03:00
Anton Grishin 7efc85063b [GNA] Add GRUCell/GRUSequence/LSTMSequence support (#11333)
* Add grucell/gruseq/lstmseq unrolling

Add tests

* remove bidirectional decomposition

* completly remove bidirectional_sequences_decomposition
2022-04-01 14:16:11 +03:00
Nikita Semaev dc55f8bb5a Correct the order of passing arguments to the InputGenerateData constructor (Fix Round, Ceiling Conformance tests for Template plugin) (#11099)
* Correct the order of passing arguments to the InputGenerateData constructor

* Full range correction for random numbers

* Refactoring the argument sequence of the InputGenerateData class constructor

* A small imperfection

* Rollback changes that are related to range
2022-04-01 13:42:10 +03:00
Alexey Lebedev 6eaa15745a [PYTHON API] Tensor.data property for low precisions + packing (#11131)
* rebase old branch with master

* Fix doc style

* fix test

* update tests

* Add missed param

* Rewrite docstring for tensor and refactor set_input_tensors test

* update python exclusives

* keep compatibility

* remove notes about slices

* fix code style

* Fix code style
2022-04-01 12:04:04 +03:00
Karol Blaszczak 701d75eafa [DOCS]continue_language_review-transitionguide (#11177)
PR for 22.1 made, now porting to release...
some discrepancy between this version and the 22.1 branch seems to exist, so I adjusted the conflicting link to avoid build check errors...

the overview has been merged, the remaining articles are reviewed here
2022-04-01 17:03:40 +08:00
Ilya Churaev 80739700ff Added clone method for ov::Model (#11390)
* Added clone method for ov::Model

* Changed python API
2022-04-01 10:52:31 +03:00
Ilya Churaev 8ab5dbade0 Revert "Add constant folding to hetero to avoid dynamism on GPU (#10572)" (#11370)
This reverts commit 5b18677f1b.
2022-04-01 10:16:14 +03:00
Bo Liu 070f27a089 Paddle FasterRCNN Ops Conversion: roi_align, strided_slice, where (#10893)
* Paddle FasterRCNN Ops Conversion: roi_align, strided_slice, where

* add check for 'aligned' feature of 'roi_align' op; use common function for idx_node in 'striede_slice' op

* Apply suggestions from code review

* use common funciton for stride_slice and slice, OP_CHECK for 'where' op conversion

* Apply suggestions from code review
2022-04-01 14:37:28 +08:00
yanlan songandTaylor Yeonbok Lee 4057e408d8 Bell/shape auto (#11284)
* Fix batchability check of MAX_BATCH_SIZE

* Applied review comment

* clonenetwork in auto

Signed-off-by: fishbell <bell.song@intel.com>

* clone in correct way

Signed-off-by: fishbell <bell.song@intel.com>

Co-authored-by: Taylor Yeonbok Lee <taylor.lee@intel.com>
2022-04-01 11:09:22 +08:00
Mikhail Nosov e52bd441e2 Frontend exception safety (#11368)
* Frontend exception safety

Every call to frontend's API (except Places) can throw exception. If during exception handling, FrontEndManager is destroyed and calls 'dlclose' for plugin - call stack will be corrupted and crash will occur.

Solution is to wrap 'plugins' calls with try/catch and throw new exception in 'openvino' context

TODO: currently "Place" objects don't have 'actual' wrappers, so exception in 'place' objects will potentially cause such crash (if exception handler destroys FrontEndManager). Workaround for user would be to try/catch any calls of Place API on their side.
We're not expecting users to use Place API directly, so this workaround looks acceptable

* Add check for exception message

* Keep type of frontend exception during rethrow

* IR FE tests: don't expect InferenceEngine::exception as it be not propagated as is by FrontEndManager
2022-03-31 22:23:40 +03:00
Anastasia Kuporosova dd54cb9c17 [Python API] Remove old api class from the new api (#10470)
* [Python API] Remove old api class from the new api

* start working on refactoring of OVAny

* fix tests

* fix code-style

* remove tuple test

* fix test

* fix omz hash

* one more overload

* fix pyfloat

* move from_ov_any to utils

* code-style

* move function from common to utils
2022-03-31 21:57:05 +03:00
Elizaveta Lobanova d3060d4bcc [GNA] Fixed handling of unaligned crop layer (#11316) 2022-03-31 20:03:51 +03:00
Vladimir Paramuzov 1cb254307e [GPU] Gather params update (#11369) 2022-03-31 19:46:38 +03:00
Ilya Lavrenov 3c724a1dee Build with system TBB (#11244)
* Build with system TBB

* Fixes

* Check whether system TBB is available

* Try to fix ONNX Runtime build with system TBB

* Test

* Fixed compilation of threading.cpp

* Fixed unset of cache dirs

* Limit dearch paths of TBB

* Try to enable pip packages with custom TBB

* Fix for TBB 2021.2

* Install only needed TBB libraries

* Install TBB from system to pip package

* Reverted usage of TBBROOT

* Fixed oneTBB case

* Try to fix Android

* Escape some paths

* Added samples path

* Fixed TBBBind usage for case of system TBB
2022-03-31 18:05:59 +03:00
Ekaterina Aidova d99104cf55 [OMZ]: update submodule (#11305) 2022-03-31 17:53:41 +03:00
Alina Kladieva dc83410cd7 Revert "Skip sporadic GPU canInferOnUserQueue test case (#11310)" (#11362)
This reverts commit 458378e9e7.
2022-03-31 17:38:03 +03:00
Vladimir Paramuzov 15b4553eaf [GPU] Align OneHot primitive parameters with ngraph (#11361) 2022-03-31 17:13:49 +03:00
1efb0a034f [PYTHON API] release GIL (#10810)
* AsyncInferQueue nogil update + refactoring

* nogil in compiled model

* nogil in Core

* fix refactoring

* nogil in infer_request

* add tests

* Fix code style

* update test with incrementing reference counting

* try to fix code style

* fix code style

* release gil in reshape and preprocessing

* make args optional in test

* fix code style

* add docs about GIL

* try to link doc string with docs

* Apply suggestions from code review

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Fix docs

* docs refactoring

* Apply review comments

* Fix code style

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2022-03-31 16:12:48 +03:00
Maxim Andronov 1d247815be Don't execute reference::strided_slice if input/output tensor is empty (#11337) 2022-03-31 15:42:10 +03:00
Alexandra SidorovaandAndrei Kochin 9185f03e77 Added specification for Eye-9 (#11104)
* Added specification for EyeLike-9

* Update docs/ops/generation/EyeLike_9.md

* removed batch from TF

* minor fix

* Applied comment by Anton

* Added new example with dynamic output, added corner case

* Fixed corner case description

* Rename matrix

* applied comments by Yuan

* Added diag_idx as input, minor fixes, renaming

* added support of batch_shape from TF

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-03-31 14:46:55 +03:00
Smirnov Grigorii a87e8f7880 moved TransformationsTestsF method's definitions from .hpp to .cpp (#11359)
* moved

* fix style
2022-03-31 14:07:41 +03:00
Pavel EsirandEvgenya Stepyreva 16a5962698 [MO] pad fusing fix (#10453)
* pad fusing fix

* added unit-tests for pad fusing fix

* fixed port reconnecting

* Update tools/mo/openvino/tools/mo/middle/passes/fusing/mark_unfused_nodes.py

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-03-31 14:07:07 +03:00
Smirnov Grigorii 763d522759 add graph_comparator tests (#11360) 2022-03-31 14:06:36 +03:00
Mikhail RyzhovandNadezhda Ageeva a9853d2790 [GNA] Additional tests on compact mode (#10969)
* Moved InitGNADevice to plugin constructor

* Added tests for ordering layers

* Added allocator header

* Fixed fused_iterator header

* protected GNAMemRequestsQueue properties

* Fixed unit test names

* Fixed compile issue

* Fixed default initialization

* Fixed depricated matchers

* Fixed pwl deprecated tests

* Added page alignment

* Reset gnadevice in the tests

* Update src/plugins/intel_gna/gna_fused_iterator.hpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

* Revert "Update src/plugins/intel_gna/gna_fused_iterator.hpp"

This reverts commit d624bdadaf.

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>
2022-03-31 13:56:25 +03:00
Elizaveta Lobanova 3578ee9c3f [GNA] Remove extra FQ layers from the final network (#10599)
* [GNA] Fuse all FakeQuantize layers with their previous layers

* [GNA] Fuse FQ with previous layer if it's not required for precision change

* [GNA] Fixed MatMulOverloadCorrectionTest
2022-03-31 13:21:27 +03:00
Sergey Shlyapnikov 79e3272237 [GPU] Update eltwise calc_output_layout function and prevent output layouts invalidation after adding reorders for weights (#11073) 2022-03-31 13:15:47 +03:00
Sergey Shlyapnikov f2af1ef88a [GPU] Update memory location to __local in GPU Detection Output (#11209)
* [GPU] Update memory location to __local in GPU Detection Output

* Replace hardcoded stack size with JIT constant
2022-03-31 13:13:58 +03:00
Egor Shulman 23476c8eee CC for LPT transformation call in CPU plugin (#11341)
* Use CC in LPT

* Applied comment
2022-03-31 12:35:27 +03:00
f45ca99de6 [PYTHON] Add ov::clone_function bindings (#11331)
* Add clone_function bindings

* Add clone_function binding tests

* Debugging changes

* Minor changes

* Code style

* Add an assert

* Update src/bindings/python/tests/test_ngraph/test_basic.py

* Update src/bindings/python/src/pyopenvino/graph/model.cpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2022-03-31 12:14:51 +03:00
Alina Kladieva 7d0750fa2a Add SKIP_IF_CURRENT_TEST_IS_DISABLED macros for needed cases (#11335) 2022-03-31 11:12:19 +03:00
Ilya Lavrenov c795382b1f Configurable OpenCL usage in BA (#11344) 2022-03-31 10:49:40 +03:00
Maxim GordeevandAlexander Zhogov fad66d8442 [IE Samples] New command line parameters format for speech sample (#11051)
* New command line parameters format for speech sample

* fixed notes

* changed format for scale factor

* changed format for scale factor in tests

* added more variants, when name is directy specified for i/o/r like it is done for sf

* removed nthreads flag

* fixed notes

* changed output params

* updated tests with new format

Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
2022-03-31 10:09:31 +03:00
Daria Mityagina 5c917cfaaa [ICV][XLink] - port XLink changes from mdk (#10212)
-76384
Port changes from MDK
2022-03-31 09:50:26 +03:00
Sergey Shlyapnikov 24a74672f6 [GPU] Fix remote blobs tests (#11349) 2022-03-31 09:04:46 +03:00
Vladimir Paramuzov f5f93cfbeb [GPU] Strided slice primitive params update (#11339) 2022-03-31 08:54:05 +03:00
Ilya Churaev 3e58ccbce7 Fixed evaluate for ov::Tensor (#11354)
* Fixed evaluate for ov::Tensor

* Fixed old ops with EvaluationContext
2022-03-31 07:47:49 +03:00
Anton Pankratov 78285f9db4 Added ov::NotImplemented Exception (#11124)
* Added ov::NotImplemented Exception

* add ie namespace

* Try fix
2022-03-31 07:36:13 +03:00
Oleg Pipikin 88e20199f0 Fix query network for hetero plugin (#10556)
* Fix query network for hetero plugin

* Apply comments

* Fix1

* Add tests

* Apply comments 2

* Apply comments 3
2022-03-31 07:24:46 +03:00
Anastasia Kuporosova d107cec39f [Python API] Update names in Model class (#11348)
* [Python API] Update names in Model class

* fix code-style

* remove from_capsule in the new API
2022-03-31 00:33:57 +03:00
Anastasia Kuporosova 4c7050f6a9 [Python API] Improve configuration files (#10960)
* [Python API] Improve configuration files

* fix config files

* update setup.cfd + change quotes

* move all codestyle checks to py_checks job

* update requirements_test.txt

* fix  codestyle according to flake-docstring

* fix

* fix mypy

* apply comments
2022-03-30 20:26:36 +03:00
Oleg Pipikin be6db5d69a Fix for str_to_container if string value has whitespaces (#10224)
* Fix for str_to_container if string value has whitespaces

* Add test

* Add trim for leading and trailing whitespaces

* Apply comments

* Apply comments 2

* Apply comments 3
2022-03-30 19:48:29 +03:00
Alexey Lebedev c8720f122d [PYTHON API] lifetime test for CompiledModel and extension (#11120)
* Add test for lifitime and extensions

* Remove ExtendedModel
2022-03-30 19:43:07 +03:00
Mateusz Bencer 7a0d85a067 remove resize asserts (#11234) 2022-03-30 19:13:55 +03:00
Mikhail Nosov a635150b9d [IE Common] Enable explicit TBlob declaration in all compilers (#11183)
* Enable explicit TBlob declaration in all compilers

This fixes problems when linking gcc compiled IE with clang compiled
applications.

Previous to this change, only clang compilers would consider TBlob<T>
templated types as declared externally. When *declared* explictly (with
the `extern template` syntax), the C++ spec says
that any inline methods of the templated class (such as TBlob<T>
constructors) should be ignored in favor of the externally instantiated
version of that templated type:

    "An explicit instantiation declaration (an extern template) skips
    implicit instantiation step: the code that would otherwise cause an
    implicit instantiation instead uses the explicit instantiation
    definition provided elsewhere (resulting in link errors if no such
    instantiation exists)."

However, when IE is compiled with gcc, it does not see the explicit
`extern template` declarations of TBlob<T> (due to the `#ifdef
__clang__` guards in `ie_blob.h`). As an end result, presumably due to
link-time-optimizations during IE library compilation(?), none of the
TBlob<T> implementations are actually included in the IE dynamic
libraries.

* Fix warnings for windows

* Fix typo
2022-03-30 18:56:49 +03:00
Ilya Sharikov 1906c27c2d Update mo_tool parameter for converter.py (#11319)
* Update mo_tool parameter for converter.py

* Hot fix
2022-03-30 18:32:53 +03:00
Egor Shulman e507b630eb Use CC in CPUSpecificTransform (#11231) 2022-03-30 18:26:35 +03:00
Gleb Kazantaev 8317493e65 Update Accuracy Check inside Func tests (#11314) 2022-03-30 17:44:03 +03:00
Alexey Lebedev ee31b648d1 [docs] port from release branch (#11309)
* save work

* Add common snipp

* update ie pipeline with python snippets

* ov_common_snippet

* Python snippets for graph construction

* Fix docs

* Add missed old api snippets

* Fix names

* Fix markers

* Fix methods call
2022-03-30 17:03:29 +03:00
Sergey Shlyapnikov 5dc3da926c [GPU] Add fusion through feature (#9674)
* [GPU] Add fuse through feature

* Apply review comments


Tasks marked as not passed:
* https://dev.azure.com/openvinoci/dldt/_build/results?buildId=313769&view=results
* https://dev.azure.com/openvinoci/dldt/_build/results?buildId=313766&view=results
2022-03-30 16:43:32 +03:00
Alexander Kozlov 4b4bd7399c Fixed conflicts (#11332) 2022-03-30 16:10:03 +03:00
Anastasia Kuporosova 9fa5150d71 [Python API][Docs] Fix references for several classes (#11251) 2022-03-30 13:29:30 +03:00
Ilya Lavrenov 932f8bf767 Install 97-myriad-usbboot.rules to install_dependencies (#11301) 2022-03-30 13:03:42 +03:00
Ilya Churaev 17f8f7ec25 Fixed typo in exception message (#11322) 2022-03-30 12:45:09 +03:00
Vladimir Paramuzov fccd5d4445 [GPU] ShapeOf op (#10983) 2022-03-30 12:27:04 +03:00
Ivan Novoselov 1beb7158d5 [Snippets] Develop Snippets test infrastructure (#10605) 2022-03-30 12:21:19 +03:00
Sergey Shlyapnikov cd703580b6 [GPU] Host time optimizations for in order queue (#11255)
* [GPU] Host time optimizations

* Fix failed fusings_gpu/permute_eltwise_loop.basic/* tests
2022-03-30 10:53:53 +03:00
Ivan Tikhonov f13b6252e9 Fix insertion of tensor names after UnrollTensorIterator transformation (#11276)
* revert previous version of convert_seq_to_ti transformation

* try to check that outputs of TI are connected to Result nodes

* add unit tests

* fix codestyle

* fix Memory tests

* revert local change

* revert local change

* replace duplicated code with lambda
2022-03-30 10:26:04 +03:00
Maxim Andronov 72f802f282 [CPU] Fix Parameter -> Result model for dynamic case (#10764) 2022-03-30 10:20:52 +03:00
Anton Pankratov 614a6a3457 [CPU] Graphs are created in compiled_model constructor (#10872) 2022-03-30 10:02:12 +03:00
Vladimir Gavrilov e7b35c3b00 nGraph reference for the operation RDFT. (#11175)
* Written nGraph reference for the operation RDFT.

* Used std::reverse() algorithm to simplify the function reverse_shape() from fft_common.cpp.

* Added assert into the function offset_from_coords_and_strides().

* Deleted redundant variable.

* Deleted redundant functions from the reference implementation of (I)DFT.

* Renamed the method reverse_shape() in fft_common.hpp.

* Code style fix.
2022-03-30 09:38:05 +03:00
Alexander Zhogov 1386f52dd6 Azure CI: Disable Model Optimizer UT 2022-03-30 09:01:05 +03:00
Ilya Lavrenov 9f923ba39f Install only proper GNA library files (#11243) 2022-03-30 08:58:31 +03:00
yanlan song f6e5ec9684 return device infer request in passthrough mode (#11253)
Signed-off-by: fishbell <bell.song@intel.com>
2022-03-30 09:21:13 +08:00
Ilya Lavrenov 4145291e84 Added f16 tests for tensor (#11273) 2022-03-30 01:11:07 +03:00
Anton ChetverikovandEvgenya Stepyreva 5d719cbc7b [MO] Remove _output_shape nodes attribute while loading TF meta graph (#11078)
* Remove _output_shape attribute while loading meta_graph

* Update tools/mo/openvino/tools/mo/front/tf/loader.py

Simplify code

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>

* Add comment about the problem

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-03-29 21:27:00 +03:00
Gleb Kazantaev 01b701349d Move tensor utils to common utils (#11306) 2022-03-29 21:08:55 +03:00
Alina Kladieva 458378e9e7 Skip sporadic GPU canInferOnUserQueue test case (#11310) 2022-03-29 19:48:37 +03:00
Ilya LavrenovandAlexander Zhogov fb99fd1d2f Try to remove MO install rules (#11208)
Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
2022-03-29 19:24:30 +03:00
Dmitrii Khurtin 4b0417018a [GNA] Fixed clang 13 build issue (#11238) 2022-03-29 19:06:50 +03:00
Vitaliy Urusovskij d261da4820 Replace get_os_name() with get_os_type() in get_lib_path() (#11300)
In case of ubuntu system `get_os_name()` returns "ubuntu",
but `get_os_type()` returns "Linux" which is expected by tests
2022-03-29 18:17:38 +03:00
Evgenya Stepyreva ed030e113e StridedSlice default shape inference (#11292) 2022-03-29 16:42:52 +03:00
Gleb Kazantaev 5b0a1fe7bb Move FunctionsComparator to common utils (#11277)
* Move FunctionsComparator to common utils

* Fix includes
2022-03-29 14:51:17 +03:00
Jade Cho 070c47ec09 [GPU] fix a bug of onednn sum post-op (#11254)
+ Add a unit test for this.
2022-03-29 20:35:09 +09:00
Mikhail Letavin 23732417c5 [GPU] Propagate output flag to mutable_data deps to ensure correct event creation (#11021) (#11021) 2022-03-29 13:08:58 +03:00
Maxim Andronov d764fe7d27 [CPU] Prohibit int8 desc convolution creation in case s8 precision on data input (#10730) 2022-03-29 09:44:06 +00:00
Gleb Kazantaev 866f006a83 Transformations Python API (#10971)
* Keep changes

* Update tests

* Keep changes

* Cleanup

* Add predicates support; new pattern ops; new tests

* support for public passes; added tests

* Fix compilation warning

* Fix code style

* Added docstrings; code cleanup

* Update python API tests

* Fix build on Windows

* Revert back pass registration logic

* Fix flake8 errors

* Update docstrings; fix utils.hpp

* Cleanup

* Cleanup

* Fix flake errors

* Fix mypy

* Skip mypy for passes
2022-03-29 11:41:23 +03:00
Bo Liu 02c60c76ab Paddle FasterRCNN Ops Conversion: greater_than, less_than, gather, floor (#9657)
* Paddle FasterRCNN Ops Conversion: greater_than, less_than, gather, floor

* Apply suggestions from code review

* fix 'gather' testcase failure issue on CI

* implement 'axis' input for 'Gather' Op conversion with testcase comment;use common function for all elementwise Ops
2022-03-29 16:20:37 +08:00
Alexey LebedevandAnastasia Kuporosova 8f88889876 [docs] python snippets for devices master (#11176)
* Update CPU docs

* update GPU docs

* update with sphinxtab

* Fix docs

* Add preprocessig snippet

* Fix path

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2022-03-29 11:01:53 +03:00
Anton Pankratov bc9f140bb4 Fixed element type destruction in global scope (#11211)
* Fixed element type destruction in global scope

* Fixed mispirint
2022-03-29 10:21:41 +03:00
Nikolay Tyukaev 8aa98ce0d5 fix wildcard sphinxdirective (#11264) 2022-03-28 20:56:56 +03:00
Nikolay Tyukaev da9596bade cvs-80083 (#11281) 2022-03-28 20:53:21 +03:00
Dmitry Belyakin 30ec7366bb [OMZ]: update submodule (#11279) 2022-03-28 19:48:53 +03:00
Dmitrii Khurtin a925ec6a29 changed symlink order of libgna (#11267) 2022-03-28 19:48:08 +03:00
Ilya Lavrenov 19d0e5ba52 CMAKE: IE_VERSION => OpenVINO_VERSION (#11242)
* IE_VERSION => OpenVINO_VERSION

* Reverted installation of python unconditionally
2022-03-28 19:32:21 +03:00
Karol Blaszczak 8b591c141e Update installing-openvino-overview.md (#11271) 2022-03-28 15:15:32 +00:00
Dmitry Belyakin 27741d316e [OMZ]: update submodule (#11239)
* [OMZ]: update submodule

* bump omz ver
2022-03-28 15:45:35 +03:00
Valentin Dymchishin 52937967bb Add dynamism in memory tests (API 2) (#10589) 2022-03-28 12:51:53 +03:00
Irina Efode 76e2f2697f [CONFORMANCE] Fix run of Conformance tests (#11225) 2022-03-28 12:29:27 +03:00
Ilya Churaev 10698abc29 Revert vpu custom kernel master (#11228)
* Added original VPU custom kernel doc

* Moved to new API

* Added links from introduction

* Fixed intro
2022-03-28 12:18:29 +03:00
RavirajSitaram 30884a8161 Fix -Winfinite-recursion error reported by compiler (#11247)
Signed-off-by: Raviraj P Sitaram <raviraj.p.sitaram@intel.com>
2022-03-28 11:54:11 +03:00
Nikolay Tyukaev aded1a2c70 a bunch of doc fixes (#11230) (#11237) 2022-03-25 20:22:43 +03:00
Evgenya Stepyreva 2d7f46b95a Update Divide_1.md (#11232) 2022-03-25 15:41:55 +00:00
Helena Kloosterman 05f97f2bb5 Update two paragraphs in performance hints docs (#11223) 2022-03-25 16:07:46 +03:00
Ilya Churaev 4dc0d6e711 Fixed comments after #11155 (#11202)
* Fixed comments after #11155

* Add information about plugin option
2022-03-25 16:02:18 +03:00
Smirnov Grigorii a2705b1fed f64 to f32 and 0.0. to 0.1 (#11127) 2022-03-25 15:10:23 +03:00
Andrey Somsikov 3442e90144 Fix setupvars.bat patching (#11160)
* Fix setupvars.bat patching

setupvars.bat shoudl not be patched for regular Debug and Release
configurations.

* Use SRTEQUAL for cmake string comparison
2022-03-25 14:15:04 +03:00
Eddy Kim 200026f28b Missing backslashes right after mo (#11216) 2022-03-25 13:39:33 +03:00
Nikita Malinin 5e3e8d6084 [POT] Update POT with the ResultRenaming flag (#10989)
* Update POT with the ResultRenaming flag

* Update flag

* Update gold
2022-03-25 13:22:20 +03:00
Mikhail Nosov 8bfde58fd9 [Core] Improve performance for 'ov::Model::add_output' (#11052)
* Improve performance for 'ov::Model::add_output'

On first call of `add_output(tensor_name)` all available tensor names are cached.
Next calls take nodes from cache which significantly reduces complexity.
Cache is invalidated if topological cache is not valid or cache points to incorrect output (no tensor name of this node anymore)

The same caching is done for 'add_output(op_name, output_index)'

Tests:
- Verifies that adding outputs to all nodes has linear complexity O(N), not O(N^2)
- Verifies cache invalidation scenarios

* Fix python tests

* Update topological cache after add_output(Output<Node>) by adding result to the end of cached ops

* Add 'm_shared_rt_info' to 'result node just for consistency (there is actually no scenario which may fail due to absence of this info for Result

* Added test cases to verify that names cache should be cleared on refresh of 'get_ordered_ops'
2022-03-25 12:17:41 +03:00
Anastasia Popova 45a21bf902 Fixed setting of input name for case of multiple outputs from Parameter. (#11019)
* Fixed setting of input name for case of multiple outputs from Parameter.

* Small correction.
2022-03-25 12:11:07 +03:00
Sergey Lyubimtsev fae1c27657 Add missed dependencies for OpenVINO Runtime wheel build (#11193)
* Disable IncrediBuild

* Add dependencies for frontends

* new line

* Add dependencies for frontends

* Enable IncrediBuild
2022-03-25 11:42:40 +03:00
Oleg Pipikin aa0ab0e995 Move TF frontend tests (#11038) 2022-03-25 08:28:07 +03:00
Oleg Pipikin 5b18677f1b Add constant folding to hetero to avoid dynamism on GPU (#10572)
* Add constant folding to hetero to avoid dynamism on GPU

* Aplly comments

* Apply comments 2

* Fix1
2022-03-25 07:10:23 +03:00
+1 a883dc0b85 DOCS: ported changes from 2022.1 release branch (#11206)
* Extensibility guide with FE extensions and remove OV_FRAMEWORK_MAP from docs

* Rework of Extensibility Intro, adopted examples to missing OPENVINO_FRAMEWORK_MAP

* Removed OPENVINO_FRAMEWORK_MAP reference

* Frontend extension detailed documentation

* Fixed distributed snippets

* Fixed snippet inclusion in FE extension document and chapter headers

* Fixed wrong name in a snippet reference

* Fixed test for template extension due to changed number of loaded extensions

* Update docs/Extensibility_UG/frontend_extensions.md

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>

* Minor fixes in extension snippets

* Small grammar fix

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>

* DOCS: transition banner (#10973)

* transition banner

* minor fix

* update transition banner

* updates

* update custom.js

* updates

* updates

* Documentation fixes (#11044)

* Benchmark app usage

* Fixed link to the devices

* More fixes

* Update docs/OV_Runtime_UG/multi_device.md

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

* Removed several hardcoded links

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

* Updated documentation for compile_tool (#11049)

* Added deployment guide (#11060)

* Added deployment guide

* Added local distribution

* Updates

* Fixed more indentations

* Removed obsolete code snippets (#11061)

* Removed obsolete code snippets

* NCC style

* Fixed NCC for BA

* Add a troubleshooting issue for PRC installation (#11074)

* updates

* adding gna to linux

* add missing reference

* update

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

* Update docs/install_guides/installing-model-dev-tools.md

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

* update

* minor updates

* add gna item to yum and apt

* add gna to get started page

* update reference formatting

* merge commit

* add a troubleshooting issue

* update

* update

* fix CVS-71846

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

* DOCS: fixed hardcoded links  (#11100)

* Fixes

* Use links

* applying reviewers comments to the Opt Guide (#11093)

* applying reviewrs comments

* fixed refs, more structuring (bold, bullets, etc)

* refactoring tput/latency sections

* next iteration (mostly latency), also brushed the auto-batching and other sections

* updates sync/async images

* common opts brushed

* WIP tput redesigned

* minor brushing of common and auto-batching

* Tput fully refactored

* fixed doc name in the link

* moved int8 perf counters to the right section

* fixed links

* fixed broken quotes

* fixed more links

* add ref to the internals to the TOC

* Added a note on the batch size

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* [80085] New images for docs (#11114)

* change doc structure

* fix manager tools

* fix manager tools 3 step

* fix manager tools 3 step

* new img

* new img for OV Runtime

* fix steps

* steps

* fix intendents

* change list

* fix space

* fix space

* code snippets fix

* change display

* Benchmarks 2022 1 (#11130)

* Minor fixes

* Updates for 2022.1

* Edits according to the review

* Edits according to review comments

* Edits according to review comments

* Edits according to review comments

* Fixed table

* Edits according to review comments

* Removed config for Intel® Core™ i7-11850HE

* Removed forward-tacotron-duration-prediction-241 graph

* Added resnet-18-pytorch

* Add info about Docker images in Deployment guide (#11136)

* Renamed user guides (#11137)

* fix screenshot (#11140)

* More conservative recommendations on dynamic shapes usage in docs (#11161)

* More conservative recommendations about using dynamic shapes

* Duplicated statement from C++ part to Python part of reshape doc (no semantical changes)

* Update ShapeInference.md (#11168)

* Benchmarks 2022 1 updates (#11180)

* Updated graphs

* Quick fix for TODO in Dynamic Shapes article

* Anchor link fixes

* Fixed DM config (#11199)

* DOCS: doxy sphinxtabs (#11027)

* initial implementation of doxy sphinxtabs

* fixes

* fixes

* fixes

* fixes

* fixes

* WA for ignored visibility attribute

* Fixes

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
Co-authored-by: Nikolay Tyukaev <nikolay.tyukaev@intel.com>
Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Maxim Shevtsov <maxim.y.shevtsov@intel.com>
Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
Co-authored-by: Ilya Naumov <ilya.naumov@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-03-24 22:27:29 +03:00
Anastasia Kuporosova 8118147a96 [Python API] Fix documentation for Core API (#11187)
* [Python API] Fix documentation for Core API

* fix style
2022-03-24 19:56:45 +03:00
Ilya ChuraevandYuan Xu a8f9863f72 Add compiler requirements master (#11190)
* Added software tab for Linux installer

* Added information for apt and yum

* Update docs/install_guides/installing-openvino-apt.md

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

Update docs/install_guides/installing-openvino-apt.md

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

Update docs/install_guides/installing-openvino-linux.md

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

Update docs/install_guides/installing-openvino-apt.md

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

Update docs/install_guides/installing-openvino-apt.md

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

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-03-24 14:25:49 +00:00
Sofya Balandina 0c6c3b0d74 [subgraphsDumper] Serialize the lightest operations from existing (#11097) 2022-03-24 16:43:46 +03:00
Irina Efode f156429b11 [IE TESTS] API Conformance review (#11133)
* [IE TESTS] API Conformance review. Part 1

* properties

* properties
2022-03-24 16:34:05 +03:00
Maxim Shevtsov 7dc1d0935c Auto batching improved tests (#11179)
* wip remote tests2, fixed smoke_canInferOnUserContext

* completed the OV 1.0 tests for remote blobs

* updated OV 2.0 tests for remote blobs with auto-batching (using the ngraph func that is reshape-able by the batch)

* re-using the DetectionOutput-based ngraph func that is 100% batch-reshapeble
2022-03-24 16:23:00 +03:00
Ilya Churaev b5dbabe41d Fixed registration of template plugin (#11155)
* Fixed registration of template plugin

* Added option for template plugin

* Fixed static build
2022-03-24 14:39:20 +03:00
Mikhail Nosov 9d865a2133 [Model Caching] Enabling per-device cache dir (#10774)
* Initial commit

10 more caching tests

* Fix clang-format

* Added brief explanations to each test

* Fix review comments
2022-03-24 11:24:47 +03:00
Wilson Seok 0cc119cd86 Fix N/A reported ops in conformance test (#11165)
* fix N/A ops in OpImplCheck

* update RandomUniform with parameter

* modify Constant function
2022-03-24 09:59:37 +03:00
Vladislav Volkov 5e6fd8c721 Validation of invalid names in CC factory (#11170) 2022-03-24 09:47:10 +03:00
Gleb Kazantaev 714d7a79c7 Fix SimplifySecondInputOfReshape (#11128) 2022-03-23 23:00:39 +00:00
Vladimir DudnikandCCR\ntyukaev <nikolay.tyukaev@intel.com> 3a8800cbd2 [Docs][IE Samples] fix hard links (#11144)
* fix hard links

* change encoding

* fix TM

Co-authored-by: CCR\ntyukaev <nikolay.tyukaev@intel.com>
2022-03-23 23:48:08 +03:00
Irina Efode 001d098410 [IE TESTS][CONFORMANCE] Fix issue with checkmarks for op impl check (#11178) 2022-03-23 20:10:49 +03:00
Irina Efode 5847e3cb44 [IE TESTS][CONFORMANCE] Allow to serialize report to CSV (#11119)
* [IE TESTS][CONFORMANCE] Allow to serialize report to CSV

* Small improvement

* Move import
2022-03-23 17:36:07 +03:00
Wilson Seok 32886cf90f change to fp16 ov::Model (#11018) 2022-03-23 17:09:20 +03:00
Fedor Zharinov fe3270c232 [benchmark_app]Exception handling in callback (#11123)
* Exception handling in callback

* stylefix
2022-03-23 16:55:41 +03:00
Fedor Zharinov 1315cfaa64 Add CHW/HWC heuristics for tensors with 3 dimensions (#10817) 2022-03-23 16:54:56 +03:00
Alexey Varyzgin 75bbfe336d [CPU] API2.0 input issues (#10222) 2022-03-23 16:41:59 +03:00
hyunback kim fc2a8eb1a6 [GPU] Fix unused variable build issue (#11157)
* [GPU] Fix unused variable build issue

Signed-off-by: hyunback <hyunback.kim@intel.com>

* Update to remove unused variables.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-03-23 16:26:09 +03:00
Artur Kulikowski 3674ec403f Update ONNX to version 1.11.0 (#11046) 2022-03-23 13:52:33 +01:00
Ilya Churaev a63e2080e1 Added group for transformation passes (#11102) 2022-03-23 14:08:04 +03:00
Chen Peter 066882579d [AUTO] Fix mess table in doc (#11158)
Signed-off-by: Peter Chen <peter.chen@intel.com>
2022-03-23 13:35:28 +03:00
Nikita Malinin b50079143f Update IRReader with the ResultRenaming flag (#10988) 2022-03-23 13:16:40 +03:00
Ilya Churaev eb80b28624 Added groups for core headers (#11080) 2022-03-23 12:19:07 +03:00
Alexey Lebedev 3de9189d50 [core][python] ov::serialize (#10945)
* add ov::serialize

* create python binding

* update python tools

* use ov::serialize in benchmark app

* remove serialize from python offline_transformations

* fix import

* revert pot

* update docs

* apply review comments

* add const

* make bin path optional

* Add docs

* add compare test
2022-03-23 11:44:00 +03:00
Yuan Hu af874e7754 update AUTO Debug doc with snippets (#11117)
Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2022-03-23 16:31:03 +08:00
Nikita Malinin eb74afe417 Fix FBC missed spaces (#11091) 2022-03-23 11:17:42 +03:00
Liubov Talamanova 99f0093615 [POT] Fixed bug with out port for nodes with multiple outputs (#10932)
* Fixed bug with out port

* Add test

* Fix test

* Change test model
2022-03-23 11:17:06 +03:00
Edward Shogulin cd361ecae1 [CPU] Code generation: Floor & Ceiling & Round implementation (#10666) 2022-03-23 10:32:25 +03:00
Ilya Churaev 9bc7ebda7b Add couple words about tensor names master (#11116)
* Added more information about tensor names

* Fixed comment and added documentation for extensions

* Fixed typo
2022-03-23 10:04:21 +03:00
Ilya Churaev 1ad4a99478 Port api reference (#11152) 2022-03-23 10:03:16 +03:00
Oleg PipikinandIlya Churaev 6710d78e63 Move shared frontend tests (#11036)
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-03-23 09:00:34 +03:00
Mingyu Kim ac58e8eaf1 [GPU] Temporal WA to fix accuracy issue in a network (#11016)
resample_opt generates wrong result when feature depth is two.
2022-03-23 14:40:20 +09:00
Wang, Yang e259548530 Add logic test case for auto batching enable (#10626)
* Add test case for the loadNetwork with Auto Batching.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Enable logic test case for GPU.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Enable property for config key 'AUTO_BATCH_DEVICE_CONFIG'.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Omit {}.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Add commont test for the property ALLOW_AUTO_BATCHING.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Add commont test for AUTO Batching plugin.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-03-23 09:30:19 +08:00
Alexey Suhov 4a47c95c04 Update release version in readme (#11145) 2022-03-23 01:06:08 +03:00
Yuan Xu 2693ff3e48 fix a reference link (#11050) 2022-03-22 22:51:56 +03:00
Egor Duplensky 090799a362 [Samples] Fix cpp benchmark_app help message (#11055) 2022-03-22 22:51:05 +03:00
Maksim Kutakov 3ae167b88e Updated note about latency, added note about mem usage with dynamic shapes (#11126) 2022-03-22 22:45:38 +03:00
Karol Blaszczak 8cac305b8f [DOCS]transition_guide_intro_language (#11134)
a few language suggestions and grammar issues
2022-03-22 22:27:19 +03:00
Irina Efode eeea2de3eb Extend PDPD regex by legacy (#10994) 2022-03-22 15:09:33 +03:00
Ilya Lavrenov 2f46890444 Removed obsolete scri[ts (#11107) 2022-03-22 14:52:03 +03:00
Nikita Semaev 5dcb6c2cee Correcting a regular expression (#10822) 2022-03-22 13:41:23 +03:00
Dmitrii KhurtinandElizaveta Lobanova 2ae7e45edb [GNA] Moving PWL op to GNA (#8207)
* Moving PWL to ngraph

* improving the running time of php_search; refactoring the pwl operation

* fixed erros & refactored code

* moved PWL op to GNA

* Update src/plugins/intel_gna/ops/pwl.hpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* Update src/plugins/intel_gna/ops/reference/pwl.hpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* Update src/plugins/intel_gna/ops/pwl.cpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* Update src/plugins/intel_gna/transformations/transpose_to_pwl.hpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* Update src/plugins/intel_gna/transformations/transpose_to_pwl.cpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* fixed compilation error

* Update inference-engine/tests/unit/gna/ngraph/transformations/gna_pwl.cpp

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>

* added some tests; changed algorithm of checking accuracy of pwl; refactoring

* added first and last segments; added fq and fixed errors

* fixed after review & rewrote some tests on ngraph

* removed debug logs & fixed code style check error

* s/ngraph_helper/ngraph_util

* removed TRANSFORMATIONS_API in PWLApproximation class declaration

* removed OPENVINO_API in Pwl class declaration

* replaced the deprecated version of evaluate() with a new one

* fixed some problems after reviewing

* fixed a problem when a value of function of left point of segment is less than minimum of function

* corrected a value of the right point of last segments

* s/OPENVINO_RTTI/OPENVINO_OP

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>
2022-03-22 13:24:57 +03:00
Alexander Sesorov fb7249d496 [bandit] Add nosec for subprocess (#10941) 2022-03-22 12:56:54 +03:00
Ekaterina Aidova 37adb6d8a9 Docs: update AC info in API 2.0 migration guide (master) (#11113) 2022-03-22 12:42:13 +03:00
Ekaterina Aidova 1b9fbf25fd [OMZ]: update submodule (#11069) 2022-03-22 12:41:59 +03:00
Anastasia Kazantaeva 46df794908 Add changes to contribution guide (#10675) 2022-03-22 11:51:53 +03:00
Andrey Zaytsev e782cd18b7 Feature/azaytsev/img updates (#11110)
* Updated images

* Updated images
2022-03-22 11:13:17 +03:00
Ilya Churaev 2a43c64336 Removed indentation (#11112) 2022-03-22 10:09:24 +03:00
Oleg PipikinandIlya Churaev 7ccc48110d Move common test utils (#11022)
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-03-22 09:52:38 +03:00
Yury Gaydaychuk 1b9c58125c Checking in setShape() method if blob was preallocated moved to the case of increased shape (#11009)
* allow setshape for preallocated  blob in the case of non-increased memory size

* codestyle

* test cases added

* pytest aligned
2022-03-22 09:35:37 +03:00
Sofya Balandina dfac195ffe Fix saving report in dir with more than one non-existing level (#11088) 2022-03-22 09:26:08 +03:00
Jade Choandhyunback a7df1531db [GPU] Code refactoring to choose between binary_add and sum (#10724)
+ Fix colorization-sig accuracy issue using oneDNN
	Memory crash in case reuse_eltwise_sum_post in oneDNN and memory_pool
	And print node in/out gpu_usm_mem addr at OV_GPU_Verbose >= 1
+ Check the size of z spatial axis for checking fulltensor.
+ Remove program_helpers's functions.

Co-authored-by: hyunback <hyunback.kim@intel.com>
2022-03-22 14:58:36 +09:00
Aleksandr Korolev e8288eb31d [VPU] removal deprecated test (#10597)
* [VPU] removal deprecated test

* Adding ie plugin cache reset to avoid myriad device is not opened issue

* Review changes

* Review changes
2022-03-21 21:14:41 +03:00
Mikhail Nosov d84d00e2d6 Fix issue with output's friendly name after post-processing (#11095)
Scenario:
- Node "Split" with multiple outputs (e.g. 3). All outputs are connected to "Result"s
- Add post-processing step (e.g. convert element type, can be also implicit)

Issue: after post-processing, 3 new results will be created, each will have "Split" friendly name - inconsistency with IRv10 rules
Fix:
- For nodes with multiple outputs, add '.<idx>' suffix to new output's friendly name
- If no post-processing is applied, return immediately, keeping original results as is

Tests:
- Split with 3 outputs where 2 outputs have post-processing.
- Split with 3 outputs, post-processing doesn't create any nodes
2022-03-21 20:26:24 +03:00
Sergey Lyubimtsev dacdf67c2c Update Benchmark guides (#11076) (#11085)
* - Update Benchmark Tool usage message
- Remove not existed paths
- Fix examples
* remove reference on FPGA

(cherry picked from commit 3caa77eb30)

# Conflicts:
#	samples/cpp/benchmark_app/README.md
2022-03-21 19:31:17 +03:00
Maxim Gordeev 3ac6e95ead [IE Samples] Fixed hanging of samples if InferImpl() throws exception (#11075)
* [IE Samples] Fixed hanging of samples if InferImpl() throws exception

* improved re-throw an exception
2022-03-21 19:30:30 +03:00
Evgenya Stepyreva 2f0620600f Reshape documentation (#10901)
* Reshape documentation

* Converting Model : reshape metrined, Supported Devices: no shape inference mentioning

* demos removed
2022-03-21 19:13:24 +03:00
Liubov Talamanova bdc89b1571 Moved quantization templates to openvino/tools/pot (#10814) 2022-03-21 14:17:55 +03:00
Fedor ZharinovandNadezhda Ageeva 0b444ab2db [benchmark_app]Show network original I/O info (#10694)
* Show network original I/O info

* additional no-name case check

* stylefix

* Update samples/cpp/benchmark_app/main.cpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

* Update samples/cpp/benchmark_app/main.cpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>
2022-03-21 13:57:56 +03:00
Alexey Lebedev 332d27ca82 Replace enforcebf16 and qb by infer_precision (#11007) 2022-03-21 13:36:00 +03:00
Daria Mityagina 51ee3f81cb [XLink] - run XLink tests in pre-commit (#10302)
* [XLink] - tests to smoke scope

* [XLink] - small change in XLink related file to trigger ie-tests-windows-myriadx

* [XLink] - azure windows and linux

* [XLink] - azure windows and linux

* [XLink] - azure windows and linux - change dir?

* [XLink] - azure windows and linux - change dir?

* [XLink] - azure windows and linux - install?

* [XLink] - azure windows and linux - xlink cmake

* [XLink] - azure windows and linux - XLinkTests because another target with the same name already exists

* [XLink] - azure windows and linux - XLinkTests because another target with the same name already exists

* [XLink] - azure windows and linux - install TARGETS given target XLinkTests which does not exist

* [XLink] - azure windows and linux - remove smoke
2022-03-21 13:28:44 +03:00
Yuan Xu be9bbb676d sync the same updates with 22/1 (#11071)
* Add Overview page

* Revert "Add Overview page"

* updates

* update

* updates
2022-03-21 09:11:39 +00:00
Sergey Shlyapnikov 782ef6b42e [GPU] Add estimation of required memory for CAFFE_OPT_2 stage of GPU Detection Output (#11001) 2022-03-21 12:06:07 +03:00
Tomasz DołbniakandEvgenya Stepyreva b480a49d66 RandomUniform-8: shape inference fix (#11047)
* Shape inference fix

* Update src/core/src/op/random_uniform.cpp

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>

* Update src/core/tests/type_prop/random_uniform.cpp

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-03-21 12:04:51 +03:00
Edward Shogulin a887b41db6 [snippets] Tokenization fix: fused names (#10997) 2022-03-21 11:44:43 +03:00
hyunback kim ad179980d9 [GPU] Fix implicit concat padding offset issue in OneDNN (#11062)
Inserting padding into oneDNN primitive has issue with implicit concat behavior.
Deconv onedNN initialized output buffer to 0 including padding area. Padding area should be reserved.
Use oneDNN offset from program_node in/out lower_padding instead of oneDNN memory desc.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-03-21 16:57:39 +09:00
Evgeny Kotov d7005af4a5 [GNA] add 3D shape input support for StridedSlice (#10818)
* add 3D shape to test and rename crop4d to strided_slice

* remove ConvertStridedSliceToCropNegative2 since 3D is now supported

* add myriad functional tests to skip-list
2022-03-21 10:15:59 +03:00
Mateusz Tabaka c18030207c [ONNX] Avoid allocating vector for constants if possible (#10860)
For FLOAT, DOUBLE, INT32, INT64, UINT64 we can get a pointer
to data from TensorProto and pass it to Constant constructor.
2022-03-20 14:07:50 +01:00
Ilya Lavrenov 5390aa7ebc Updated multi code snippets (#11037) 2022-03-20 15:44:33 +08:00
Yuan Hu 72e8661157 [Auto PLUGIN] update Auto docs (#10889)
* update Auto docs

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

* update python snippets

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

* remove vpu, fix a mistaken in python code

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

* update MYRIAD device full name

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

* update API name

old API use name Inference Engine API
NEW API usen name OpenVINO Runtime API 2.0

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

* update tab name, and code format

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

* fix AUTO4 format issue

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

* update set_property code

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

* auto draft

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

* mv code into .cpp and .py

modify the devicelist part accoding to the review

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

* remove priority list in code and document

modify the begning of the document
remove perfomance data
remove old API
use compile_model instead of set_property
add a image about cpu accelerate

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

* fix mis print and code is not match document

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

* try to fix doc build issue

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

* fix snippets code compile issue

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2022-03-19 18:25:35 +03:00
Maksim Derbasov 76fde1f7b0 Optimization for ie_memcpy (#10996) 2022-03-19 14:33:21 +03:00
Vladimir Paramuzov b2110b352c [GPU] Update data structures for conv/pool/deconv params (#9641) 2022-03-19 11:11:07 +03:00
Irina Efode 3322b74bd9 [IE TESTS] Align Impl status (#11045) 2022-03-18 19:48:14 +03:00
e3098ece7e DOCS: port changes from releases/2022/1 (#11040)
* Added migration for deployment (#10800)

* Added migration for deployment

* Addressed comments

* more info after the What's new Sessions' questions (#10803)

* more info after the What's new Sessions' questions

* generalizing the optimal_batch_size vs explicit value message

* Update docs/OV_Runtime_UG/automatic_batching.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/OV_Runtime_UG/automatic_batching.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/OV_Runtime_UG/automatic_batching.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/OV_Runtime_UG/automatic_batching.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/OV_Runtime_UG/automatic_batching.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/OV_Runtime_UG/automatic_batching.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Perf Hints docs and General Opt Guide refactoring (#10815)

* Brushed the general optimization page

* Opt GUIDE, WIP

* perf hints doc placeholder

* WIP

* WIP2

* WIP 3

* added streams and few other details

* fixed titles, misprints etc

* Perf hints

* movin the runtime optimizations intro

* fixed link

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* some details on the FIL and other means when pure inference time is not the only factor

* shuffled according to general->use-case->device-specifics flow, minor brushing

* next iter

* section on optimizing for tput and latency

* couple of links to the features support matrix

* Links, brushing, dedicated subsections for Latency/FIL/Tput

* had to make the link less specific (otherwise docs compilations fails)

* removing the Temp/Should be moved to the Opt Guide

* shuffled the tput/latency/etc info into separated documents. also the following docs moved from the temp into specific feature, general product desc or corresponding plugins

-   openvino_docs_IE_DG_Model_caching_overview
-   openvino_docs_IE_DG_Int8Inference
-   openvino_docs_IE_DG_Bfloat16Inference
-   openvino_docs_OV_UG_NoDynamicShapes

* fixed toc for ov_dynamic_shapes.md

* referring the openvino_docs_IE_DG_Bfloat16Inference to avoid docs compilation errors

* fixed main product TOC, removed ref from the second-level items

* reviewers remarks

* reverted the openvino_docs_OV_UG_NoDynamicShapes

* reverting openvino_docs_IE_DG_Bfloat16Inference and openvino_docs_IE_DG_Int8Inference

* "No dynamic shapes" to the "Dynamic shapes" as TOC

* removed duplication

* minor brushing

* Caching to the next level in TOC

* brushing

* more on the perf counters ( for latency and dynamic cases)

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Updated common IE pipeline infer-request section (#10844)

* Updated common IE pipeline infer-reqest section

* Update ov_infer_request.md

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

Co-authored-by: Maxim Shevtsov <maxim.y.shevtsov@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* DOCS: Removed useless 4 spaces in snippets (#10870)

* Updated snippets

* Added link to encryption

* [DOCS] ARM CPU plugin docs (#10885)

* initial commit

ARM_CPU.md added
ARM CPU is added to the list of supported devices

* Update the list of supported properties

* Update Device_Plugins.md

* Update CODEOWNERS

* Removed quotes in limitations section

* NVIDIA and Android are added to the list of supported devices

* Added See Also section and reg sign to arm

* Added Preprocessing acceleration section

* Update the list of supported layers

* updated list of supported layers

* fix typos

* Added support disclaimer

* update trade and reg symbols

* fixed typos

* fix typos

* reg fix

* add reg symbol back

Co-authored-by: Vitaly Tuzov <vitaly.tuzov@intel.com>

* Try to fix visualization (#10896)

* Try to fix visualization

* New try

* Update Install&Deployment for migration guide to 22/1 (#10933)

* updates

* update

* Getting started improvements (#10948)

* Onnx updates (#10962)

* onnx changes

* onnx updates

* onnx updates

* fix broken anchors api reference (#10976)

* add ote repo (#10979)

* DOCS: Increase content width (#10995)

* fixes

* fix

* Fixed compilation

Co-authored-by: Maxim Shevtsov <maxim.y.shevtsov@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
Co-authored-by: Aleksandr Voron <aleksandr.voron@intel.com>
Co-authored-by: Vitaly Tuzov <vitaly.tuzov@intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>
Co-authored-by: Nikolay Tyukaev <nikolay.tyukaev@intel.com>
2022-03-18 17:48:45 +03:00
Irina Efode 2f5cb43cba Change CODEOWNERS file (#11041) 2022-03-18 17:28:53 +03:00
Taylor Yeonbok Lee d539a04efb [GPU] Add multiple output support in kernel selector, helper, set_arguments (#10755) 2022-03-18 17:26:07 +03:00
Taylor Yeonbok Lee e5ad30f194 [GPU] Added a new unittest to test the mapped external primitive of a loop is fused to other primitive (#10832) 2022-03-18 17:25:32 +03:00
Mateusz Bencer fe406d1606 Cpp fix of python segfault, reverted pybind workaround (#10749)
* test fix of segfault

* styles applied

* added keep_alive to pybind

* remove redundant code

* fix json tests

* review remarks

* introduced correct path to dlls in CI

* removing passing path via env variable

* introduced cpp solution

* remove keep alive

* review remarks

* remove explicit removing model

* removed shared_objects from ir frontend

* core test updated

* unified approach to handle extensions by frontends

* added nullptr check

* Revert "added nullptr check"

This reverts commit 666f5e4489.

* Revert "unified approach to handle extensions by frontends"

This reverts commit bf85ac24a6.

* m_extensions declaration in Frontend

* added assert
2022-03-18 16:29:46 +03:00
Yuan Xu a5362a4d58 Apply same changes from 22/1 to master (#11035)
* Add Overview page

* Revert "Add Overview page"

* fix errors & formatting

* fix article usage according to the styles

* fix errors

* update according to PXT comments

* CVS-80775

* update support matrix with Python version

* fix formatting

* fix formatting

* CVS-71745

* update formatting

* fix formatting

* fix formatting

* fix links & errors

* fix formatting

* update bullet points

* update

* adjust the order

* update

* update

* updates

* update references

* update

* update

* apply same updates with 22/1

* minor fix
2022-03-18 12:07:07 +00:00
Maxim Vafin c8f4f9b7db [MO] Fix swish value infer (#10802) 2022-03-18 14:56:37 +03:00
Maksim Kutakov dfdbdb4601 [CPU] CPU plugin docs refactoring (#10970)
* CPU device documentation refresh

* Bfloat16 inference page aligned with the new API

* Bfloat16 inference section moved to CPU main

* First review comments applied

* Second review step comments applied

* OneDNN reference changed to the GitHub page

* AvgPool added to the oneDNN ops list
2022-03-18 14:56:22 +03:00
Ilya Churaev a4d164eda4 Fixed macro for plugin registration. Register only required plugins (#11031) 2022-03-18 13:13:33 +03:00
Irina Efode 931313c03b Move Subgraph Dumper tool to RTTI declaration (#10862) 2022-03-18 13:01:53 +03:00
Anton Dudchenko 4cbdf9e737 [VPU] Fix MyriadPlugin build with enabled options of Conditional Compilation (#10811)
Added initialization for streamPacketDesc_t
CVS-80386
2022-03-18 12:20:15 +03:00
Yuan Hu 967f056761 [AUTOPLUGIN] update multi plugin document for ov2.0 (#10688)
* update multi document

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

* update

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

* update snippets ov::enableProfile

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

* fix build issue

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

* use Anymap in snippets

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

* fix format and set property

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

* update python

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

* try fo fix test document issue

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

* removed NEW IE-CENTRIC API and upated set_property

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

* update ov::optimal_number_of_infer_requests

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2022-03-18 11:31:36 +03:00
David NamandIlya Churaev 000723acd0 Add ReadValue and Assign to template plugin tests (#9132)
* Add readvalue, assign to templte plugin test

* Fix clang error

* Fix clang error

* Remove unnecessary comment

* Fix type-casting error

* Fix ci issue regarding const value

* Change Function to Model

* Fix op scope

* Change way to get variable

* Fix type-casting error

* Set variable id to const

* Fix side-effect in ieFuncTests

* Implement Assign-3, ReadValue-3 in evaluates_map

* Correct setting attribute

* Correct setting attribute

* Remove unnecessarily added method

* Roll back v6

* Use member variable for variable_id in assign-3, read_value-3

* Get data pointer from host tensor

* Remove visitor API test for ReadValue-6, Assign-6

* Implement visitor api test for read_value-6, assign-6

* Fix clang error

* Split read_value and assign into each file for visitor test

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-03-18 07:13:40 +00:00
Mikhail Nosov c4f5bce3b0 If CMAKE_BUILD_TYPE is not set - set it to 'Release' by default (#11026)
This behavior is already used by default because ONNX is enabled by default and thirdparty/onnx/onnx/CMakeLists.txt forcing CMAKE_BUILD_TYPE to Release if it is not set

It fixes the following issues:
- When ONNX frontend is disabled - source is built for Debug, which is very unexpected comparing to Release with ONNX frontend enabled
- When ONNX frontend is disabled, even libopenvino.so could not be built due to some generated makefiles issues

It is set to 'Release' (not to 'Debug') to comply with default behavior when ONNX is enabled (it is default option working for most users)
2022-03-18 06:59:36 +03:00
Maxim Vafin 0be4bca954 Incremental improvement of MO user guide. (#11010)
* Incremental improvement of MO user guide.

* Apply feedback
2022-03-17 22:38:20 +03:00
Anton Romanov 73994d7c70 Fixed coverity in benchmark app (#11013) 2022-03-17 18:26:59 +03:00
Alina Kladieva aedcf2cb9f Skip hanging Myriad canRun3AsyncRequestsConsistentlyFromThreads (#11011)
* Skip Myriad canRun3AsyncRequestsConsistentlyFromThreads

* Update skip_tests_config.cpp

Fix typo
2022-03-17 17:52:25 +03:00
Mikhail Nosov 4b3dd808df [First Inference] Read time improvements via using 'mmap/munmap' (#10907)
* Performance improvement for constant creation

The issue is that 'are_all_data_elements_bitwise_identical()' is called every time in Constant constructor, and it potentially checks all buffer which is O(N) complexity.
While it is needed only if client uses 'get_all_data_elements_bitwise_identical'

Solution:
- Defer calculation until first call of 'get_all_data_elements_bitwise_identical'
- Store calculated value in mutable class member to reuse it on next calls of 'get_all_data_elements_bitwise_identical'

Test verifies both cases:
a) that constant creation with shared memory data (now O(1)) is significantly faster than creation+bitwiseCheck O(N)
b) Than once calculated, value is taken from cache, which is significantly faster than re-calculation

* fix clang-format

* Stash - Linux implementation

* Windows mmap implementation + unicode

* Clang for windows

* removed debug print

* Add handling of empty bin file

* fix windows includes

* Fix python test

* Unit tests
Fix for Constant with size > 4GB

* Fix review comments
2022-03-17 17:16:06 +03:00
Indira Salyahova 3a8fd7135e [POT] Method сhange to get bias shape in bc and fbc algoritms (#10463)
* refactoring: get bias shape in bc and fbc algoritms

* use scipy to take most frequent shape

* pylint

* update reference

* pylint

* Update test_sanity.py

* update test_sanity.py

* Update test_sanity.py
2022-03-17 16:46:28 +03:00
Sergey LyubimtsevandYuan Xu 412f2190d1 Update for get started samples (#10975)
* Update for get started samples

* Update docs/get_started/get_started_demos.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/get_started/get_started_demos.md

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

* formatting

* rewording

* fix links

* fix formatting

* Update docs/get_started/get_started_demos.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>

* replace squeezenet1.1 with googlenet-v1

* GoogleNet v1 Caffe* model

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-03-17 16:01:42 +03:00
Vladimir Zinoviev f12ab5c182 [LPT] Tests on reshape with channel dim reducing (#10999) 2022-03-17 16:00:45 +03:00
Mikhail Nosov 857a1ad2af Caching snippets try/catch to make coverity happy (#11005) 2022-03-17 09:58:18 +00:00
Artyom Anokhov 2b4ee3d937 Fix Deployment Manager configs for MacOS and Win-HDDL target (master) (#11000)
* DM configs: Updated path for MacOS. Removed MovidiusDriver for HDDL target for Windows

* DM config MacOS: Updated name for libov_runtime
2022-03-17 12:45:07 +03:00
Andrey NoskovandMikhail Ryzhov 0091d52c78 [GNA] Added SW_FP32 mode w/o SF for BasicLSTM (#10115)
* [GNA] Added SW_FP32 mode w/o SF for BasicLSTM

* deleted additional test
 added sw_fp32 mode for exisiting test
 changed reference output for new mode

* [GNA] Fixed according to review

* [GNA] Parametrized weights range

* fixed after review

Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>
2022-03-17 11:32:46 +03:00
Anton Romanov bfa0e3e1a4 Fix samples tests on azure (#10892)
* Fix samples tests on azure

* fixed bmp reader
2022-03-17 11:17:25 +03:00
Dawid Kożykowski cf80156fcc Expose Output object bindings to Python (#10743) 2022-03-16 18:31:38 +01:00
Dawid Kożykowski 6f64de4c27 DynamicQuantizeLinear op support (#10565) 2022-03-16 18:30:15 +01:00
Karol BlaszczakandIlya Lavrenov 33d90c5c77 [DOCS] update HETERO execution (#10758)
* [DOCS] update HETERO execution

a basic language review

* Update docs/OV_Runtime_UG/hetero_execution.md

* Update docs/OV_Runtime_UG/hetero_execution.md

* Update docs/OV_Runtime_UG/hetero_execution.md

* Update docs/OV_Runtime_UG/hetero_execution.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-03-16 18:37:30 +03:00
Yegor Kruglov 7cfd8698ce [Master] Cascade RCNN res101 document model support (#10902)
* cascade rcnn model support

* fix typo

* specify model directory

* comments resolving
2022-03-16 18:16:28 +03:00
Vladimir Zinoviev 25e1f6ac97 [CODEOWNERS] LPT folder owner change to LPT team (#10993) 2022-03-16 17:38:29 +03:00
Vladislav Volkov ed8c9d6f9a CPU Plugin refactoring: class names (#10639) 2022-03-16 17:16:29 +03:00
Yegor Kruglov f7b2e3a8ca SoftSign-9 specification (#10690)
* SoftSign-9 specification

* opset9 update

* fix formula

* comments resolving
2022-03-16 14:58:26 +03:00
Vladimir GavrilovandIlya Churaev f7875da083 nGraph shell of operations RDFT and IRDFT (#10353)
* Written header files for the nGraph operations RDFT and IRDFT.

* Written nGraph shell for the operation RDFT.

* Added missed include.

* Added RDFT to opset9 table.

* Code style fixes.

* Written the nGraph shell of the operation IRDFT.

* Added IRDFT to opset9 table.

* Started to write shape infer tests for RDFT.

* Refactoring: shape infer functions of RDFT and IRDFT moved into separate files.

* Written shape infer tests for RDFT.

* Written shape infer tests for IRDFT operation.

* Fixed code style.

* Fixes in the shape infer function of RDFT.

* Fixes in the shape infer function of RDFT.

* Fixes in the shape infer function of IRDFT.

* Deleted redundant includes in include/ngraph/op/irdft.hpp and include/ngraph/op/rdft.hpp

* Deleted redundant includes in include/openvino/op/rdft.hpp and include/openvino/op/irdft.hpp.

* Deleted redundant includes in cpp-files of nGraph shells of operations IRDFT and RDFT.

* Code style fixes.

* Shape inference functions of operations RDFT and IRDFT moved to the namespace ov::op::util.

* Deleted RDFT and IRDFT from docs/template_plugin/backend/opset_int_tbl.hpp.

* Deleted 'using namespace ngraph' from cpp-files of nGraph shells of operations RDFT and IRDFT.

* Fixed typos.

* Merged some loops in shape inference functions of RDFT and IRDFT.

* Written visitor tests for RDFT and IRDFT.

* Small change.

* Common part of RDFT and IRDFT shape validation moved into the separate file.

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-03-16 14:54:32 +03:00
097006d97a [GNA] Update documentation (cherry-pick from release) (#10974)
* [GNA] Update documentation (release) (#10873)

* parent 5f755d5e4a
author Nadezhda Ageeva <nadezhda.ageeva@intel.com> 1646919359 +0300
committer Nadezhda Ageeva <nadezhda.ageeva@intel.com> 1647270928 +0300

[GNA] Updte documentation (release)

Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Denis Orlov <denis.orlov@intel.com>

Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Denis Orlov <denis.orlov@intel.com>

Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Denis Orlov <denis.orlov@intel.com>

Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Denis Orlov <denis.orlov@intel.com>

Apply comments

Move snippets to separate file

Add notes about POT and 2d convolutions

* Add lins to GNA setup

* cleanup after rebase

* [GNA] small docs fixes (#10959)

* [GNA] small docs fixes

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/GNA.md

Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>

Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>

Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>
2022-03-16 14:37:55 +03:00
Ilya Znamenskiy 848a824260 [GPU] Removed unneeded data from the code (#10987) 2022-03-16 14:22:54 +03:00
Chenhu Wang 3bb83b4ddd [CPU] Fixed undefined values in MVN and Interpolate nodes (#10829) 2022-03-16 14:11:07 +03:00
Alexandra Sidorova 68452e97e2 [CPU] Fixed default ellipsis in StridedSlice (#10713) 2022-03-16 14:09:42 +03:00
Chen Xu 49fb48e744 [CPU] Topk node extend to support horizontal sort for all layouts for top_k == 1 (#10700) 2022-03-16 14:09:14 +03:00
Luo Cheng 4d8adabcaa [CPU] Fusing in non-0 output port exception (#10837) 2022-03-16 14:08:28 +03:00
Alexander Zhogov 8a813d0da9 Update windows.yml
Azure CI: Enable IB again
2022-03-16 13:05:36 +03:00
Mikhail Nosov 7cea7dd4e6 Docs: model caching page update according to OpenVINO API 2.0 (#10981) 2022-03-16 12:22:33 +03:00
Ilya Znamenskiy 2687f6fb2e [GPU] Enabled IFM leftovers inside fully_connected_imad kernel (#10912) 2022-03-16 12:02:36 +03:00
Alexander Zhogov 06f55bd8e8 Azure CI: Disable IB 2022-03-16 08:57:45 +03:00
Yuan Hu 50adb2240c [AUTOPLUGIN] don't check dynamic shape when there is only one device (#10868)
* don't check dynamic shape when there is only one device

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

* remove redundant if

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2022-03-16 09:56:23 +08:00
guozhong wang 8c9c592fcf Guozhong/add hint cumulative throughput (#10727)
* mod docs/_static/images/dataset.png and docs/_static/images/inputs.png

* add new hint cumulative_throughput

* clang format properties.hpp

* add set properties and get properties test case for CUMULATIVE_THROUGHPUT

* reset docs/_static/images/dataset.png and docs/_static/images/inputs.png

* reset docs/_static/images/dataset.png and docs/_static/images/inputs.png

* reset dataset.png and inputs.png

* reset dataset.png and inputs.png

* remove test value cumulative_throughput from gpuplugin and cpuplugin testcase

* rollback dataset.png and inputs.png to 41818a377
2022-03-16 09:56:05 +08:00
Yuan Hu 4f6dcc1d32 [AUTOPLUGIN] add fps log (#10662)
* add fps log

add format '%lf' for log
add INFO_RUN and DEBUG_RUN, code only run when greater than special log level
add fps log for device
print device config info with DEBUG_RUN
add mock test for DEBUG_RUN and INFO_RUN

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

* use n / end -start instead of (n-1) / ((nst start) -(1st start))

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2022-03-16 09:55:41 +08:00
Andrey Zaytsev ea8f1d0344 Cherry-picked Changes to the OpenVINO 2.0 Transition Guide (#10936) (#10978) 2022-03-15 21:09:33 +00:00
Nadezhda Ageeva 3c721b0f03 [nGraph] [MO] Add ngraph transformations for PRelu fusing (#10209)
* MO: add PRelu fusing pattern with Sub

* PRelu fusing

* Apply review comments

* Code style
2022-03-15 18:57:59 +03:00
Mikhail Nosov 93722fe101 Docs. Fix link in layout overview (#10968) 2022-03-15 15:35:02 +00:00
Sofya Balandina 499ffcaa59 [conformance] SetUp timeout per test (#10426) 2022-03-15 18:28:19 +03:00
azhogov 37e05afd12 GitHub org control: all ignored accounts are showed now 2022-03-15 17:27:08 +03:00
Nikita Malinin e103af056e [POT] References & golds update (#10937)
* Update references

* Update golds & add stats dumping

* Statistics_data upd

* Enable densenet in nightly

* Pylint fixes

* Update try-except WA

* Update simplified gold
2022-03-15 16:55:48 +03:00
Vladimir Paramuzov 4e8e56e887 [GPU] Removed unused variable to fix android build (#10961) 2022-03-15 16:22:13 +03:00
Bartek Szmelczynski aed3b59796 [DOCS] Python snippets for Query device page (#10789)
* create python snippets

* remove redundant space
2022-03-15 16:11:32 +03:00
Taylor Yeonbok Lee 13b6a3d86e [GPU] Fix batchability check of MAX_BATCH_SIZE (#10660)
* Fix batchability check of MAX_BATCH_SIZE

* Applied review comment
2022-03-15 21:31:03 +09:00
Vitaliy Urusovskij 2dbd60c1ae Mark get_type_info_static() op class methods as hidden (#10691)
* Mark `get_type_info_static()` as hidden

Each plugin linked with openvino library contains `type_info_static` symbols. In case when one of the libraries is unloaded and app tries to get opset, it leads to segfault. So mark `get_type_info_static()` as hidden to use only one implementation exactly from openvino lib

* Fix "'visibility' attribute ignored" issue by moving `TestPass` out of test scope

* Fix clang format

* Small update of `If` op

* Revert "fix 79520 (#10449)" to correctly compare DiscreteTypeInfo via `==`

This reverts commit 29883a152a.
2022-03-15 14:59:13 +03:00
Vladislav Golubev 060a149322 [nGraph] get_constant_from_source fix (#10787) 2022-03-15 14:50:21 +03:00
Jan Iwaszkiewicz 660c6a3e84 [DOCS] Python Exclusives overview (#10946)
* Add python docs

* Small fix

* Apply comments

* Fix style
2022-03-15 14:26:12 +03:00
Tomasz Dołbniak 29144d3a6b ONNX Expand extended support (#10833) 2022-03-15 12:21:30 +01:00
Bartek SzmelczynskiandAlexey Lebedev 840e622da5 add snippets for automatic batching (#10910)
* add snippets for automatic batching

* Update docs/snippets/ov_auto_batching.py

Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com>

* add missing bracket

Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com>
2022-03-15 14:17:20 +03:00
Sergey Lyubimtsev 5f27c74d96 Add description for zsh: no matches found : openvino-dev[...] issue. (#10950)
* Add description for `zsh: no matches found : openvino-dev[...]` issue.

* spell check
2022-03-15 13:37:39 +03:00
Ilya Znamenskiy fc5356cd3b [GPU] Spelling fixes (#10952) 2022-03-15 12:25:55 +03:00
Yuan Xu e341cdf541 Add Python version for Docker installation (#10840)
* update support matrix with Python version

* fix formatting

* update formatting

* fix formatting

* fix formatting
2022-03-15 12:06:48 +03:00
Yuan Xu e71a05d94d Minor updates to Linux/macOS/Windows installation guide (#10955)
* Add Overview page

* Revert "Add Overview page"

* CVS-71745

* fix links & errors

* fix formatting

* update bullet points
2022-03-15 12:06:30 +03:00
Mateusz Tabaka c58ef365b5 Fuse FQ->Mul also if first FQ input can be constantfolded (#10712)
The change fixes FQ fusions for subgraphs like 'Const weights'->FQ->Transpose->Multiply.
After PullTransposeThroughFQUp transformation, we end up with following:
'Const weights'->Transpose->FQ->Multiply. Because of the Transpose on first
FakeQuantize inputs, Multiply could not be fused since FakeQuantizeMulFusion
expected that weights is a Constant node.

Ticket: 77785
2022-03-15 09:54:41 +01:00
Nikita SemaevandIlya Lavrenov 758d12b9cb The correct namespace LayerTestsDefinitions (#10821)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-03-15 11:34:33 +03:00
Vladimir Zinoviev 4a2d0f39dd [LPT] Turn back checks in reshape transformation when subtract is absent (#10939) 2022-03-15 11:34:12 +03:00
Mikhail NosovandIlya Churaev ef5ad90dd7 [Read time improvement] Avoid calling of 'are_all_data_elements_bitwise_identical()' during Constant creation (#10858)
* Performance improvement for constant creation

The issue is that 'are_all_data_elements_bitwise_identical()' is called every time in Constant constructor, and it potentially checks all buffer which is O(N) complexity.
While it is needed only if client uses 'get_all_data_elements_bitwise_identical'

Solution:
- Defer calculation until first call of 'get_all_data_elements_bitwise_identical'
- Store calculated value in mutable class member to reuse it on next calls of 'get_all_data_elements_bitwise_identical'

Test verifies both cases:
a) that constant creation with shared memory data (now O(1)) is significantly faster than creation+bitwiseCheck O(N)
b) Than once calculated, value is taken from cache, which is significantly faster than re-calculation

* fix clang-format

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-03-15 10:03:47 +03:00
Mingyu Kim 0a8f97f429 [GPU] Friendly exception msg for alloc failure (#10953) 2022-03-15 15:48:31 +09:00
Steve Yoo a9ff10b365 Add SLT to Template Plugin: ROIAling-3 (#10625) 2022-03-15 07:31:27 +03:00
Mingyu KimandIlya Znamenskiy 0b556fd7a9 [GPU] More friendly exception message (#10721)
* [GPU] More friendly exception message

* Apply Ilya's comment

Co-authored-by: Ilya Znamenskiy <ilya.znamenskiy@intel.com>

Co-authored-by: Ilya Znamenskiy <ilya.znamenskiy@intel.com>
2022-03-15 09:57:22 +09:00
Karol Blaszczak 3b2b055bfd repair 2 png files (#10949) 2022-03-14 22:03:09 +03:00
Ilya Churaev ad1c4a24c3 Deprecate version inside DiscreteTypeInfo (#10781)
* Deprecate version inside DiscreteTypeInfo

* Fixed code style

* Fixed openvino for macOS

* Fixed build for macOS

* Fixed errors for Windows build
2022-03-14 21:18:00 +03:00
Ryan LoneyandCCR\ntyukaev <nikolay.tyukaev@intel.com> 575b2fad73 Update Binder URL on the tutorials landing page (#10877)
* Update Binder URL on the tutorials landing page

Binder URL was linking to a file. It should go to an actual Binder tutorial.

(Replaces https://github.com/openvinotoolkit/openvino/pull/10747)

* binder logo

* fixes

Co-authored-by: CCR\ntyukaev <nikolay.tyukaev@intel.com>
2022-03-14 21:11:01 +03:00
Ilya Churaev 0d404633a9 Add OpenVINO as required component and remove clang-format from example (#10944) 2022-03-14 20:05:24 +03:00
Mateusz Tabaka 23eaa80325 Don't memset Constant's buffer if it's about to be filled with data (#10861)
* Don't memset Constant's buffer if it's about to be filled with data

* dont memset buffer in visit_attributes
2022-03-14 19:36:40 +03:00
Irina Efode 3aa525c003 SubgraphDumper: clone only not constant graph (#10867)
* SubgraphDumper: clone only not constant graph

* Apply comments
2022-03-14 18:49:11 +03:00
Maxim Vafin 4e27d936b5 Update Convert_YOLACT.md (#10942) 2022-03-14 15:21:43 +00:00
Mikhail NosovandIlya Churaev 72fe6082ea [Preprocess] InputTensorInfo::set_from implementation (#10839)
* InputTensorInfo::from implementation

If user's application already has `ov::runtime::Tensor` object created,
it will be possible to reuse basic characteristics for input (shape, precision) from tensor using InputTensorInfo::from method

* Rename 'from' to 'set_from' as  in Python 'from' keyword is used for import modules
Python bindings: from ov.Tensor and from numpy array

* Style fix (quotes)

* Apply suggestions from code review

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

* Fix code style

* Use set_from in hello_classification CPP sample

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-03-14 18:02:51 +03:00
Vladimir Paramuzov 4c4581940a [GPU] Use int64_t type for axis in concat (#9790) 2022-03-14 18:02:21 +03:00
Anastasia KuporosovaandIlya Lavrenov d0b4cae2f8 [Python API] move util under utils (#10923)
* [Python API] move util under utils

* fix importing

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-03-14 14:40:28 +03:00
Mikhail NosovandIlya Lavrenov 96f954c704 [Preprocessing] Crop preprocessing support (#10805)
* Crop preprocessing support

Note: instead of 'ov::Coordinate' simple std::vector<int> is used because Coordinate don't support negative dimensions

Added unit tests, template reference tests, cpu and gpu tests

* Added python bindings
Fix review comments

* Fixed python code style

* Fix thresholds

* Fix python style

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-03-14 13:32:27 +03:00
6ec8e53183 Update Model Optimizer User Guide (#10759)
* Remove install prerequisites steps, order FWs, and move pre-processing details

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update Introduction: examples of MO CLIs, references to parameters description pages

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update Setting Input Shape section

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update Optimizing Preprocessing Computation page

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Revert location of Additional_Optimizations.md

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Describe layout and FP16 support in MO

* Fix docs issue

* Apply feedback

* Apply review feedback

* Clean-up Resources

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Mention FP16 compression in MO Introduction

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Apply the first portion of feedback

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Apply the second portion of feedback

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Apply review feedback

* Apply review feedback

* Apply the third portion of feedback

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Apply feedback for FP16 compression documentation

* Apply review for FP16 page

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/MO_DG/prepare_model/Additional_Optimizations.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Apply feedback

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Apply feedback

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Apply feedback

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Address feedback about tutorials, input_shape option

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Rework Setting Input Shapes section

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update "See also" list

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Correct conversion documents for each FW

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Refactor TensorFlow converting document and expand Embedding Preprocessing document

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix a link to POT

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2022-03-14 13:08:58 +03:00
Mikhail Nosov 43cb3920fb Docs: preprocessing use case with saving model to IR (#10698)
* Docs: added preprocessing use case with saving resulting model to IR

* Enable Model Caching to 'application code' section

* Fix review comments
2022-03-14 12:12:20 +03:00
Alexey Suhov ef00057c8e Change product version to 2022.2.0 (#10911)
* Change product version to 2022.2.0

* change OPENVINO_VERSION_MINOR
2022-03-14 11:42:03 +03:00
yanlan song a6583965a5 try avoid timeout in batch plugin during transition in auto plugin (#10753)
* initial debug

Signed-off-by: fishbell <bell.song@intel.com>

* refine

Signed-off-by: fishbell <bell.song@intel.com>

* remove debug msg

Signed-off-by: fishbell <bell.song@intel.com>
2022-03-14 11:05:26 +03:00
Ilya Churaev 0bc6196d96 Migrate to new RTTI for all transformations and graph structures (#10703)
* Migrate to new RTTI for all transformations and graph structures

* Fixed code style
2022-03-14 06:57:21 +03:00
Maxim Gordeev 4be227f5a1 [IE Samples] Fixed rights for file with image (#10924) 2022-03-12 01:51:34 +03:00
Alexander Zhogov 45d34e7885 CODEOWNERS: Fix 3d party dependencies 2022-03-11 21:43:09 +03:00
Dawid Kożykowski 3b5f3d1957 Snippets for preprocessing migration page (#10899)
* add placeholder for python version of first snippet

* fix problem with placeholder

* fix wrong file name

* fix fragment name

* update python snippets

* move imports to the top of the code fragments
2022-03-11 21:19:07 +03:00
Przemyslaw Wysocki de3088adce [Docs] Add Python snippets for configure devices (#10913)
* Add Python docs for configure devices

* Bugfixes

* Minor changes

* Minor changes

* Format changes

* Minor changes
2022-03-11 21:17:22 +03:00
Anastasia KuporosovaandIlya Lavrenov 23604ca28c [Python API] Update doc style (#10708)
* [Python API] Update doc style

* apply comments

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-03-11 19:18:20 +03:00
Irina Efode 7790f2036f [IE TESTS][CONFORMANCE] Fix for IRs with dynamic shapes (#10880) 2022-03-11 19:17:53 +03:00
Vladimir Zinoviev eebe8c70f9 [LPT] Fix out of bounds access in reshape (#10791) 2022-03-11 18:04:14 +03:00
Mikhail Nosov 86322c916b Fix loading time issues for POT models (with lots of results) (#10898)
* Fix loading time issues for POT models (with lots of results)

* Same for 'optimized_strided_slice'
2022-03-11 17:44:36 +03:00
Andrey Noskov 6fdd983750 [GNA] Added multi crop test (#10459) 2022-03-11 15:05:14 +03:00
Andrey NoskovandMikhail Ryzhov caaacb2db4 [GNA] Moved single Lstm-cell test from deprecated tests (#10472)
* [GNA] Single lstm-cell test added

* Added additional config for test

* one more input and hidden shape

* Added cell with ReLU
Deleted deprecated test

* test added as lstm_cell_basic

* Enabled gna_compact_mode

Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>

* enabled compact_mode in all tests

Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>
2022-03-11 15:03:16 +03:00
Ilya Churaev d93ce1e246 Added intro to transformation guide (#10894) 2022-03-11 14:27:11 +03:00
Vladimir Dudnik f48b233629 update omz intel models, fix docs (#10843) 2022-03-11 12:34:55 +03:00
Vladislav VolkovandIlya Lavrenov 9d74f5cd76 Export/import fixed for param->result and const->result models (#10838)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-03-11 11:10:56 +03:00
Nikolay Tyukaev 2940db0fb1 benchmark legal, snippet margin bottom (#10886) 2022-03-11 11:10:11 +03:00
Sergey Lyubimtsev dd076264eb add pre-release description for wheels packages (2) (#10813)
* add pre-release description for wheels packages

* refactoring

* lines

* Revert "lines"

This reverts commit 01a74dc168.

* linters

* linters

* nighly revision of docs URL
2022-03-11 11:09:17 +03:00
Sergey Lyubimtsev 0dc2ab182b Update APT instructions according to repository configuration (#10869) 2022-03-11 10:45:31 +03:00
Alexey LebedevandJan Iwaszkiewicz 97efdb5020 [docs] python snippet for dynamic shapes (#10762)
* Create snipp

* link python snipp with doc

* fix docs

* Apply suggestions from code review

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Fix cpp comments

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-03-11 08:42:33 +03:00
Elizaveta Lobanova 4e0a740eb3 [GNA] Support of overload correction for MatMul with 2 non-constant layers (#10447) 2022-03-10 15:16:17 +03:00
Vladimir Paramuzov 09246e2db8 [GPU] GPU plugin docs (#10734) 2022-03-10 15:01:52 +03:00
Anton Pankratov a8a2640fb7 Added callback and wait migration guide (#10775)
* Added callback and wait migration guide

* Added start async

* Simplified wait

* Added selector for sync async

* fixed doc

* fixed build

* fixed doc

* fixed doc
2022-03-10 14:00:42 +03:00
Irina Efode 5566b67238 Frontend support in Subgraph dumper (#10765)
* Init

* Enable frontends

* Update read_ir_compare_with_refs.cpp

* Remove extra line

* Update CMakeLists.txt
2022-03-10 13:34:47 +03:00
Nikita Malinin 4746d0881b [POT] Update BC with the Parameter nodes connection (#10848)
* Update BC with the Parameter nodes connection

* Update test_sanity with octave
2022-03-10 10:28:47 +03:00
Tatiana Savina d7372d678c [DOCS] fixes for nightly (#10842)
* fixes for nightly

* modify xfile

* change launcher ref
2022-03-10 09:10:54 +03:00
Katarzyna Mitrus 531fa9018d [DOCS] Python snippets for Hetero execution page (#10769)
* Update docs ov hetero snippets

* Add missing space

* Update precision hint

* Update hetero docs snippets with GPU profiling
2022-03-09 19:34:42 +03:00
Karol BlaszczakandAndrey Zaytsev 44ec4661a4 Update Auto plugin docs (#10623)
* Update Auto plugin docs

Revise auto plugin and auto plugin debugging articles. Include necessary image files.

* Update docs/OV_Runtime_UG/supported_plugins/AutoPlugin_Debugging.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/AutoPlugin_Debugging.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/AutoPlugin_Debugging.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/AutoPlugin_Debugging.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/supported_plugins/AutoPlugin_Debugging.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update AutoPlugin_Debugging.md

* include review corrections

* Update auto_device_selection.md

* Update auto_device_selection.md

* Update auto_device_selection.md

* Update auto_device_selection.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
2022-03-09 18:09:37 +03:00
948347f3dd ncc build fixes (#10367)
* fix .ncc_style target names

it was breaking configure on system with libclang-12-dev, clang-12,
ninja and cmake 3.17+(ninja complains about duplicate
target). with lower cmake version configure succeeds, but build exits
immediately with error. by replacing ninja with make error becomes
warning(it's still significant, make just skips duplicate rules, i.e.
doesn't check style of some source files, rule duplication is genuine
bug). without libclang-12-dev and clang-12 ENABLE_NCC_STYLE is OFF and
bug is not triggered

* silence uninitialized warning in core_integration

probably it was always initialized before use, but compiler wasn't made
aware of it

* fix function spelling to unbreak code style checks in benchmark_app

* include <thread> for std::this_thread

existing code was relying on namespace pollution by old libstdc++

* replace is_pod with is_standard_layout && is_trivial

is_pod is deprecated, it breaks build on current gcc

Co-authored-by: Serhii Pavlovskyi <spavlovskyi@lohika.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-03-09 13:42:06 +03:00
Vladimir Dudnik d9976332b0 upd open-model-zoo, upd docs, upd ac cfgs (#10676) 2022-03-09 11:48:47 +03:00
Ilya Churaev 702f8cf223 Fixed duplicated words (#10827) 2022-03-09 08:06:12 +00:00
Taylor Yeonbok Lee 3e7e0d5651 [DRYRUN] Fix dryrun in partial build (#10761)
When partial build is called for dryrun, do constant propagate too.
In normal case, partial build is not doing constant propate for saving build time of internal program.
However, if partial build is called with dryrun, it will fail at transfer_constants due to the generic nodes which does not have impl.
2022-03-07 13:37:21 +09:00
Tatiana Savina de47a3b4a4 POT documentation updates (#10578)
* POT changes

* change install

* change img size

* remove cli option
2022-03-06 09:14:39 +03:00
Nikita Malinin 41818a377f [POT] Update IEEngine with the Dynamic model support (#10717)
* Update IEEngine with the Dynamic models support

* Update with the batch

* Method naming fix

* Update image_loader & tests with dynamic models

* Update test_sanity.py

* Replace custom_mo_config from the model
2022-03-05 15:49:21 +03:00
Egor Duplensky 3b8e960b10 [CPU] Avoid using cache for constant inplace or multi-child edges (#10573) 2022-03-05 14:37:50 +03:00
Tatiana Savina 3b8ca9f0af [DOCS] Fixes for nightly (#10806)
* add img

* wb img for input

* dataset added

* add img

* wb img for input

* dataset added

* ov_fix

* more imgs

* new img

* new img

* nlp

* new img

* delete img
2022-03-05 13:03:46 +03:00
Maksim Kutakov e87ea5d611 [CPU] Use raw pointer to share peer data for constants (#10744) 2022-03-05 12:32:11 +03:00
Andrey Zaytsev 0f8c599ce7 Re-structure Model Optimizer User Guide and Clean-up (#10801)
* Modified the workflow diagram

* Moved supported topology lists to separate topics

* Additional changes

* Removed Supported Topologies list and Deprecated pages

* Created the Model Conversion Tutorials section for instructions for specific models

* Topic names alignment, removed Default_Model_Optimizer_Optimizations.md

* Additional structural changes

* Fixed links

* heading fixes
2022-03-05 12:31:15 +03:00
Roman Kazantsev 0c20e7a3ca [MO] Remove IR frontend from available frontend list in MO (#10798)
* [MO] Remove IR frontend from available frontend list in MO

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix issue - forget to pass FEM

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix issue for TF with new FE and default legacy

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2022-03-04 20:50:02 +03:00
Yuan Xu 3b24ed032a Yuan install guide 22/1 (#10786)
* Add Overview page

* Revert "Add Overview page"

* fix errors & formatting

* fix article usage according to the styles

* fix errors

* update according to PXT comments
2022-03-04 19:32:10 +03:00
Ilya Churaev cb9049076b Enabled clang-format for cc and itt libs (#10793) 2022-03-04 18:40:18 +03:00
Dmitry PigasinandMaxim Gordeev c28cebb2a6 [CPP Speech Sample] Fix result saving when batch size is not 1 (#10714)
* Fix result saving when batch size is not 1

* Remove useless if statement

* improved processing scores for model with more than one outputs

* added checking on count of model outputs

* improve if statements

* divide fix for model with several outputs to other PR

Co-authored-by: Maxim Gordeev <maxim.gordeev@intel.com>
2022-03-04 15:41:47 +03:00
Anuj Mittal 7e8bbf4968 installing-openvino-yocto.md: fix install instructions (#10785)
Change _ to : as per the new override syntax.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-04 15:41:37 +03:00
Nikita Malinin 69ad9e80e1 [POT] Update OverflowCorrection algo for nodes without bias (#10687)
* Update OverflowCorrection algo for nodes without bias

* Pylint line fix

* Update OC with the last add name

* Pylint fix
2022-03-04 14:50:44 +03:00
Irina Efode 32edd596e3 [IE TESTS] Functional test review: Part 4 (#10772)
* [IE TESTS] Move specific import_export_tests to gna and myriad

* add
2022-03-04 14:42:16 +03:00
Ilya Churaev ed702910bd Enable clang for transformations (#10778)
* Enable clang for transformations

* Fixed code style

* Fixed build

* Fixed macOS
2022-03-04 13:38:42 +03:00
Irina Efode 082ebbcbf8 [IE TESTS] Remove NgraphConversionTests (#10770) 2022-03-04 09:52:58 +00:00
Fedor Zharinov 043a773f61 [Benchmark_app]Check all I/O names (#10745)
* Check all I/O names

* stylefix
2022-03-04 09:49:03 +03:00
hyunback kim 5cee51e9c4 [GPU] update to check quantize fusing condition in oneDNN (#10680)
* [GPU] update the condition for minimize_local_reorders

* Update to check needs reorder condition in quantize.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-03-04 14:30:07 +09:00
yanlan song 8a2252b774 fix multi infer result corrupt issue (#10704)
* do not share blob

Signed-off-by: fishbell <bell.song@intel.com>

* build error

Signed-off-by: fishbell <bell.song@intel.com>

* remove comment codes

Signed-off-by: fishbell <bell.song@intel.com>
2022-03-04 08:13:12 +03:00
Mateusz Bencer fd18632d89 Update --extenions MO doc (#10763) 2022-03-04 07:24:52 +03:00
Wang, Yang 78c9f5b0a2 Add coommon test of the key PERFORMANCE_HINT for AUTO plugin API 2.0. (#10505)
* Add coommont test of the key PERFORMANCE_HINT for AUTO plugin API 2.0.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Add common test case for config check.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Use the implemented property test case.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-03-04 10:04:48 +08:00
Alexander Kozlov 1bbd92a8f8 Revised Tuning For Performance and Model optimization docs (#10276)
* Revised Tuning for performance and Model optimization docs

* Fixed links

* Fixed link

* Applied comments

* Fixed one more comment
2022-03-03 18:58:58 +03:00
Ilya Churaev 554b50eb85 Remove redundant calls from set_argument (#10701)
* Remove redundant calls from set_argument

* Fixed tests
2022-03-03 18:01:59 +03:00
Vladimir Gavrilov f8ce57319b Specifications of operations RDFT and IRDFT (#10242)
* Written the draft of the specification of the operation RFFT.

* Started to write the specification of the operation IRFFT.

* Small fix.

* Renamed RFFT operation as RDFT.

* Fix in Operations_specifications.md.

* Written the specification of the operation IRDFT.

* Fixes in examples.

* Fixes in opset9.md and Operations_specifications.md.

* Small fix.

* Replaced opset8 by opset9 in opset9.md.

* Deleted redundant sentences.

* Small fix.

* Replaced input_shape by data_shape.

* Fixed mistypes.

* Fixes of mistypes.

* Fixed typo.

* Fixed RDFT specification, in order to perform signal_size input as in TF and PyTorch.

* Fixes in examples for RDFT.

* Fixes in the output shape calculation of IRDFT. Now this calculation is as in TF and PyTorch.
2022-03-03 13:47:23 +00:00
Maxim Gordeev f81f819ecd [IE Samples] Improved processing outputs for model with more than one output (#10737)
* Improved processing outputs for model with more than one output

* fixed condition

* added checking count of output/reference files
2022-03-03 16:35:41 +03:00
Irina Efode 28889c4833 [IE TESTS][CONFORMANCE] Fix Crashes in ReadIRTest::SetUp() (#10736)
* [IE TESTS][CONFORMANCE] Fix Crashes in ReadIRTest::SetUp()

* remove extra lines

* Update read_ir.cpp
2022-03-03 14:10:07 +03:00
Irina Efode fdf12c9537 Update main.cpp (#10740) 2022-03-03 14:09:55 +03:00
Steve Yoo 8121de731c Add tests to OpImplCheckTest (#10413)
* Add tests to OpImplCheckTest

* Fix Gelu, Interpolate, LRN and related codes
2022-03-03 13:59:16 +03:00
Mateusz Bencer d1630c9ac1 Fix problem with segfault during using extension feature via Python (#10650) 2022-03-03 11:22:42 +01:00
Dmitry Pigasin 75f7bced65 Fix -layout option (#10648) 2022-03-03 12:12:22 +03:00
Nikolay TyukaevandAndrey Zaytsev 59cfdce73b ignore doc python errors sphinx (#10756)
* fixes

* fixes

* Update workbench.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
2022-03-03 11:25:54 +03:00
Ilya Churaev 1fec99afa3 Removed duplicated words (#10754) 2022-03-03 06:50:54 +00:00
Ilya Lavrenov 974ae136a6 Enabled old BA only under ENABLE_SAMPLES (#10746) 2022-03-03 09:36:26 +03:00
1c5e76c4db Dynamic Shapes Documentation (#10656)
* Added draft of Dynamic Shapes Doc

* Better wording

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

* Apply suggestions from code review

Better wording, grammar, technical fixes. No significant content rework.

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>

* Removed indentation in dynamic shapes snippets

* Split dynamic shapes doc to two separate files, added more examples, fixed code review comments, connected to TOC

* Fix links

* Added aux doc to toc to avoid crash in docs build in CI

* Added dynamicbatching in temp section

* Apply suggestions from code review

* Removed old DynamicBatching document

* Applied @myshevts changes

* Update docs/OV_Runtime_UG/ov_without_dynamic_shapes.md

* Update ov_dynamic_shapes.md

* Fix links to dynamic shapes doc

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-03-03 09:00:28 +03:00
FanJiangIntel 7ba71f9c20 Enable apivalidator check when BUILD_SHARED_LIBS=OFF (#10461)
* enable apivalidator for static build

* add target _ie_plugins_hpp as dependency of inference_engine_obj
2022-03-03 07:39:52 +03:00
Nico Galoppo 3318dd6c68 Fix MacOS DYLD_LIBRARY_PATH export (#10750) 2022-03-03 00:36:02 +03:00
Ilya Lavrenov 4f6ca1b85f Docs: update some rendering stuff (#10742)
* Fixed small rendering issues

* Updated picture

* Give better name for stateful models

* Removed the document
2022-03-02 18:30:44 +00:00
d670e77d97 Docs: Changed OpenVINO Runtime User Guide integration (#10187)
* Changed C++ OpenVINO Runtime User Guide integration

* Remove IE from C++ guide

* Fixed comments

* Additional fix

* Fixed some comments

* Some new documents

* Fixed some comments

* Added Python snippets

* Added sphinx tabs

* Removed tabs

* Removed group-tab

* Added additional lines

* Fixed typo

* Fixed comments and build

* Try to fix complex tabs

* Fixed some typos

* Added python code for model representation

* Added more python code

* Added serialize/visualize python examples

* Simplify integration pipeline

* Fixed typo

* Try to fix tabs

* Extend CompiledModel guide

* Resolve merge conflict

* Added separate infer request guide

* Fixed build

* Added cancel infer request method

* Update docs/snippets/ov_model_snippets.py

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Fixed comments

* Fixed typo

* Extend visualize pass

* Fixed comments

* Fixed build

* Fixed typo

* Update docs/snippets/ov_infer_request.py

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Update docs/snippets/ov_infer_request.py

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/integrate_with_your_application.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/model_representation.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Update docs/OV_Runtime_UG/model_representation.md

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>

* Fixed comments

* Fixed doc

* Fixed merge

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
2022-03-02 20:07:52 +03:00
Maxim Shevtsov 21185189d8 adding 2.0 config param for auto_batch_timeout and the tests (#10719) 2022-03-02 19:45:42 +03:00
Taylor Yeonbok Lee 24a5aab501 Fixed bug: When external id of a loop is fused, the i/o map of a loop should be updated (#10726) 2022-03-03 01:27:32 +09:00
Evgenya Stepyreva 4b55ef9911 Static Shape constraints removed from Interpolate 1->4 transformation (#10732)
* Static Shape constraints removed from Interpolate 1->4 transformation

* Dynamic tests added
2022-03-02 19:16:34 +03:00
Nesterov Alexander bea352f272 Update Linux Azure CI (#10739) 2022-03-02 18:00:32 +03:00
Maxim ShevtsovandTatiana Savina 180f15e84c auto-batching- bare min of the info (#10190)
* auto-batching- bare min of the info

* renaming BATCH.MD to the automatic_batching.md, also aligned the link to the new naming convention

* more info and brushed

* added openvino_docs_OV_UG_Automatic_Batching to the main TOC

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* close on the comments, added the code examples

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update example

* Update format

* Update docs format

* added couple of more perf considerations

* more code examples

* Apply suggestions from code review

* Apply the rest from code review

* Update header

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-03-02 17:48:01 +03:00
Nikolay Tyukaev 42d3893833 doc fixes (#10738) 2022-03-02 17:46:49 +03:00
8965 changed files with 372795 additions and 188663 deletions
+28 -10
View File
@@ -4,8 +4,27 @@ trigger:
- master
- releases/*
paths:
exclude:
- docs/*
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
resources:
repositories:
@@ -13,6 +32,7 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
jobs:
- job: android_arm64
@@ -103,27 +123,25 @@ jobs:
inputs:
cmakeArgs: >
-GNinja
-DVERBOSE_BUILD=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DCMAKE_TOOLCHAIN_FILE=$(ANDROID_TOOLS)/ndk-bundle/build/cmake/android.toolchain.cmake
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
-DANDROID_ABI=$(ANDROID_ABI_CONFIG)
-DANDROID_STL=c++_shared
-DANDROID_PLATFORM=$(ANDROID_SDK_VERSION)
-DENABLE_OPENCV=OFF
-DENABLE_TESTS=ON
-DENABLE_SAMPLES=ON
-DENABLE_INTEL_MYRIAD=OFF
-DBUILD_java_api=ON
-DTHREADING=SEQ
-DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
-DBUILD_nvidia_plugin=OFF
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
-DCMAKE_CXX_LINKER_LAUNCHER=ccache
-DCMAKE_C_LINKER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER_LAUNCHER=ccache
$(OPENVINO_REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: ls -alR $(OPENVINO_REPO_DIR)/temp/
displayName: 'List temp SDKs'
- script: ccache --zero-stats --max-size=50G --show-config
displayName: 'Clean ccache stats'
+252 -109
View File
@@ -5,7 +5,24 @@ trigger:
- releases/*
paths:
exclude:
- docs/*
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
resources:
repositories:
@@ -13,11 +30,13 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: master
jobs:
- job: Lin
@@ -26,9 +45,24 @@ jobs:
# Dynamic:
# CMAKE_BUILD_SHARED_LIBS: 'ON'
# PYTHON_STATIC_ARGS:
# CMAKE_CPACK_GENERATOR:
# SAMPLES_INSTALL_DIR: $(INSTALL_DIR)/samples
# PYTHON_SAMPLES_INSTALL_DIR: $(SAMPLES_INSTALL_DIR)/python
# RUN_PREFIX: . $(SETUPVARS) -pyver 3.8 &&
# Debian:
# CMAKE_BUILD_SHARED_LIBS: 'ON'
# PYTHON_STATIC_ARGS:
# CMAKE_CPACK_GENERATOR: 'DEB'
# SAMPLES_INSTALL_DIR: /usr/share/openvino/samples
# PYTHON_SAMPLES_INSTALL_DIR: $(INSTALL_DIR)/share/openvino/samples/python
# RUN_PREFIX: LD_LIBRARY_PATH=$(INSTALL_TEST_DIR):$(INSTALL_DIR)/opencv/lib:$LD_LIBRARY_PATH
Static:
CMAKE_BUILD_SHARED_LIBS: 'OFF'
PYTHON_STATIC_ARGS: -m "not dynamic_library and not template_plugin"
CMAKE_CPACK_GENERATOR:
SAMPLES_INSTALL_DIR: $(INSTALL_DIR)/samples
PYTHON_SAMPLES_INSTALL_DIR: $(SAMPLES_INSTALL_DIR)/python
RUN_PREFIX: . $(SETUPVARS) -pyver 3.8 &&
maxParallel: 2
# About 150% of total time
@@ -57,30 +91,9 @@ jobs:
TMP_DIR: /mnt/tmp
SHARE_DIR: /mount/cinfsshare/onnxtestdata
CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux
CMAKE_VERSION: 3.24.0
steps:
- script: |
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
whoami
uname -a
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
echo gcc info ; which gcc ; gcc --version
echo cmake info ; which cmake ; cmake --version
lsb_release
env
cat /proc/cpuinfo
cat /proc/meminfo
cat /etc/fstab
vmstat -s
df
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
free -h
echo TargetBranch: $(System.PullRequest.TargetBranch)
echo SourceBranch: $(Build.SourceBranch)
displayName: 'System info'
- script: |
set -e
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
@@ -105,21 +118,30 @@ jobs:
submodules: recursive
path: openvino_contrib
- script: |
wget "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh"
chmod +x ./cmake-${CMAKE_VERSION}-linux-x86_64.sh
sudo ./cmake-${CMAKE_VERSION}-linux-x86_64.sh --prefix=/usr/local/ --skip-license
rm -rf ./cmake-${CMAKE_VERSION}-linux-x86_64.sh
displayName: 'Install cmake'
- script: |
set -e
$(REPO_DIR)/install_build_dependencies.sh
# Move jdk into contrib
sudo apt --assume-yes install openjdk-11-jdk
# 'clang' compiler is to check that samples can be built using it
sudo apt --assume-yes install openjdk-11-jdk clang
# For opencv-python: python3-setuptools and pip upgrade
python3 -m pip install --upgrade pip
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements.txt
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/wheel/requirements-dev.txt
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/requirements.txt
# For running Python API tests
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements-dev.txt
# For running Paddle frontend unit tests
python3 -m pip install -r $(REPO_DIR)/src/core/tests/frontend/paddle/requirements_dev.txt
python3 -m pip install -r $(REPO_DIR)/src/frontends/paddle/tests/requirements.txt
# For running ONNX frontend unit tests
python3 -m pip install -r $(REPO_DIR)/src/core/tests/requirements_test_onnx.txt
python3 -m pip install -r $(REPO_DIR)/src/frontends/onnx/tests/requirements.txt
# For MO unit tests
python3 -m pip install -r $(REPO_DIR)/tools/mo/requirements.txt
python3 -m pip install -r $(REPO_DIR)/tools/mo/requirements_dev.txt
@@ -132,6 +154,29 @@ jobs:
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
- script: |
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
whoami
uname -a
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
echo gcc info ; which gcc ; gcc --version
echo cmake info ; which cmake ; cmake --version
lsb_release
env
cat /proc/cpuinfo
cat /proc/meminfo
cat /etc/fstab
vmstat -s
df
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
free -h
echo TargetBranch: $(System.PullRequest.TargetBranch)
echo SourceBranch: $(Build.SourceBranch)
displayName: 'System info'
# Should be after 'Install dependencies' because Git lfs is not installed
- checkout: testdata
clean: true
@@ -143,23 +188,27 @@ jobs:
# CMake must get Python 3.x version by default
cmakeArgs: >
-GNinja
-DVERBOSE_BUILD=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
-DENABLE_PYTHON=ON
-DBUILD_SHARED_LIBS=$(CMAKE_BUILD_SHARED_LIBS)
-DENABLE_ONEDNN_FOR_GPU=$(CMAKE_BUILD_SHARED_LIBS)
-DPYTHON_EXECUTABLE=/usr/bin/python3.8
-DENABLE_WHEEL=ON
-DENABLE_TESTS=ON
-DENABLE_OV_ONNX_FRONTEND=ON
-DENABLE_FASTER_BUILD=ON
-DENABLE_STRICT_DEPENDENCIES=OFF
-DENABLE_REQUIREMENTS_INSTALL=OFF
-DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER_LAUNCHER=ccache
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
-DCMAKE_CXX_LINKER_LAUNCHER=ccache
-DCMAKE_C_LINKER_LAUNCHER=ccache
-DCPACK_GENERATOR=$(CMAKE_CPACK_GENERATOR)
-DBUILD_nvidia_plugin=OFF
-S $(REPO_DIR)
-B $(BUILD_DIR)
- script: ls -alR $(REPO_DIR)/temp/
displayName: 'List temp SDKs'
@@ -172,8 +221,7 @@ jobs:
export CCACHE_TEMPDIR=$(TMP_DIR)/ccache
export CCACHE_BASEDIR=$(Pipeline.Workspace)
export CCACHE_MAXSIZE=50G
ninja
workingDirectory: $(BUILD_DIR)
ninja -C $(BUILD_DIR)
displayName: 'Build Lin'
- script: ccache --show-stats
@@ -182,61 +230,48 @@ jobs:
- script: ls -alR $(REPO_DIR)/bin/
displayName: 'List bin files'
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_DIR)
displayName: 'Install'
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
$(REPO_DIR)/tests/layer_tests
workingDirectory: $(BUILD_LAYER_TESTS_DIR)
-S $(REPO_DIR)/tests/layer_tests
-B $(BUILD_LAYER_TESTS_DIR)
- script: ninja
workingDirectory: $(BUILD_LAYER_TESTS_DIR)
- script: ninja -C $(BUILD_LAYER_TESTS_DIR)
displayName: 'Build Layer Tests'
- script: cmake -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_LAYER_TESTS_DIR)
- script: sudo apt-get remove libtbb2 -y
displayName: 'Remove debian dependencies'
condition: eq(variables['CMAKE_CPACK_GENERATOR'], 'DEB')
continueOnError: false
- script: cmake -DCOMPONENT=python_wheels -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install wheel packages'
- script: cmake -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_LAYER_TESTS_DIR)/cmake_install.cmake
displayName: 'Install Layer Tests'
- script: ls -alR $(INSTALL_DIR)
displayName: 'List install files'
- script: python3 -m pip install openvino-dev --find-links=$(INSTALL_DIR)/tools
displayName: 'Install wheels'
displayName: 'Install python wheels'
- script: |
set -e
mkdir -p $(INSTALL_DIR)/opencv/
cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake
cp -R $(REPO_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
workingDirectory: $(BUILD_DIR)
cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install tests'
- script: ls -alR $(INSTALL_DIR)
displayName: 'List install files'
- script: $(INSTALL_DIR)/samples/cpp/build_samples.sh -i $(INSTALL_DIR)
workingDirectory: $(BUILD_SAMPLES_DIR)
displayName: 'Build cpp samples'
continueOnError: false
- script: $(INSTALL_DIR)/samples/c/build_samples.sh -i $(INSTALL_DIR)
workingDirectory: $(BUILD_SAMPLES_DIR)
displayName: 'Build c samples'
continueOnError: false
- script: rm -fr $(BUILD_DIR)
displayName: 'Clean build dir'
continueOnError: false
displayName: 'List install test files'
# Skip test_onnx/test_zoo_models and test_onnx/test_backend due to long execution time
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
. $(SETUPVARS) -pyver 3.8 && python3 -m pytest -s $(INSTALL_TEST_DIR)/pyngraph $(PYTHON_STATIC_ARGS) --junitxml=TEST-Pyngraph.xml --ignore=$(INSTALL_TEST_DIR)/pyngraph/tests/test_onnx/test_zoo_models.py --ignore=$(INSTALL_TEST_DIR)/pyngraph/tests/test_onnx/test_backend.py
# because of static build libgna is needed for python binary
export LD_LIBRARY_PATH=$(REPO_DIR)/temp/gna_03.00.00.1815.1/linux/x64:$LD_LIBRARY_PATH
python3 -m pytest -s $(INSTALL_TEST_DIR)/pyngraph $(PYTHON_STATIC_ARGS) \
--junitxml=$(INSTALL_TEST_DIR)/TEST-Pyngraph.xml \
--ignore=$(INSTALL_TEST_DIR)/pyngraph/tests/test_onnx/test_zoo_models.py \
--ignore=$(INSTALL_TEST_DIR)/pyngraph/tests/test_onnx/test_backend.py
displayName: 'nGraph and IE Python Bindings Tests'
continueOnError: false
@@ -244,114 +279,222 @@ jobs:
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
. $(SETUPVARS) -pyver 3.8 && python3 -m pytest -s $(INSTALL_TEST_DIR)/pyopenvino $(PYTHON_STATIC_ARGS) --junitxml=TEST-Pyngraph.xml --ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_utils/test_utils.py --ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_onnx/test_zoo_models.py --ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_onnx/test_backend.py
# because of static build libgna is needed for python binary and mock_py frontend library
export LD_LIBRARY_PATH=$(REPO_DIR)/temp/gna_03.00.00.1815.1/linux/x64:$(INSTALL_TEST_DIR):$LD_LIBRARY_PATH
# For python imports to import pybind_mock_frontend
export PYTHONPATH=$(INSTALL_TEST_DIR):$(INSTALL_DIR)/python/python3.8:$PYTHONPATH
# For frontend manager to load mock_py library
export OV_FRONTEND_PATH=$(INSTALL_TEST_DIR)
python3 -m pytest -sv $(INSTALL_TEST_DIR)/pyopenvino $(PYTHON_STATIC_ARGS) \
--junitxml=$(INSTALL_TEST_DIR)/TEST-Pyngraph.xml \
--ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_utils/test_utils.py \
--ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_onnx/test_zoo_models.py \
--ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_onnx/test_backend.py
displayName: 'Python API 2.0 Tests'
continueOnError: false
- script: |
export MO_ROOT=$(INSTALL_DIR)/tools/mo
. $(SETUPVARS) -pyver 3.8 && python3 -m pytest -s $(INSTALL_DIR)/tests/mo/unit_tests --junitxml=TEST-ModelOptimizer.xml
# because of static build libgna is needed for python binary
export LD_LIBRARY_PATH=$(REPO_DIR)/temp/gna_03.00.00.1815.1/linux/x64:$LD_LIBRARY_PATH
python3 -m pytest -s $(INSTALL_TEST_DIR)/mo/unit_tests --junitxml=$(INSTALL_TEST_DIR)/TEST-ModelOptimizer.xml
displayName: 'Model Optimizer UT'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_core_unit_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:TEST-NGraphUT.xml
workingDirectory: $(INSTALL_TEST_DIR)
- script: |
sudo apt-get install libtbb-dev libpugixml-dev -y
cmake --build $(BUILD_DIR) --target package -j8
condition: eq(variables['CMAKE_CPACK_GENERATOR'], 'DEB')
displayName: 'Build Debian packages'
continueOnError: false
- script: |
# install debian packages from previous release
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-get install --no-install-recommends gnupg -y
echo "deb https://apt.repos.intel.com/openvino/2022 focal main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2022.list
sudo apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/intel-openvino-2022.list
# sudo apt-get install openvino -y
# install our local one and make sure the conflicts are resolved
sudo apt-get install --no-install-recommends dpkg-dev -y
rm -r _CPack_Packages
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
echo "deb [trusted=yes] file:$(BUILD_DIR) ./" | sudo tee /etc/apt/sources.list.d/openvino-local.list
sudo apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/openvino-local.list
sudo apt-get install openvino -y
workingDirectory: $(BUILD_DIR)
condition: eq(variables['CMAKE_CPACK_GENERATOR'], 'DEB')
displayName: 'Install Debian packages'
continueOnError: false
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
condition: ne(variables['CMAKE_CPACK_GENERATOR'], 'DEB')
displayName: 'Install openvino'
continueOnError: false
- script: ls -alR $(INSTALL_DIR)
condition: ne(variables['CMAKE_CPACK_GENERATOR'], 'DEB')
displayName: 'List install files'
- script: $(SAMPLES_INSTALL_DIR)/cpp/build_samples.sh -i $(INSTALL_DIR) -b $(BUILD_DIR)/cpp_samples
displayName: 'Build cpp samples'
continueOnError: false
- script: |
export CC=clang
export CXX=clang++
$(SAMPLES_INSTALL_DIR)/cpp/build_samples.sh -b $(BUILD_DIR)/cpp_samples_clang
displayName: 'Build cpp samples - clang'
continueOnError: false
- script: |
export VERBOSE=1
$(SAMPLES_INSTALL_DIR)/c/build_samples.sh -i $(INSTALL_DIR) -b $(BUILD_DIR)/c_samples
displayName: 'Build c samples'
continueOnError: false
- script: rm -fr $(BUILD_DIR)
displayName: 'Clean build dir'
continueOnError: false
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_core_unit_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-NGraphUT.xml
displayName: 'OV Core UT'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/paddle_tests --gtest_print_time=1 --gtest_output=xml:TEST-Paddle.xml
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_ir_frontend_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-IRFrontend.xml
displayName: 'IR Frontend Tests'
continueOnError: false
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_onnx_frontend_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ONNXFrontend.xml
displayName: 'ONNX Frontend Tests'
continueOnError: false
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/paddle_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-Paddle.xml
displayName: 'Paddle Frontend UT'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/tensorflow_tests --gtest_print_time=1 --gtest_output=xml:TEST-Tensorflow.xml
displayName: 'Tensorflow Frontend UT'
- script: |
# tensorflow frontend is not distributed to end users, we have to find it manually
export OV_FRONTEND_PATH=$(INSTALL_TEST_DIR)
$(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_tensorflow_frontend_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-Tensorflow.xml
displayName: 'TensorFlow Frontend Unit Tests'
continueOnError: false
# . $(SETUPVARS) && python3 $(WORK_DIR)/gtest-parallel/gtest_parallel.py $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --workers=16 --dump_json_test_results=InferenceEngineUnitTests.json --gtest_filter=*smoke* -- --gtest_print_time=1
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
# python3 $(WORK_DIR)/gtest-parallel/gtest_parallel.py $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --workers=16 --dump_json_test_results=InferenceEngineUnitTests.json --gtest_filter=*smoke* -- --gtest_print_time=1
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceEngineUnitTests.xml
displayName: 'IE UT old'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ieUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieUnitTests.xml
displayName: 'IE UT'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
displayName: 'CPU UT'
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_cpu_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_cpu_unit_tests.xml
displayName: 'Intel CPU Unit Tests'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/gnaUnitTests --gtest_output=xml:TEST-gnaUnitTests.xml
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_gna_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_gna_unit_tests.xml
displayName: 'GNA UT'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/vpuUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-vpuUnitTests.xml
displayName: 'VPU UT'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieMultiPluginUnitTests --gtest_output=xml:TEST-ieMultiPluginUnitTests.xml
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/XLinkTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-XLinkTests.xml
displayName: 'XLink Tests'
continueOnError: false
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ieMultiPluginUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieMultiPluginUnitTests.xml
displayName: 'MULTI UT'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/onnxImporterUnitTests --gtest_output=xml:TEST-onnxImporterUnitTests.xml
displayName: 'ONNX Importer UT'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
- script: |
# because of IR reader v7
export LD_LIBRARY_PATH=$(INSTALL_TEST_DIR)
$(RUN_PREFIX) $(INSTALL_TEST_DIR)/ieFuncTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieFuncTests.xml
displayName: 'IE FuncTests'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_template_func_tests --gtest_filter=*smoke* --gtest_output=xml:TEST-templateFuncTests.xml
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_template_func_tests --gtest_filter=*smoke* --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-templateFuncTests.xml
displayName: 'TEMPLATE FuncTests'
continueOnError: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/cpuFuncTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-cpuFuncTests.xml
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_cpu_func_tests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_cpu_func_tests.xml
displayName: 'CPU FuncTests'
continueOnError: false
condition: eq(variables['CMAKE_BUILD_SHARED_LIBS'], 'OFF')
condition: and(succeeded(), eq(variables['CMAKE_BUILD_SHARED_LIBS'], 'OFF'))
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
. $(SETUPVARS) && $(INSTALL_TEST_DIR)/InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
$(RUN_PREFIX) $(INSTALL_TEST_DIR)/InferenceEngineCAPITests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceEngineCAPITests.xml
displayName: 'IE CAPITests'
continueOnError: false
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
$(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_capi_test --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_capi_test.xml
displayName: 'OV CAPITests'
continueOnError: false
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
$(REPO_DIR)/tests/samples_tests
workingDirectory: $(BUILD_SAMPLES_TESTS_DIR)
-S $(REPO_DIR)/tests/samples_tests
-B $(BUILD_SAMPLES_TESTS_DIR)
- script: cmake -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_SAMPLES_TESTS_DIR)
- script: cmake -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_SAMPLES_TESTS_DIR)/cmake_install.cmake
displayName: 'Install Samples Tests'
- script: |
python3 -m pip install -r $(INSTALL_DIR)/tests/smoke_tests/requirements.txt
workingDirectory: $(INSTALL_DIR)
- script: python3 -m pip install -r $(INSTALL_TEST_DIR)/smoke_tests/requirements.txt
displayName: 'Install dependencies for samples smoke tests'
continueOnError: false
- script: |
export PATH=$HOME/.local/bin:$PATH
export IE_APP_PATH=$(INSTALL_DIR)/samples_bin
export IE_APP_PYTHON_PATH=$(INSTALL_DIR)/samples/python/
export SHARE=$(INSTALL_DIR)/tests/smoke_tests/samples_smoke_tests_data/
export LD_LIBRARY_PATH=$IE_APP_PATH:$LD_LIBRARY_PATH
export IE_APP_PYTHON_PATH=$(PYTHON_SAMPLES_INSTALL_DIR)/
export SHARE=$(INSTALL_TEST_DIR)/smoke_tests/samples_smoke_tests_data/
export WORKSPACE=$(INSTALL_DIR)
. $(SETUPVARS) && python3 -m pytest $(INSTALL_DIR)/tests/smoke_tests/ --env_conf $(INSTALL_DIR)/tests/smoke_tests/env_config.yml -s --junitxml=$(BUILD_DIR)/TEST-SamplesSmokeTests.xml
workingDirectory: $(INSTALL_DIR)/samples_bin
$(RUN_PREFIX) python3 -m pytest $(INSTALL_TEST_DIR)/smoke_tests/ --env_conf $(INSTALL_TEST_DIR)/smoke_tests/env_config.yml -s --junitxml=$(INSTALL_TEST_DIR)/TEST-SamplesSmokeTests.xml
displayName: 'Samples Smoke Tests'
continueOnError: false
- script: |
. $(SETUPVARS)
python3 -m pip install -r requirements.txt
export MO_ROOT=$(INSTALL_DIR)/tools/mo
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(REPO_DIR)/tools/mo/:$(LAYER_TESTS_DIR):$PYTHONPATH
export OV_FRONTEND_PATH=$(INSTALL_DIR)/runtime/lib/intel64
export TEST_DEVICE=CPU
$(RUN_PREFIX) python3 -m pytest $(LAYER_TESTS_DIR)/tensorflow_tests/ --use_new_frontend -m precommit_tf_fe --junitxml=$(INSTALL_TEST_DIR)/TEST-tf_fe.xmlTEST
displayName: 'TensorFlow 1 Layer Tests - TF FE'
continueOnError: false
- script: |
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(REPO_DIR)/tools/mo/:$(LAYER_TESTS_DIR):$PYTHONPATH
export OV_FRONTEND_PATH=$(INSTALL_DIR)/runtime/lib/intel64
export TEST_DEVICE=CPU
$(RUN_PREFIX) python3 -m pytest $(LAYER_TESTS_DIR)/tensorflow2_keras_tests/ --use_new_frontend -m precommit_tf_fe --junitxml=$(INSTALL_TEST_DIR)/TEST-tf2_fe.xmlTEST
displayName: 'TensorFlow 2 Layer Tests - TF FE'
continueOnError: false
- script: |
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(LAYER_TESTS_DIR):$PYTHONPATH
python3 -m pytest tensorflow_tests/test_tf_Roll.py --ir_version=10 --junitxml=TEST-tf_Roll.xmlTEST
workingDirectory: $(LAYER_TESTS_DIR)
displayName: 'Layer Tests'
$(RUN_PREFIX) python3 -m pytest $(LAYER_TESTS_DIR)/tensorflow_tests/test_tf_Roll.py --ir_version=10 --junitxml=$(INSTALL_TEST_DIR)/TEST-tf_Roll.xmlTEST
displayName: 'TensorFlow 1 Layer Tests - Legacy FE'
continueOnError: false
- script: |
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(LAYER_TESTS_DIR):$PYTHONPATH
export TEST_DEVICE=CPU
$(RUN_PREFIX) python3 -m pytest $(LAYER_TESTS_DIR)/tensorflow2_keras_tests/test_tf2_keras_activation.py --ir_version=11 --junitxml=./TEST-tf2_Activation.xmlTEST -k "sigmoid"
displayName: 'TensorFlow 2 Layer Tests - Legacy FE'
continueOnError: false
- task: PublishTestResults@2
+199 -74
View File
@@ -4,8 +4,27 @@ trigger:
- master
- releases/*
paths:
exclude:
- docs/*
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
resources:
repositories:
@@ -13,6 +32,7 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
jobs:
- job: linux_arm64
@@ -26,16 +46,33 @@ jobs:
system.debug: true
VSTS_HTTP_RETRY: 5
VSTS_HTTP_TIMEOUT: 200
PYTHON_ARM_VERSION: "3.8.12"
PYTHON_EXEC: "python3.8"
OPENVINO_ARCH: 'aarch64'
NUM_PROC: 1
BUILD_TYPE: Release
OPENVINO_REPO_DIR: $(Build.Repository.LocalPath)
OPENVINO_CONTRIB_REPO_DIR: $(OPENVINO_REPO_DIR)/../openvino_contrib
OPENCV_REPO_DIR: $(OPENVINO_REPO_DIR)/../opencv
ONETBB_REPO_DIR: $(OPENVINO_CONTRIB_REPO_DIR)/../oneTBB
BUILD_PYTHON: $(WORK_DIR)/build_python
BUILD_OPENCV: $(WORK_DIR)/build_opencv
BUILD_ONETBB: $(WORK_DIR)/build_onetbb
BUILD_OPENVINO: $(WORK_DIR)/build
BUILD_OPENVINO_PYTHON: $(WORK_DIR)/build_python
BUILD_OPEN_MODEL_ZOO: $(WORK_DIR)/build_open_model_zoo
INSTALL_OPENVINO: $(WORK_DIR)/install_openvino
INSTALL_PYTHON: $(INSTALL_OPENVINO)/extras/python
INSTALL_ONETBB: $(WORK_DIR)/build/extras/oneTBB
INSTALL_ONETBB_PACKAGE: $(INSTALL_OPENVINO)/extras/oneTBB
INSTALL_OPENCV: $(INSTALL_OPENVINO)/extras/opencv
INSTALL_OPEN_MODEL_ZOO: $(INSTALL_OPENVINO)/extras/open_model_zoo
WORK_DIR: $(Pipeline.Workspace)/_w
BUILD_DIR: $(WORK_DIR)/build
BUILD_DIR_OPENCV: $(WORK_DIR)/build_opencv
TMP_DIR: /mnt/tmp
SHARE_DIR: /mount/cinfsshare/onnxtestdata
CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux_arm64
TMP_DIR: /mnt/tmp
OPENVINO_CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux_arm64
OPENCV_CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux_arm64_opencv
ONETBB_CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux_arm64_onetbb
steps:
- script: |
@@ -56,17 +93,22 @@ jobs:
df
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
free -h
echo "##vso[task.setvariable variable=NUM_PROC]$(nproc --all)"
echo "NUM_PROC=$(NUM_PROC)"
displayName: 'System information'
- script: |
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
mkdir -p $(BUILD_ONETBB) $(BUILD_OPENCV) $(BUILD_OPENVINO) $(BUILD_OPENVINO_PYTHON) $(BUILD_PYTHON) $(BUILD_OPEN_MODEL_ZOO)
mkdir -p $(INSTALL_ONETBB) $(INSTALL_ONETBB_PACKAGE) $(INSTALL_OPENVINO) $(INSTALL_PYTHON) $(INSTALL_OPENCV) $(INSTALL_OPEN_MODEL_ZOO)
sudo rm -rf $(TMP_DIR) ; sudo mkdir $(TMP_DIR) ; sudo chmod 777 -R $(TMP_DIR)
sudo mkdir -p $(SHARE_DIR)
sudo apt --assume-yes update && sudo apt --assume-yes install nfs-common
sudo mount -vvv -t nfs cinfsshare.file.core.windows.net:/cinfsshare/onnxtestdata $(SHARE_DIR) -o vers=4,minorversion=1,sec=sys
mkdir -p $(CCACHE_DIR)
displayName: 'Make directory'
mkdir -p $(OPENVINO_CCACHE_DIR)
mkdir -p $(OPENCV_CCACHE_DIR)
mkdir -p $(ONETBB_CCACHE_DIR)
displayName: 'Make directories'
- checkout: self
clean: true
@@ -83,74 +125,157 @@ jobs:
- script: |
set -e
$(OPENVINO_REPO_DIR)/install_build_dependencies.sh
# Move into contrib install_build_dependencies.sh
sudo apt --assume-yes install scons crossbuild-essential-arm64 libprotoc-dev protobuf-compiler
# OpenCV should provide install_build_dependencies.sh as well
# Move into resources
git clone https://github.com/opencv/opencv.git --depth 1 $(OPENCV_REPO_DIR)
# Speed up build
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
unzip ninja-linux.zip
sudo cp -v ninja /usr/local/bin/
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
-DVERBOSE_BUILD=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DBUILD_LIST=imgcodecs,videoio,highgui
-DCMAKE_TOOLCHAIN_FILE=$(OPENCV_REPO_DIR)/platforms/linux/aarch64-gnu.toolchain.cmake
$(OPENCV_REPO_DIR)
workingDirectory: $(BUILD_DIR_OPENCV)
- script: ninja
workingDirectory: $(BUILD_DIR_OPENCV)
displayName: 'Build OpenCV Linux ARM64'
- script: ninja install
workingDirectory: $(BUILD_DIR_OPENCV)
displayName: 'Install OpenCV Linux ARM64'
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
-DVERBOSE_BUILD=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DCMAKE_TOOLCHAIN_FILE=$(OPENVINO_REPO_DIR)/cmake/arm64.toolchain.cmake
-DOpenCV_DIR=$(BUILD_DIR_OPENCV)/install/lib/cmake/opencv4
-DENABLE_OPENCV=OFF
-DENABLE_TESTS=ON
-DENABLE_SAMPLES=ON
-DBUILD_java_api=OFF
-DENABLE_INTEL_MYRIAD=OFF
-DTHREADING=SEQ
-DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER_LAUNCHER=ccache
$(OPENVINO_REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: ls -alR $(OPENVINO_REPO_DIR)/temp/
displayName: 'List temp SDKs'
- script: ccache --zero-stats --max-size=50G --show-config
displayName: 'Clean ccache stats'
- script: |
export CCACHE_DIR=$(CCACHE_DIR)
export CCACHE_TEMPDIR=$(TMP_DIR)/ccache
export CCACHE_BASEDIR=$(Pipeline.Workspace)
export CCACHE_MAXSIZE=50G
export USE_CCACHE=1
export OPENCV_CCACHE_DIR=$(OPENCV_CCACHE_DIR)
export ONETBB_CCACHE_DIR=$(ONETBB_CCACHE_DIR)
export PYTHON_ARM_VERSION=$(PYTHON_ARM_VERSION)
export NUM_PROC=$(NUM_PROC)
export BUILD_PYTHON=$(BUILD_PYTHON)
export WORK_DIR=$(WORK_DIR)
export INSTALL_PYTHON=$(INSTALL_PYTHON)
export BUILD_TYPE=$(BUILD_TYPE)
export OPENVINO_REPO_DIR=$(OPENVINO_REPO_DIR)
export BUILD_ONETBB=$(BUILD_ONETBB)
export INSTALL_ONETBB=$(INSTALL_ONETBB)
export INSTALL_OPENCV=$(INSTALL_OPENCV)
export PYTHON_EXEC=$(PYTHON_EXEC)
export ONETBB_REPO_DIR=$(ONETBB_REPO_DIR)
export OPENCV_REPO_DIR=$(OPENCV_REPO_DIR)
export BUILD_OPENCV=$(BUILD_OPENCV)
export INSTALL_OPENVINO=$(INSTALL_OPENVINO)
$(OPENVINO_CONTRIB_REPO_DIR)/modules/arm_plugin/scripts/install_build_dependencies.sh
python3 -m pip install --upgrade pip
python3 -m pip install -r $(OPENVINO_REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements.txt
python3 -m pip install -r $(OPENVINO_REPO_DIR)/src/bindings/python/wheel/requirements-dev.txt
workingDirectory: $(BUILD_OPENVINO)
displayName: 'Install dependencies'
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF
-DOpenCV_DIR=$(INSTALL_OPENCV)/cmake
-DPYTHON_INCLUDE_DIRS=$(INSTALL_PYTHON)/include/python3.8
-DPYTHON_LIBRARY=$(INSTALL_PYTHON)/lib/libpython3.8.so
-DENABLE_PYTHON=ON
-DPYTHON_MODULE_EXTENSION=".cpython-38-x86_64-linux-gnu.so"
-DENABLE_TESTS=ON
-DENABLE_DATA=OFF
-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath-link,$(INSTALL_OPENCV)/lib
-DENABLE_LTO=ON
-DCMAKE_TOOLCHAIN_FILE=$(OPENVINO_REPO_DIR)/cmake/arm64.toolchain.cmake
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DENABLE_INTEL_MYRIAD=OFF
-DTHREADING=TBB
-DTBB_DIR=$(INSTALL_ONETBB)/lib/cmake/TBB
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules/arm_plugin
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_LINKER_LAUNCHER=ccache
-DCMAKE_C_LINKER_LAUNCHER=ccache
-DARM_COMPUTE_SCONS_JOBS=$(NUM_PROC)
-DCMAKE_INSTALL_PREFIX=$(INSTALL_OPENVINO)
$(OPENVINO_REPO_DIR)
workingDirectory: $(BUILD_OPENVINO)
displayName: 'CMake OpenVINO ARM plugin'
- script: |
export CCACHE_DIR=$(OPENVINO_CCACHE_DIR)
export CCACHE_TEMPDIR=$(TMP_DIR)/ccache
export CCACHE_BASEDIR=$(Pipeline.Workspace)
export CCACHE_MAXSIZE=50G
export USE_CCACHE=1
ninja
workingDirectory: $(BUILD_DIR)
displayName: 'Build Linux ARM64'
workingDirectory: $(BUILD_OPENVINO)
displayName: 'Build OpenVINO ARM plugin'
- script: ccache --show-stats
displayName: 'Show ccache stats'
- script: ninja install
workingDirectory: $(BUILD_OPENVINO)
displayName: 'Install OpenVINO ARM plugin'
- script: ls -alR $(OPENVINO_REPO_DIR)/bin/
displayName: 'List binary files'
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
-DOpenVINODeveloperPackage_DIR=$(BUILD_OPENVINO)
-DENABLE_PYTHON=ON
-DTHREADING=TBB
-DPYTHON_EXECUTABLE=$(INSTALL_PYTHON)/bin/python3.8
-DPYTHON_INCLUDE_DIRS=$(INSTALL_PYTHON)/include/python3.8
-DPYTHON_LIBRARIES=$(INSTALL_PYTHON)/lib
-DPYTHON3_NUMPY_INCLUDE_DIRS=/usr/local/lib/python3.8/site-packages/numpy/core/include
-DPYTHON_MODULE_EXTENSION=".so"
-DPYBIND11_FINDPYTHON=OFF
-DPYBIND11_NOPYTHON=OFF
-DPYTHONLIBS_FOUND=TRUE
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DENABLE_DATA=OFF
-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath-link,$(INSTALL_OPENCV)/lib
-DCMAKE_TOOLCHAIN_FILE=$(OPENVINO_REPO_DIR)/cmake/arm64.toolchain.cmake
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_LINKER_LAUNCHER=ccache
-DCMAKE_C_LINKER_LAUNCHER=ccache
-DCMAKE_INSTALL_PREFIX=$(INSTALL_OPENVINO)
$(OPENVINO_REPO_DIR)/src/bindings/python
workingDirectory: $(BUILD_OPENVINO_PYTHON)
displayName: 'CMake OpenVINO python binding'
- script: |
export CCACHE_DIR=$(OPENVINO_CCACHE_DIR)
export CCACHE_TEMPDIR=$(TMP_DIR)/ccache
export CCACHE_BASEDIR=$(Pipeline.Workspace)
export CCACHE_MAXSIZE=50G
export USE_CCACHE=1
ninja
workingDirectory: $(BUILD_OPENVINO_PYTHON)
displayName: 'Build OpenVINO python binding'
- script: ninja install
workingDirectory: $(BUILD_OPENVINO_PYTHON)
displayName: 'Install OpenVINO python binding'
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DENABLE_PYTHON=ON
-DPYTHON_EXECUTABLE=/usr/local/bin/python3.8
-DPYTHON_INCLUDE_DIR=$(INSTALL_PYTHON)/include/python3.8
-DPYTHON_LIBRARY=$(INSTALL_PYTHON)/lib
-DCMAKE_TOOLCHAIN_FILE=$(OPENVINO_REPO_DIR)/cmake/arm64.toolchain.cmake
-DOpenVINO_DIR=$(BUILD_OPENVINO)
-DOpenCV_DIR=$(INSTALL_OPENCV)/cmake
-DCMAKE_INSTALL_PREFIX=$(INSTALL_OPEN_MODEL_ZOO)
$(OPENVINO_REPO_DIR)/thirdparty/open_model_zoo/demos
workingDirectory: $(BUILD_OPEN_MODEL_ZOO)
displayName: 'CMake Open Model Zoo demos'
- script: ninja
workingDirectory: $(BUILD_OPEN_MODEL_ZOO)
displayName: 'Build Open Model Zoo demos'
- script: ninja install
workingDirectory: $(BUILD_OPEN_MODEL_ZOO)
displayName: 'Install Open Model Zoo demos'
- script: |
cp -r $(BUILD_OPEN_MODEL_ZOO)/$(OPENVINO_ARCH)/$(BUILD_TYPE)/* $(INSTALL_OPEN_MODEL_ZOO)/
cp -r $(INSTALL_ONETBB)/* $(INSTALL_ONETBB_PACKAGE)/
zip -9 -r $(Build.ArtifactStagingDirectory)/openvino_$(OPENVINO_ARCH)_linux.zip ./*
workingDirectory: $(INSTALL_OPENVINO)
displayName: 'Create OpenVINO ARM64 linux package'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: 'openvino_aarch64_linux'
displayName: 'Publish OpenVINO AArch64 linux package'
+21 -4
View File
@@ -4,8 +4,25 @@ trigger:
- master
- releases/*
paths:
exclude:
- docs/*
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
jobs:
- job: LinCC
@@ -21,7 +38,6 @@ jobs:
VSTS_HTTP_TIMEOUT: 200
BUILD_TYPE: Release
REPO_DIR: $(Build.Repository.LocalPath)
OPENVINO_CONTRIB_REPO_DIR: $(REPO_DIR)/../openvino_contrib
MODELS_PATH: $(REPO_DIR)/../testdata
WORK_DIR: $(Pipeline.Workspace)/_w
BUILD_DIR: $(WORK_DIR)/build
@@ -75,7 +91,8 @@ jobs:
inputs:
cmakeArgs: >
-GNinja
-DVERBOSE_BUILD=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DENABLE_FASTER_BUILD=ON
-DENABLE_PROFILING_ITT=ON
+26 -3
View File
@@ -4,6 +4,7 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
jobs:
- job: Lin
@@ -25,6 +26,9 @@ jobs:
BUILD_SAMPLES_DIR: $(WORK_DIR)/build_samples
INSTALL_DIR: $(WORK_DIR)/install_pkg
SETUPVARS: $(INSTALL_DIR)/setupvars.sh
TMP_DIR: /mnt/tmp
SHARE_DIR: /mount/cinfsshare/onnxtestdata
CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux_coverity
steps:
- script: |
@@ -51,6 +55,11 @@ jobs:
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
rm -rf $(BUILD_SAMPLES_DIR) ; mkdir $(BUILD_SAMPLES_DIR)
sudo rm -rf $(TMP_DIR) ; sudo mkdir $(TMP_DIR) ; sudo chmod 777 -R $(TMP_DIR)
sudo mkdir -p $(SHARE_DIR)
sudo apt --assume-yes update && sudo apt --assume-yes install nfs-common
sudo mount -vvv -t nfs cinfsshare.file.core.windows.net:/cinfsshare/onnxtestdata $(SHARE_DIR) -o vers=4,minorversion=1,sec=sys
mkdir -p $(CCACHE_DIR)
displayName: 'Make dir'
- checkout: self
@@ -82,18 +91,24 @@ jobs:
# Coverity has too many PARSE_ERROR errors with ENABLE_FASTER_BUILD=ON. Disabling FASTER_BUILD.
cmakeArgs: >
-GNinja
-DVERBOSE_BUILD=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DENABLE_FASTER_BUILD=OFF
-DENABLE_STRICT_DEPENDENCIES=OFF
-DENABLE_REQUIREMENTS_INSTALL=OFF
-DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
-DBUILD_nvidia_plugin=OFF
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER_LAUNCHER=ccache
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: ls -alR $(REPO_DIR)/temp/
displayName: 'List temp SDKs'
- script: ccache --zero-stats --max-size=50G --show-config
displayName: 'Clean ccache stats'
- script: |
set -e
wget https://scan.coverity.com/download/linux64 --post-data "token=$(COVERITY_TOKEN)&project=openvino" -O coverity_tool.tgz
@@ -102,10 +117,18 @@ jobs:
workingDirectory: $(WORK_DIR)
displayName: 'Install coverity tool'
- script: $(WORK_DIR)/cov-analysis*/bin/cov-build --dir $(BUILD_DIR)/cov-int ninja
- script: |
export CCACHE_DIR=$(CCACHE_DIR)
export CCACHE_TEMPDIR=$(TMP_DIR)/ccache
export CCACHE_BASEDIR=$(Pipeline.Workspace)
export CCACHE_MAXSIZE=50G
$(WORK_DIR)/cov-analysis*/bin/cov-build --dir $(BUILD_DIR)/cov-int ninja
workingDirectory: $(BUILD_DIR)
displayName: 'Build Lin with Coverity'
- script: ccache --show-stats
displayName: 'Show ccache stats'
- script: ls -alR $(REPO_DIR)/bin/
displayName: 'List bin files'
+145
View File
@@ -0,0 +1,145 @@
trigger:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
resources:
repositories:
- repository: openvino
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino
- repository: openvino_contrib
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
jobs:
- job: CUDAPlugin_Lin
timeoutInMinutes: 60
pool:
name: LIN_VMSS_VENV_F16S_U20_WU2
variables:
system.debug: true
VSTS_HTTP_RETRY: 5
VSTS_HTTP_TIMEOUT: 200
BUILD_TYPE: Release
HOME_DIR: $(Agent.HomeDirectory)
REPO_DIR: $(Build.Repository.LocalPath)
OPENVINO_REPO_DIR: $(REPO_DIR)/../openvino
MODELS_PATH: $(REPO_DIR)/../testdata
WORK_DIR: $(Pipeline.Workspace)/_w
BUILD_DIR: $(WORK_DIR)/build
BIN_DIR: $(OPENVINO_REPO_DIR)/bin/intel64/$(BUILD_TYPE)
INSTALL_DIR: $(WORK_DIR)/install_pkg
SETUPVARS: $(INSTALL_DIR)/setupvars.sh
GRADLE_VER: 7.1.1
steps:
- script: |
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
echo # prev line output doesn't end with eol
whoami
uname -a
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
echo gcc info ; which gcc ; gcc --version
echo cmake info ; which cmake ; cmake --version
lsb_release
env
cat /proc/cpuinfo
cat /proc/meminfo
cat /etc/fstab
vmstat -s
df
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
free -h
displayName: 'System info'
- script: |
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
displayName: 'Make dir'
- checkout: self
clean: true
lfs: false
submodules: recursive
path: openvino
- checkout: openvino_contrib
clean: true
lfs: false
submodules: recursive
path: openvino_contrib
- script: |
set -e
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Speed up build
sudo apt --assume-yes install unzip
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
unzip ninja-linux.zip
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
- script: >
sudo docker pull openvino.azurecr.io/openvino_ci/cuda-ubuntu2004:2022.1 &&
sudo docker run --volume $(REPO_DIR)/../:/root/repos --volume $(WORK_DIR):/root/w
openvino.azurecr.io/openvino_ci/cuda-ubuntu2004:2022.1
bash -c "
/root/repos/openvino/install_build_dependencies.sh &&
python3 -m pip install -r /root/repos/openvino/src/bindings/python/requirements.txt &&
cd /root/w/build &&
cmake -GNinja
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DOPENVINO_EXTRA_MODULES=/root/repos/openvino_contrib/modules
-DENABLE_INTEL_CPU=OFF
-DENABLE_INTEL_GPU=OFF
-DENABLE_INTEL_GNA=OFF
-DBUILD_arm_plugin=OFF
-DBUILD_java_api=OFF
-DENABLE_PYTHON=OFF
-DENABLE_NVIDIA=ON
-DENABLE_TESTS=ON
/root/repos/openvino &&
/root/w/ninja -v CudaFuncTests CudaUnitTests"
workingDirectory: $(WORK_DIR)
displayName: 'Docker build Lin'
- script: ls -alR $(OPENVINO_REPO_DIR)/bin/
displayName: 'List bin files'
+450
View File
@@ -0,0 +1,450 @@
trigger:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
resources:
repositories:
- repository: openvino_contrib
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: master
jobs:
- job: Lin_Debian
# About 150% of total time
timeoutInMinutes: 120
pool:
name: LIN_VMSS_VENV_F16S_U20_WU2
variables:
system.debug: true
VSTS_HTTP_RETRY: 5
VSTS_HTTP_TIMEOUT: 200
BUILD_TYPE: Release
REPO_DIR: $(Build.Repository.LocalPath)
OPENVINO_CONTRIB_REPO_DIR: $(REPO_DIR)/../openvino_contrib
MODELS_PATH: $(REPO_DIR)/../testdata
WORK_DIR: $(Pipeline.Workspace)/_w
BUILD_DIR: $(WORK_DIR)/build
BUILD_SAMPLES_DIR: $(WORK_DIR)/build_samples
BUILD_LAYER_TESTS_DIR: $(WORK_DIR)/build_layer_tests
BUILD_SAMPLES_TESTS_DIR: $(WORK_DIR)/build_samples_tests
INSTALL_DIR: $(WORK_DIR)/install_pkg
INSTALL_TEST_DIR: $(INSTALL_DIR)/tests
LAYER_TESTS_DIR: $(INSTALL_TEST_DIR)/layer_tests
SAMPLES_INSTALL_DIR: /usr/share/openvino/samples
PYTHON_SAMPLES_INSTALL_DIR: $(INSTALL_DIR)/share/openvino/samples/python
PYTHON_WHEEL_INSTALL_DIR: $HOME/.local/lib/python3.8/site-packages
TMP_DIR: /mnt/tmp
SHARE_DIR: /mount/cinfsshare/onnxtestdata
CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux
steps:
- script: |
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
whoami
uname -a
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
echo gcc info ; which gcc ; gcc --version
echo cmake info ; which cmake ; cmake --version
lsb_release
env
cat /proc/cpuinfo
cat /proc/meminfo
cat /etc/fstab
vmstat -s
df
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
free -h
echo TargetBranch: $(System.PullRequest.TargetBranch)
echo SourceBranch: $(Build.SourceBranch)
displayName: 'System info'
- script: |
set -e
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
rm -rf $(BUILD_SAMPLES_DIR) ; mkdir $(BUILD_SAMPLES_DIR)
sudo rm -rf $(TMP_DIR) ; sudo mkdir $(TMP_DIR) ; sudo chmod 777 -R $(TMP_DIR)
sudo mkdir -p $(SHARE_DIR)
sudo apt --assume-yes update && sudo apt --assume-yes install nfs-common
sudo mount -vvv -t nfs cinfsshare.file.core.windows.net:/cinfsshare/onnxtestdata $(SHARE_DIR) -o vers=4,minorversion=1,sec=sys
mkdir -p $(CCACHE_DIR)
displayName: 'Make dir'
- checkout: self
clean: true
lfs: false
submodules: recursive
path: openvino
- checkout: openvino_contrib
clean: true
lfs: false
submodules: recursive
path: openvino_contrib
- script: |
set -e
$(REPO_DIR)/install_build_dependencies.sh
# Move jdk into contrib
# 'clang' compiler is to check that samples can be built using it
sudo apt --assume-yes install openjdk-11-jdk clang
sudo apt --assume-yes install --no-install-recommends libopencv-imgproc-dev libopencv-imgcodecs-dev
# For opencv-python: python3-setuptools and pip upgrade
python3 -m pip install --upgrade pip
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements.txt
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/wheel/requirements-dev.txt
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/requirements.txt
# For running Python API tests
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements-dev.txt
# For running Paddle frontend unit tests
python3 -m pip install -r $(REPO_DIR)/src/frontends/paddle/tests/requirements.txt
# For running ONNX frontend unit tests
python3 -m pip install -r $(REPO_DIR)/src/frontends/onnx/tests/requirements.txt
# For MO unit tests
python3 -m pip install -r $(REPO_DIR)/tools/mo/requirements.txt
python3 -m pip install -r $(REPO_DIR)/tools/mo/requirements_dev.txt
# Speed up build
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
unzip ninja-linux.zip
sudo cp -v ninja /usr/local/bin/
# Speed up tests
git clone https://github.com/google/gtest-parallel.git
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
# Should be after 'Install dependencies' because Git lfs is not installed
- checkout: testdata
clean: true
lfs: true
path: testdata
- task: CMake@1
inputs:
# CMake must get Python 3.x version by default
cmakeArgs: >
-GNinja
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
-DENABLE_PYTHON=ON
-DENABLE_OPENCV=OFF
-DPYTHON_EXECUTABLE=/usr/bin/python3.8
-DENABLE_TESTS=ON
-DENABLE_FASTER_BUILD=ON
-DENABLE_STRICT_DEPENDENCIES=OFF
-DENABLE_REQUIREMENTS_INSTALL=OFF
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_LINKER_LAUNCHER=ccache
-DCMAKE_C_LINKER_LAUNCHER=ccache
-DCPACK_GENERATOR=DEB
-DBUILD_nvidia_plugin=OFF
-S $(REPO_DIR)
-B $(BUILD_DIR)
- script: ls -alR $(REPO_DIR)/temp/
displayName: 'List temp SDKs'
- script: ccache --zero-stats --max-size=50G --show-config
displayName: 'Clean ccache stats'
- script: |
export CCACHE_DIR=$(CCACHE_DIR)
export CCACHE_TEMPDIR=$(TMP_DIR)/ccache
export CCACHE_BASEDIR=$(Pipeline.Workspace)
export CCACHE_MAXSIZE=50G
ninja -C $(BUILD_DIR)
displayName: 'Build Lin'
- script: ccache --show-stats
displayName: 'Show ccache stats'
- script: ls -alR $(REPO_DIR)/bin/
displayName: 'List bin files'
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
-S $(REPO_DIR)/tests/layer_tests
-B $(BUILD_LAYER_TESTS_DIR)
- script: ninja -C $(BUILD_LAYER_TESTS_DIR)
displayName: 'Build Layer Tests'
- script: sudo apt-get remove libtbb2 libpugixml1v5 -y
displayName: 'Remove debian dependencies'
continueOnError: false
- script: cmake -DCOMPONENT=python_wheels -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install wheel packages'
- script: cmake -DCOMPONENT=python_samples -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install Python Samples'
- script: cmake -DCOMPONENT=gna -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install GNA plugin'
- script: cmake -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_LAYER_TESTS_DIR)/cmake_install.cmake
displayName: 'Install Layer Tests'
- script: python3 -m pip install openvino-dev --find-links=$(INSTALL_DIR)/tools
displayName: 'Install python wheels'
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install tests'
- script: ls -alR $(INSTALL_DIR)
displayName: 'List install test files'
# Skip test_onnx/test_zoo_models and test_onnx/test_backend due to long execution time
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
python3 -m pytest -s $(INSTALL_TEST_DIR)/pyngraph \
--junitxml=$(INSTALL_TEST_DIR)/TEST-Pyngraph.xml \
--ignore=$(INSTALL_TEST_DIR)/pyngraph/tests/test_onnx/test_zoo_models.py \
--ignore=$(INSTALL_TEST_DIR)/pyngraph/tests/test_onnx/test_backend.py
displayName: 'nGraph and IE Python Bindings Tests'
continueOnError: false
# Skip test_onnx/test_zoo_models and test_onnx/test_backend due to long execution time
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
# Required by python imports to load requires libraries
# - tests install dir for mock_py
# - OpenVINO wheel installation dir for others frontend required by mock_py (is not part of wheel pkg)
export LD_LIBRARY_PATH=$(PYTHON_WHEEL_INSTALL_DIR)/openvino/libs:$(INSTALL_TEST_DIR):$LD_LIBRARY_PATH
# For frontend manager to load frontend libraries:
# - tests install dir for mock_py
# - OpenVINO wheel installation dir for others frontend (not required if this variable is not set)
export OV_FRONTEND_PATH=$(PYTHON_WHEEL_INSTALL_DIR)/openvino/libs:$(INSTALL_TEST_DIR)
# For python imports to import pybind_mock_frontend
export PYTHONPATH=$(INSTALL_TEST_DIR):$PYTHONPATH
python3 -m pytest -s $(INSTALL_TEST_DIR)/pyopenvino \
--junitxml=$(INSTALL_TEST_DIR)/TEST-Pyngraph.xml \
--ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_utils/test_utils.py \
--ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_onnx/test_zoo_models.py \
--ignore=$(INSTALL_TEST_DIR)/pyopenvino/tests/test_onnx/test_backend.py -v
displayName: 'Python API 2.0 Tests'
continueOnError: false
- script: python3 -m pytest -s $(INSTALL_TEST_DIR)/mo/unit_tests --junitxml=$(INSTALL_TEST_DIR)/TEST-ModelOptimizer.xml
displayName: 'Model Optimizer UT'
continueOnError: false
- script: |
sudo apt-get install libtbb-dev libpugixml-dev -y
cmake --build $(BUILD_DIR) --target package -j8
displayName: 'Build Debian packages'
continueOnError: false
- script: |
# install debian packages from previous release
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-get install --no-install-recommends gnupg -y
echo "deb https://apt.repos.intel.com/openvino/2022 focal main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2022.list
sudo apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/intel-openvino-2022.list
sudo apt-get install openvino -y
# install our local one and make sure the conflicts are resolved
sudo apt-get install --no-install-recommends dpkg-dev -y
rm -r _CPack_Packages
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
echo "deb [trusted=yes] file:$(BUILD_DIR) ./" | sudo tee /etc/apt/sources.list.d/openvino-local.list
sudo apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/openvino-local.list
sudo apt-get install openvino -y
workingDirectory: $(BUILD_DIR)
displayName: 'Install Debian packages'
continueOnError: false
- script: ls -alR $(INSTALL_DIR)
displayName: 'List install files'
- script: rm -fr $(BUILD_DIR)
displayName: 'Clean build dir'
continueOnError: false
- script: $(SAMPLES_INSTALL_DIR)/cpp/build_samples.sh -i $(INSTALL_DIR)
displayName: 'Build cpp samples'
continueOnError: false
- script: |
export CC=clang
export CXX=clang++
$(SAMPLES_INSTALL_DIR)/cpp/build_samples.sh -i $(INSTALL_DIR)
displayName: 'Build cpp samples - clang'
continueOnError: false
- script: $(SAMPLES_INSTALL_DIR)/c/build_samples.sh -i $(INSTALL_DIR)
displayName: 'Build c samples'
continueOnError: false
- script: |
export LD_LIBRARY_PATH=$(INSTALL_TEST_DIR):$LD_LIBRARY_PATH
$(INSTALL_TEST_DIR)/ov_core_unit_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-NGraphUT.xml
displayName: 'OV Core UT'
continueOnError: false
- script: |
export LD_LIBRARY_PATH=$(INSTALL_TEST_DIR)
$(INSTALL_TEST_DIR)/ov_onnx_frontend_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ONNXFrontend.xml
displayName: 'ONNX Frontend Tests'
continueOnError: false
- script: |
export LD_LIBRARY_PATH=$(INSTALL_TEST_DIR)
$(INSTALL_TEST_DIR)/paddle_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-Paddle.xml
displayName: 'Paddle Frontend UT'
continueOnError: false
- script: |
export LD_LIBRARY_PATH=$(INSTALL_TEST_DIR):$LD_LIBRARY_PATH
export OV_FRONTEND_PATH=$(INSTALL_TEST_DIR)
$(INSTALL_TEST_DIR)/ov_tensorflow_frontend_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-Tensorflow.xml
displayName: 'TensorFlow Frontend Unit Tests'
continueOnError: false
# python3 $(WORK_DIR)/gtest-parallel/gtest_parallel.py $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --workers=16 --dump_json_test_results=InferenceEngineUnitTests.json --gtest_filter=*smoke* -- --gtest_print_time=1
- script: $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceEngineUnitTests.xml
displayName: 'IE UT old'
continueOnError: false
- script: $(INSTALL_TEST_DIR)/ieUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieUnitTests.xml
displayName: 'IE UT'
continueOnError: false
- script: $(INSTALL_TEST_DIR)/ov_cpu_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_cpu_unit_tests.xml
displayName: 'Intel CPU Unit Tests'
continueOnError: false
- script: $(INSTALL_TEST_DIR)/ov_gna_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_gna_unit_tests.xml
displayName: 'GNA UT'
continueOnError: false
- script: $(INSTALL_TEST_DIR)/vpuUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-vpuUnitTests.xml
displayName: 'VPU UT'
continueOnError: false
- script: $(INSTALL_TEST_DIR)/XLinkTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-XLinkTests.xml
displayName: 'XLink Tests'
continueOnError: false
- script: $(INSTALL_TEST_DIR)/ieMultiPluginUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieMultiPluginUnitTests.xml
displayName: 'MULTI UT'
continueOnError: false
- script: |
# because of IR reader v7
export LD_LIBRARY_PATH=$(INSTALL_TEST_DIR)
$(INSTALL_TEST_DIR)/ieFuncTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieFuncTests.xml
displayName: 'IE FuncTests'
continueOnError: false
- script: |
export LD_LIBRARY_PATH=$(INSTALL_TEST_DIR):$LD_LIBRARY_PATH
$(INSTALL_TEST_DIR)/ov_template_func_tests --gtest_filter=*smoke* --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-templateFuncTests.xml
displayName: 'TEMPLATE FuncTests'
continueOnError: false
# run not all smoke filter to save time in post-commit
- script: $(INSTALL_TEST_DIR)/ov_cpu_func_tests --gtest_filter=*OVCLass*:*CoreThreadingTests* --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_cpu_func_tests.xml
displayName: 'CPU FuncTests'
continueOnError: false
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
$(INSTALL_TEST_DIR)/InferenceEngineCAPITests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceEngineCAPITests.xml
displayName: 'IE CAPITests'
continueOnError: false
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
$(INSTALL_TEST_DIR)/ov_capi_test --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_capi_test.xml
displayName: 'OV CAPITests'
continueOnError: false
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
-S $(REPO_DIR)/tests/samples_tests
-B $(BUILD_SAMPLES_TESTS_DIR)
- script: cmake -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_SAMPLES_TESTS_DIR)/cmake_install.cmake
displayName: 'Install Samples Tests'
- script: python3 -m pip install -r $(INSTALL_TEST_DIR)/smoke_tests/requirements.txt
displayName: 'Install dependencies for samples smoke tests'
continueOnError: false
- script: |
export PATH=$HOME/.local/bin:$PATH
export IE_APP_PATH=$(INSTALL_DIR)/samples_bin
export LD_LIBRARY_PATH=$IE_APP_PATH:$LD_LIBRARY_PATH
# for gna plugin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(INSTALL_DIR)/lib/x86_64-linux-gnu:$(INSTALL_DIR)/lib/x86_64-linux-gnu/openvino-2022.3.0
export IE_APP_PYTHON_PATH=$(PYTHON_SAMPLES_INSTALL_DIR)/
export SHARE=$(INSTALL_TEST_DIR)/smoke_tests/samples_smoke_tests_data/
export WORKSPACE=$(INSTALL_DIR)
python3 -m pytest $(INSTALL_TEST_DIR)/smoke_tests/ --env_conf $(INSTALL_TEST_DIR)/smoke_tests/env_config.yml -s --junitxml=$(INSTALL_TEST_DIR)/TEST-SamplesSmokeTests.xml
displayName: 'Samples Smoke Tests'
continueOnError: false
- script: |
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(LAYER_TESTS_DIR):$PYTHONPATH
python3 -m pytest $(LAYER_TESTS_DIR)/tensorflow_tests/test_tf_Roll.py --ir_version=10 --junitxml=$(INSTALL_TEST_DIR)/TEST-tf_Roll.xmlTEST
displayName: 'TensorFlow 1 Layer Tests - Legacy FE'
continueOnError: false
- task: PublishTestResults@2
condition: always()
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit, cTest
testResultsFiles: '**/TEST-*.xml'
#searchFolder: '$(BUILD_DIR)'
mergeTestResults: false # Optional
#failTaskOnFailedTests: false # Optional
#testRunTitle: 'Pre/Post-Commit' # Optional
buildPlatform: 'x64' # Optional
buildConfiguration: 'Linux' # Optional
#publishRunAttachments: true # Optional
+3 -3
View File
@@ -4,6 +4,7 @@
# type: github
# endpoint: openvinotoolkit
# name: openvinotoolkit/testdata
# ref: master
jobs:
- job: Lin_lohika
@@ -52,17 +53,16 @@ jobs:
# # CMake must get Python 3.x version by default
# cmakeArgs: >
# -GNinja
# -DVERBOSE_BUILD=ON
# -DCMAKE_VERBOSE_MAKEFILE=ON
# -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
# -DENABLE_PYTHON=ON
# -DPYTHON_EXECUTABLE=/usr/bin/python3.8
# -DENABLE_WHEEL=ON
# -DENABLE_TESTS=ON
# -DENABLE_OV_ONNX_FRONTEND=ON
# -DENABLE_FASTER_BUILD=ON
# -DENABLE_STRICT_DEPENDENCIES=OFF
# -DENABLE_REQUIREMENTS_INSTALL=OFF
# -DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
# -DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
# $(REPO_DIR)
# workingDirectory: $(BUILD_DIR)
+21 -2
View File
@@ -4,8 +4,27 @@ trigger:
- master
- releases/*
paths:
exclude:
- docs/*
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
jobs:
- job: OpenVINO_ONNX_CI
+22 -3
View File
@@ -4,8 +4,27 @@ trigger:
- master
- releases/*
paths:
exclude:
- docs/*
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
- src/tests/functional/plugin/conformance/**
jobs:
- job: onnxruntime
@@ -91,11 +110,11 @@ jobs:
cmakeArgs: >
-GNinja
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
-DENABLE_PYTHON=ON
-DPYTHON_EXECUTABLE=/usr/bin/python3.8
-DENABLE_INTEL_MYRIAD_COMMON=OFF
-DENABLE_INTEL_GNA=OFF
-DENABLE_OPENCV=OFF
-DENABLE_CPPLINT=OFF
-DENABLE_TESTS=OFF
-DENABLE_INTEL_CPU=ON
+69 -28
View File
@@ -4,8 +4,25 @@ trigger:
- master
- releases/*
paths:
exclude:
- docs/*
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
resources:
repositories:
@@ -13,11 +30,13 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: master
jobs:
- job: Mac
@@ -25,7 +44,7 @@ jobs:
timeoutInMinutes: 360
pool:
vmImage: 'macOS-10.15'
vmImage: 'macOS-11'
variables:
system.debug: true
@@ -86,7 +105,7 @@ jobs:
- script: |
brew install cython
brew install automake
python3 -m pip install -r $(REPO_DIR)/src/core/tests/requirements_test_onnx.txt
python3 -m pip install -r $(REPO_DIR)/src/frontends/onnx/tests/requirements.txt
# Speed up build
brew install ninja
brew install ccache
@@ -99,8 +118,22 @@ jobs:
export PATH="/usr/local/opt/cython/bin:$PATH"
export CC=gcc
export CXX=g++
cmake -GNinja -DVERBOSE_BUILD=ON -DENABLE_REQUIREMENTS_INSTALL=OFF -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_PYTHON=ON -DENABLE_TESTS=OFF -DENABLE_STRICT_DEPENDENCIES=OFF -DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache $(REPO_DIR)
workingDirectory: $(BUILD_DIR)
cmake -GNinja \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DENABLE_REQUIREMENTS_INSTALL=OFF \
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
-DENABLE_PYTHON=ON \
-DENABLE_TESTS=OFF \
-DENABLE_STRICT_DEPENDENCIES=OFF \
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_LINKER_LAUNCHER=ccache \
-DCMAKE_C_LINKER_LAUNCHER=ccache \
-DBUILD_nvidia_plugin=OFF \
-S $(REPO_DIR) \
-B $(BUILD_DIR)
displayName: 'CMake'
- script: ls -alR $(REPO_DIR)/temp/
@@ -132,8 +165,7 @@ jobs:
- script: ls -alR $(REPO_DIR)/bin/
displayName: 'List bin files'
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_DIR)
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install'
- script: ls -alR $(INSTALL_DIR)
@@ -141,57 +173,58 @@ jobs:
- script: |
set -e
mkdir -p $(INSTALL_DIR)/opencv/
cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake
cp -R $(REPO_DIR)/temp/opencv_4.5.2_osx/opencv/* $(INSTALL_DIR)/opencv/
workingDirectory: $(BUILD_DIR)
cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install tests'
- script: ls -alR $(INSTALL_DIR)
displayName: 'List install files'
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_core_unit_tests --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU*:IE_CPU.onnx_model_sigmoid:IE_CPU/GRUSequenceOp.onnx_model_gru* --gtest_output=xml:TEST-NGraphUT.xml
workingDirectory: $(INSTALL_TEST_DIR)
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_core_unit_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-NGraphUT.xml
displayName: 'OV Core UT'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_filter=-MKLDNNGraphStructureTests.TestNoRedundantReordersBeforeDWConvolution:TestConvolution/MKLDNNGraphConvolutionTests.TestsConvolution/0:TestConvolutionDefaultPrimitivesPriority/MKLDNNGraphConvolutionTests.TestsConvolution/0 --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_ir_frontend_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-IRFrontend.xml
displayName: 'IR Frontend Tests'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_onnx_frontend_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU*--gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ONNXFrontend.xml
displayName: 'ONNX Frontend Tests'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceEngineUnitTests.xml
displayName: 'IE UT old'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieUnitTests.xml
displayName: 'IE UT'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
displayName: 'CPU UT'
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_cpu_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_cpu_unit_tests.xml
displayName: 'Intel CPU Unit Tests'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/vpuUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-vpuUnitTests.xml
displayName: 'VPU UT'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/onnxImporterUnitTests --gtest_output=xml:TEST-onnxImporterUnitTests.xml
displayName: 'ONNX Importer UT'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieMultiPluginUnitTests --gtest_output=xml:TEST-ieMultiPluginUnitTests.xml
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieMultiPluginUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieMultiPluginUnitTests.xml
displayName: 'MULTI UT'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ieFuncTests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ieFuncTests.xml
displayName: 'IE FuncTests'
continueOnError: false
enabled: false
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/cpuFuncTests --gtest_filter=*smoke*:-smoke_LPT/ReduceMinTransformation.CompareWithRefImpl/f32_Shape* --gtest_print_time=1 --gtest_output=xml:TEST-cpuFuncTests.xml
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_cpu_func_tests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_cpu_func_tests.xml
displayName: 'CPU FuncTests'
continueOnError: false
enabled: false
@@ -199,7 +232,15 @@ jobs:
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
. $(SETUPVARS) && $(INSTALL_TEST_DIR)/InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
. $(SETUPVARS) && $(INSTALL_TEST_DIR)/InferenceEngineCAPITests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceEngineCAPITests.xml
displayName: 'IE CAPITests'
continueOnError: false
enabled: false
- script: |
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
. $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_capi_test --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_capi_test.xml
displayName: 'IE CAPITests'
continueOnError: false
enabled: false
+96 -52
View File
@@ -4,8 +4,25 @@ trigger:
- master
- releases/*
paths:
exclude:
- docs/*
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
resources:
repositories:
@@ -13,11 +30,13 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: master
jobs:
- job: Win
@@ -30,7 +49,7 @@ jobs:
maxParallel: 2
# About 150% of total time
timeoutInMinutes: 150
timeoutInMinutes: 270 #Temporary change
pool:
name: WIN_VMSS_VENV_D8S_WU2
@@ -55,7 +74,7 @@ jobs:
IB_DIR: C:\Program Files (x86)\IncrediBuild
IB_TESTCONSOLE: $(IB_DIR)\IBTestConsole.exe
PYTHON_DIR: C:\hostedtoolcache\windows\Python\3.7.6\x64
CMAKE_VERSION: 3.21.0
CMAKE_VERSION: 3.24.0
CMAKE_CMD: $(WORK_DIR)\cmake-$(CMAKE_VERSION)-windows-x86_64\cmake-$(CMAKE_VERSION)-windows-x86_64\bin\cmake.exe
OV_CMAKE_TOOLCHAIN_FILE: $(REPO_DIR)\cmake\toolchains\mt.runtime.win32.toolchain.cmake
@@ -110,10 +129,11 @@ jobs:
rem For running Python API tests
python -m pip install -r $(REPO_DIR)\src\bindings\python\src\compatibility\openvino\requirements-dev.txt
python -m pip install -r $(REPO_DIR)\src\bindings\python\wheel\requirements-dev.txt
python -m pip install -r $(REPO_DIR)\src\bindings\python\requirements.txt
rem For running Paddle frontend unit tests
python -m pip install -r $(REPO_DIR)\src\core\tests\frontend\paddle\requirements_dev.txt
rem For running ONNX frontend unit tests
python -m pip install -r $(REPO_DIR)\src\core\tests\requirements_test_onnx.txt
python -m pip install -r $(REPO_DIR)\src\frontends/onnx\tests\requirements.txt
rem For MO unit tests
python -m pip install -r $(REPO_DIR)\tools\mo\requirements.txt
python -m pip install -r $(REPO_DIR)\tools\mo\requirements_dev.txt
@@ -133,8 +153,24 @@ jobs:
- script: |
set PATH=$(WORK_DIR)\ninja-win;%PATH%
call "$(MSVS_VARS_PATH)" && $(CMAKE_CMD) -G "Ninja Multi-Config" -DENABLE_WHEEL=ON -DENABLE_ONEDNN_FOR_GPU=$(CMAKE_BUILD_SHARED_LIBS) -DENABLE_GAPI_PREPROCESSING=$(CMAKE_BUILD_SHARED_LIBS) -DBUILD_SHARED_LIBS=$(CMAKE_BUILD_SHARED_LIBS) -DENABLE_REQUIREMENTS_INSTALL=OFF -DENABLE_FASTER_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_TESTS=ON -DENABLE_STRICT_DEPENDENCIES=OFF -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE="C:\hostedtoolcache\windows\Python\3.7.6\x64\python.exe" -DPYTHON_INCLUDE_DIR="C:\hostedtoolcache\windows\Python\3.7.6\x64\include" -DPYTHON_LIBRARY="C:\hostedtoolcache\windows\Python\3.7.6\x64\libs\python37.lib" -DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)\modules -DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" -DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" $(REPO_DIR)
workingDirectory: $(BUILD_DIR)
call "$(MSVS_VARS_PATH)" && $(CMAKE_CMD) -G "Ninja Multi-Config" ^
-DENABLE_ONEDNN_FOR_GPU=$(CMAKE_BUILD_SHARED_LIBS) ^
-DBUILD_SHARED_LIBS=$(CMAKE_BUILD_SHARED_LIBS) ^
-DENABLE_REQUIREMENTS_INSTALL=OFF ^
-DENABLE_FASTER_BUILD=ON ^
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) ^
-DENABLE_TESTS=ON ^
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON ^
-DENABLE_STRICT_DEPENDENCIES=OFF ^
-DENABLE_PYTHON=ON ^
-DBUILD_nvidia_plugin=OFF ^
-DPYTHON_EXECUTABLE="C:\hostedtoolcache\windows\Python\3.7.6\x64\python.exe" ^
-DPYTHON_INCLUDE_DIR="C:\hostedtoolcache\windows\Python\3.7.6\x64\include" ^
-DPYTHON_LIBRARY="C:\hostedtoolcache\windows\Python\3.7.6\x64\libs\python37.lib" ^
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)\modules ^
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-S $(REPO_DIR) -B $(BUILD_DIR)
displayName: 'CMake'
- script: dir $(REPO_DIR)\temp\ /s
@@ -142,15 +178,13 @@ jobs:
- script: |
set PATH=$(WORK_DIR)\ninja-win;%PATH%
call "$(MSVS_VARS_PATH)" && "C:\Program Files (x86)\IncrediBuild\BuildConsole.exe" /COMMAND="$(CMAKE_CMD) --build . --config Release"
workingDirectory: $(BUILD_DIR)
call "$(MSVS_VARS_PATH)" && "C:\Program Files (x86)\IncrediBuild\BuildConsole.exe" /COMMAND="$(CMAKE_CMD) --build $(BUILD_DIR) --config Release"
displayName: 'Build Win - IB'
- script: dir $(REPO_DIR)\bin\ /s
displayName: 'List bin files'
- script: $(CMAKE_CMD) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_DIR)
- script: $(CMAKE_CMD) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install'
- script: dir $(INSTALL_DIR) /s
@@ -159,34 +193,26 @@ jobs:
- script: python -m pip install openvino-dev --find-links=$(INSTALL_DIR)\tools
displayName: 'Install Wheels'
- script: call "$(MSVS_VARS_PATH)" && $(CMAKE_CMD) -DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" -DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" $(REPO_DIR)\tests\samples_tests
workingDirectory: $(BUILD_SAMPLES_TESTS_DIR)
displayName: 'CMake'
- script: |
call "$(MSVS_VARS_PATH)" && $(CMAKE_CMD) ^
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-S $(REPO_DIR)\tests\samples_tests ^
-B $(BUILD_SAMPLES_TESTS_DIR)
displayName: 'CMake Samples Tests'
- script: $(CMAKE_CMD) -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_SAMPLES_TESTS_DIR)
- script: $(CMAKE_CMD) -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_SAMPLES_TESTS_DIR)\cmake_install.cmake
displayName: 'Install Samples Tests'
- script: $(CMAKE_CMD) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake && xcopy $(REPO_DIR)\temp\opencv_4.5.2\opencv\* $(INSTALL_DIR)\opencv\ /e /h /y
workingDirectory: $(BUILD_DIR)
displayName: 'Install tests'
- script: dir $(INSTALL_DIR) /s
displayName: 'List install files'
- script: $(INSTALL_DIR)\samples\cpp\build_samples_msvc.bat -i $(INSTALL_DIR)
workingDirectory: $(BUILD_SAMPLES_DIR)
displayName: 'Build cpp samples'
continueOnError: false
- script: $(INSTALL_DIR)\samples\c\build_samples_msvc.bat -i $(INSTALL_DIR)
workingDirectory: $(BUILD_SAMPLES_DIR)
displayName: 'Build c samples'
continueOnError: false
- script: |
python -m pip install -r $(INSTALL_DIR)\tests\smoke_tests\requirements.txt
workingDirectory: $(INSTALL_DIR)
- script: python -m pip install -r $(INSTALL_TEST_DIR)\smoke_tests\requirements.txt
displayName: 'Install dependencies for samples smoke tests'
continueOnError: false
@@ -195,81 +221,99 @@ jobs:
set IE_APP_PYTHON_PATH=$(INSTALL_DIR)\samples\python\
set SHARE=$(INSTALL_DIR)\tests\smoke_tests\samples_smoke_tests_data\
set WORKSPACE=$(INSTALL_DIR)
python -m pytest $(INSTALL_DIR)\tests\smoke_tests\ --env_conf $(INSTALL_DIR)\tests\smoke_tests\env_config.yml -s --junitxml=TEST-SamplesSmokeTests.xml
workingDirectory: $(INSTALL_DIR)
python -m pytest $(INSTALL_DIR)\tests\smoke_tests\ --env_conf $(INSTALL_TEST_DIR)\smoke_tests\env_config.yml -s --junitxml=$(INSTALL_TEST_DIR)/TEST-SamplesSmokeTests.xml
displayName: 'Samples Smoke Tests'
condition: eq(variables['CMAKE_BUILD_SHARED_LIBS'], 'ON')
continueOnError: false
- script: $(CMAKE_CMD) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P $(BUILD_DIR)\cmake_install.cmake
displayName: 'Install tests'
- script: dir $(INSTALL_DIR) /s
displayName: 'List install files'
- script: rd /Q /S $(BUILD_DIR)
displayName: 'Clean build dir'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_core_unit_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:TEST-NGraphUT.xml
workingDirectory: $(INSTALL_TEST_DIR)
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_core_unit_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-NGraphUT.xml
displayName: 'OV Core UT'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\paddle_tests --gtest_print_time=1 --gtest_output=xml:TEST-Paddle.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_ir_frontend_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-IRFrontend.xml
displayName: 'IR Frontend Tests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_onnx_frontend_tests --gtest_print_time=1 --gtest_filter=-*IE_GPU* --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ONNXFrontend.xml
displayName: 'ONNX Frontend Tests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\paddle_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-Paddle.xml
displayName: 'Paddle Frontend UT'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\tensorflow_tests --gtest_print_time=1 --gtest_output=xml:TEST-Tensorflow.xml
displayName: 'Tensorflow Frontend UT'
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_tensorflow_frontend_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-Tensorflow.xml
displayName: 'TensorFlow Frontend Unit Tests'
continueOnError: false
# set PATH=$(IB_DIR);%PATH%
# call $(SETUPVARS) && "$(IB_TESTCONSOLE)" $(INSTALL_TEST_DIR)\InferenceEngineUnitTests.exe --gtest_output=xml:TEST-InferenceEngineUnitTests-IB.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\InferenceEngineUnitTests --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
# call $(SETUPVARS) && "$(IB_TESTCONSOLE)" $(INSTALL_TEST_DIR)\InferenceEngineUnitTests.exe --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-InferenceEngineUnitTests-IB.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\InferenceEngineUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-InferenceEngineUnitTests.xml
displayName: 'IE UT old'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ieUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ieUnitTests.xml
displayName: 'IE UT'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
displayName: 'CPU UT'
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_cpu_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ov_cpu_unit_tests.xml
displayName: 'Intel CPU Unit Tests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\gnaUnitTests --gtest_output=xml:TEST-gnaUnitTests.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_gna_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ov_gna_unit_tests.xml
displayName: 'GNA UT'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\vpuUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-vpuUnitTests.xml
displayName: 'VPU UT'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\onnxImporterUnitTests --gtest_output=xml:TEST-onnxImporterUnitTests.xml
displayName: 'ONNX Importer UT'
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\XLinkTests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-XLinkTests.xml
displayName: 'XLink Tests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ieMultiPluginUnitTests --gtest_output=xml:TEST-ieMultiPluginUnitTests.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ieMultiPluginUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ieMultiPluginUnitTests.xml
displayName: 'MULTI UT'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ieFuncTests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ieFuncTests.xml
displayName: 'IE FuncTests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_template_func_tests --gtest_output=xml:TEST-templateFuncTests.xml
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_template_func_tests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-templateFuncTests.xml
displayName: 'TEMPLATE FuncTests'
continueOnError: false
# set PATH=$(IB_DIR);%PATH%
# call $(SETUPVARS) && "$(IB_TESTCONSOLE)" $(INSTALL_TEST_DIR)\cpuFuncTests.exe --gtest_filter=*smoke*:-*CompareWithRefs/base_size=16_pre_nms_topn=100_post_nms_topn=100_nms_thresh=0.7_feat_stride=1_min_size=1_ratio*:*smoke_GRUSequenceCommonZeroClip/GRUSequenceTest.CompareWithRefs/mode=CONVERT_TO_TI_MAX_SEQ_LEN_CONST_seq_lengths* --gtest_output=xml:TEST-cpuFuncTests-IB.xml /testlevel=24
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\cpuFuncTests --gtest_filter=*smoke* --gtest_output=xml:TEST-cpuFuncTests.xml
# call $(SETUPVARS) && "$(IB_TESTCONSOLE)" $(INSTALL_TEST_DIR)\ov_cpu_func_tests.exe --gtest_filter=*smoke*:-*CompareWithRefs/base_size=16_pre_nms_topn=100_post_nms_topn=100_nms_thresh=0.7_feat_stride=1_min_size=1_ratio*:*smoke_GRUSequenceCommonZeroClip/GRUSequenceTest.CompareWithRefs/mode=CONVERT_TO_TI_MAX_SEQ_LEN_CONST_seq_lengths* --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ov_cpu_func_tests-IB.xml /testlevel=24
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_cpu_func_tests --gtest_filter=*smoke* --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ov_cpu_func_tests.xml
displayName: 'CPU FuncTests'
continueOnError: false
condition: eq(variables['CMAKE_BUILD_SHARED_LIBS'], 'OFF')
condition: and(succeeded(), eq(variables['CMAKE_BUILD_SHARED_LIBS'], 'OFF'))
- script: |
set DATA_PATH=$(MODELS_PATH)
set MODELS_PATH=$(MODELS_PATH)
call $(SETUPVARS) && $(INSTALL_TEST_DIR)\InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
call $(SETUPVARS) && $(INSTALL_TEST_DIR)\InferenceEngineCAPITests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-InferenceEngineCAPITests.xml
displayName: 'IE CAPITests'
continueOnError: false
- script: |
set DATA_PATH=$(MODELS_PATH)
set MODELS_PATH=$(MODELS_PATH)
call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_capi_test --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ov_capi_test.xml
displayName: 'OV CAPITests'
continueOnError: false
- task: PublishTestResults@2
condition: always()
inputs:
+28 -4
View File
@@ -1,11 +1,28 @@
trigger:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
pr:
branches:
include:
- master
- releases/*
paths:
exclude:
- docs/*
exclude:
- docs/
- /**/docs/*
- /**/*.md
- README.md
- /**/layer_tests_summary/**
jobs:
- job: WinCC
@@ -21,7 +38,6 @@ jobs:
VSTS_HTTP_TIMEOUT: 200
BUILD_TYPE: Release
REPO_DIR: $(Build.Repository.LocalPath)
OPENVINO_CONTRIB_REPO_DIR: $(REPO_DIR)\..\openvino_contrib
MODELS_PATH: $(REPO_DIR)\..\testdata
WORK_DIR: $(Pipeline.Workspace)\_w
BUILD_DIR: $(WORK_DIR)\build
@@ -66,7 +82,15 @@ jobs:
- script: |
set PATH=$(WORK_DIR)\ninja-win;%PATH%
call "$(MSVS_VARS_PATH)" && cmake -GNinja -DENABLE_FASTER_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT -DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" -DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" $(REPO_DIR)
call "$(MSVS_VARS_PATH)" && cmake -GNinja ^
-DENABLE_FASTER_BUILD=ON ^
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON ^
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) ^
-DENABLE_PROFILING_ITT=ON ^
-DSELECTIVE_BUILD=COLLECT ^
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
displayName: 'CMake'
+3 -5
View File
@@ -36,6 +36,8 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
ocl-icd-opencl-dev \
pkg-config \
unzip \
libtbb-dev \
libpugixml-dev \
wget \
# Python dependencies
python3 \
@@ -59,7 +61,6 @@ RUN cmake .. \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DENABLE_INTEL_MYRIAD_COMMON=OFF \
-DENABLE_INTEL_GNA=OFF \
-DENABLE_OPENCV=OFF \
-DENABLE_CPPLINT=OFF \
-DENABLE_NCC_STYLE=OFF \
-DENABLE_TESTS=OFF \
@@ -67,9 +68,6 @@ RUN cmake .. \
-DENABLE_INTEL_GPU=OFF \
-DENABLE_PROFILING_ITT=OFF \
-DENABLE_SAMPLES=OFF \
-DENABLE_PYTHON=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DENABLE_OV_ONNX_FRONTEND=ON \
-DENABLE_OV_PADDLE_FRONTEND=OFF \
-DENABLE_OV_TF_FRONTEND=OFF \
-DENABLE_OPENVINO_DEBUG=OFF \
@@ -80,5 +78,5 @@ RUN ninja install
WORKDIR /openvino/src/bindings/python
ENV OpenVINO_DIR=/openvino/dist/runtime/cmake
ENV LD_LIBRARY_PATH=/openvino/dist/runtime/lib:/openvino/dist/runtime/3rdparty/tbb/lib
ENV PYTHONPATH=/openvino/bin/intel64/${BUILD_TYPE}/lib/python_api/python3.8:${PYTHONPATH}
ENV PYTHONPATH=/openvino/bin/intel64/${BUILD_TYPE}/python_api/python3.8:${PYTHONPATH}
CMD tox
-213
View File
@@ -1,213 +0,0 @@
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
DOCKER_CONTAINER_NAME= "openvino-onnx-ci-container"
DOCKER_IMAGE_TAG = "openvino-onnx-ci-image"
ONNX_MODEL_ZOO_SHA = "d58213534f2a4d1c4b19ba62b3bb5f544353256e"
BACKEND_CONFIGURATIONS = [
[ name: "Release", build_type: "Release" ],
[ name: "Debug", build_type: "Debug" ],
]
// workaround for aborting previous builds on PR update
@NonCPS
def stopPreviousRunningBuilds() {
def jobname = env.JOB_NAME
if (jobname.startsWith("onnx-ci/openvino onnx ci/openvino/PR")){
def buildnum = env.BUILD_NUMBER.toInteger()
def job = Jenkins.instance.getItemByFullName(jobname)
def job_newest = job.builds.first()
for (build in job.builds.reverse()[0..<-1]) {
if (build.isBuilding()){
echo "Stop task = ${build} because newest #${job_newest} is on the way"
build.doStop();
continue;
}
}
}
}
def getGitPrInfo(String project, String workdir) {
def gitPrInfo = [
prAuthorEmail : "",
commitAuthorEmail : "",
commitHash : "",
commitSubject : ""
]
try {
dir ("${workdir}/${project}") {
gitPrInfo.prAuthorEmail = sh (script: 'git log -1 --pretty="format:%ae" ', returnStdout: true).trim()
gitPrInfo.commitAuthorEmail = sh (script: 'git log -1 --pretty="format:%ce" ', returnStdout: true).trim()
gitPrInfo.commitSubject = sh (script: 'git log -1 --pretty="format:%H" ', returnStdout: true).trim()
gitPrInfo.commitHash = sh (script: 'git log -1 --pretty="format:%s" ', returnStdout: true).trim()
}
}
catch(e) {
echo "Failed to retrieve ${project} git repository information!"
echo "ERROR: ${e}"
}
return gitPrInfo
}
def notifyByEmail(def gitPrInfo) {
stage('Notify') {
String notifyPeople = "${gitPrInfo.prAuthorEmail}, ${gitPrInfo.commitAuthorEmail}"
emailext (
subject: "OpenVino CI: PR ${CHANGE_ID} ${currentBuild.result}!",
body: """
Status: ${currentBuild.result}
Pull Request Title: ${CHANGE_TITLE}
Pull Request: ${CHANGE_URL}
Branch: ${CHANGE_BRANCH}
Commit Hash: ${gitPrInfo.commitSubject}
Commit Subject: ${gitPrInfo.commitHash}
Jenkins Build: ${RUN_DISPLAY_URL}
""",
to: "${notifyPeople}"
)
}
}
def gitSubmoduleUpdate(String repository_name, String workdir) {
dir ("${workdir}/${repository_name}") {
sh label: "Init ${repository_name} submodules",
script:
"""
git submodule init && git submodule update \
--init \
--no-fetch \
--recursive
"""
}
}
def prepare_repository(String workdir) {
dir("${workdir}") {
println "Preparing repository in directory: ${workdir}"
checkout scm
gitSubmoduleUpdate(PROJECT_NAME, workdir)
}
}
def updateModels() {
sh """
./src/bindings/python/tests/test_onnx/model_zoo_preprocess.sh -d ${HOME}/ONNX_CI/models_data -o -s ${ONNX_MODEL_ZOO_SHA}
"""
}
def get_docker_container_name(Map configuration){
println "RUN get_docker_container_name for ${configuration.name}"
String docker_container_name = "${DOCKER_CONTAINER_NAME}_${BUILD_NUMBER}_${env.CHANGE_ID}_${configuration.name}"
return docker_container_name
}
def buildDockerImage(Map configuration, String workdir) {
String docker_image_tag = "${DOCKER_IMAGE_TAG}_${BUILD_NUMBER}_${env.CHANGE_ID}_${configuration.name}".toLowerCase()
println "docker_image_tag: ${docker_image_tag}"
updateModels()
sh """
docker build --tag=${docker_image_tag} \
--build-arg BUILD_TYPE=${configuration.build_type} \
--file=.ci/openvino-onnx/Dockerfile \
--build-arg http_proxy=${HTTP_PROXY} \
--build-arg https_proxy=${HTTPS_PROXY} .
"""
}
def runTests(Map configuration, String workdir) {
println "Run tests for ${configuration.name}"
String docker_image_tag = "${DOCKER_IMAGE_TAG}_${BUILD_NUMBER}_${env.CHANGE_ID}_${configuration.name}".toLowerCase()
String docker_container_name = get_docker_container_name(configuration)
// Run only basic unit tests in Debug configuration
if (configuration.build_type == "Debug") {
sh """
docker run --name ${docker_container_name} ${docker_image_tag}
"""
}
// Run unit-tests AND large model tests by default
else {
sh """
docker run --name ${docker_container_name} \
--volume ${HOME}/ONNX_CI/models_data/model_zoo/onnx_model_zoo_${ONNX_MODEL_ZOO_SHA}:/root/.onnx/model_zoo/onnx_model_zoo \
--volume ${HOME}/ONNX_CI/data/model_zoo/MSFT:/root/.onnx/model_zoo/MSFT \
${docker_image_tag} /bin/bash -c "tox && tox -e zoo_models"
"""
}
}
def getConfigurationsMap() {
def configurationsMap = [:]
for (backend in BACKEND_CONFIGURATIONS) {
def configuration = backend.clone()
configurationsMap[configuration.name] = {
stage(configuration.name) { CONFIGURATION_WORKFLOW(configuration) }
}
}
return configurationsMap
}
CONFIGURATION_WORKFLOW = { configuration ->
node("OpenVINO") {
String workdir = "${HOME}/workspace/${BUILD_NUMBER}_${env.CHANGE_ID}_${configuration.name}"
try {
PROJECT_NAME = "openvino"
stage("Clone repository") {
prepare_repository(workdir)
}
stage("Prepare Docker environment") {
dir("${workdir}") {
buildDockerImage(configuration, workdir)
}
}
stage("Run tests") {
timeout(time: 60, unit: 'MINUTES') {
runTests(configuration, workdir)
}
}
}
catch(e) {
// Set result to ABORTED if exception contains exit code of a process interrupted by SIGTERM
if ("$e".contains("143")) {
currentBuild.result = "ABORTED"
} else {
currentBuild.result = "FAILURE"
}
def gitPrInfo = getGitPrInfo(PROJECT_NAME, workdir)
notifyByEmail(gitPrInfo)
}
finally {
stage("Cleanup") {
String docker_container_name = get_docker_container_name(configuration)
sh """
docker rm -f ${docker_container_name}
rm -rf ${workdir}
"""
}
}
}
}
pipeline {
agent none
options {
skipDefaultCheckout true
timeout(activity: true, time: 120, unit: 'MINUTES')
}
stages {
stage('Parallel CI') {
steps {
stopPreviousRunningBuilds()
script {
parallelStagesMap = getConfigurationsMap()
parallel parallelStagesMap
}
}
}
}
}
-65
View File
@@ -1,65 +0,0 @@
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
timeout(30)
{
node(LABEL) {
BUILD_WORKSPACE = "$WORKSPACE/$BUILD_NUMBER"
WATCHDOG_ROOT = "$BUILD_WORKSPACE/.ci/openvino-onnx/watchdog"
VENV_PATH = "${BUILD_WORKSPACE}/.wdvenv"
try {
stage("Clone repository") {
dir ("$BUILD_WORKSPACE") {
checkout([$class: 'GitSCM', branches: [[name: "*/$BRANCH"]],
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 30]], submoduleCfg: [],
userRemoteConfigs: [[credentialsId: "${GITHUB_KEY}", url: "${OPEN_VINO_URL}"]]])
}
}
stage("Prepare environment") {
sh """#!/bin/bash
if [ ! -d ${VENV_PATH} ]; then
python3 -m venv ${VENV_PATH}
source ${VENV_PATH}/bin/activate
pip install -r ${WATCHDOG_ROOT}/requirements.txt
fi
"""
}
stage("Run script") {
withCredentials([
usernamePassword(credentialsId: '7157091e-bc04-42f0-99fd-dc4da2922a55',
usernameVariable: 'username',
passwordVariable: 'password')])
{
dir ("$BUILD_WORKSPACE") {
sh """#!/bin/bash
source ${VENV_PATH}/bin/activate
export PYTHONHTTPSVERIFY=0
python ${WATCHDOG_ROOT}/src/main.py \
--msteams-url=${MSTEAMS_URL_FILE} \
--github-credentials '${username}' '${password}' \
--github-org=${GITHUB_ORG} \
--github-project=${GITHUB_PROJECT} \
--jenkins-token=${JENKINS_TOKEN_FILE} \
--jenkins-server=${JENKINS_SERVER} \
--jenkins-user=${JENKINS_USER} \
--ci-job=${CI_JOB_NAME} \
--watchdog-job=${WATCHDOG_JOB_NAME}
"""
}
}
}
} catch (e) {
echo "$e"
currentBuild.result = "FAILURE"
} finally {
stage("Cleanup") {
sh """
cd $BUILD_WORKSPACE
rm -rf ..?* .[!.]* *
"""
}
}
}
}
@@ -1,6 +0,0 @@
python-jenkins==1.7.0
retrying==1.3.3
pygithub==1.51
timeout-decorator==0.4.1
requests==2.23.0
wheel
@@ -1,108 +0,0 @@
#!/usr/bin/python3
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import logging
import timeout_decorator
from datetime import datetime
from retrying import retry
from github import Github, GithubException
# Logging
logging.basicConfig(format='%(name)s - %(levelname)s - %(message)s')
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
_RETRY_LIMIT = 3
_RETRY_COOLDOWN_MS = 2000
_REQUEST_TIMEOUT_S = 10
class GitWrapper:
"""Class wrapping PyGithub API.
The purpose of this class is to wrap methods from PyGithub API used in Watchdog, for less error-prone and
more convenient use. Docs for used API, including wrapped methods can be found at:
https://pygithub.readthedocs.io/en/latest/introduction.html
:param github_credentials: Credentials used for GitHub
:param repository: GitHub repository name
:param project: GitHub project name
:type github_credentials: String
:type repository: String
:type project: String
"""
def __init__(self, github_credentials, repository, project):
self.git = Github(*github_credentials)
self.repository = repository
self.project = project
self.github_credentials = github_credentials
@retry(stop_max_attempt_number=_RETRY_LIMIT, wait_fixed=_RETRY_COOLDOWN_MS)
def get_git_time(self):
"""Retrieve time from GitHub.
Used to reliably determine time during Watchdog run.
:return: Datetime object describing current time
:rtype: datetime
"""
try:
datetime_object = self._get_git_time()
except ValueError as e:
raise GitWrapperError(str(e))
except GithubException as e:
message = 'GitHub Exception during API status retrieval. Exception: {}'.format(str(e))
raise GitWrapperError(message)
except timeout_decorator.TimeoutError:
message = 'GitHub Exception during API status retrieval. Timeout during API request.'
raise GitWrapperError(message)
return datetime_object
@retry(stop_max_attempt_number=_RETRY_LIMIT, wait_fixed=_RETRY_COOLDOWN_MS)
def get_pull_requests(self):
"""Retrieve paginated list of pull requests from GitHub.
:return: Paginated list of Pull Requests in GitHub repo
:rtype: github.PaginatedList.PaginatedList of github.PullRequest.PullRequest
"""
try:
prs = self._get_pull_requests()
except GithubException as e:
message = 'GitHub Exception during API status retrieval. Exception: {}'.format(str(e))
raise GitWrapperError(message)
return prs
@timeout_decorator.timeout(_REQUEST_TIMEOUT_S)
def _get_git_time(self):
"""Private method retrieving time from GitHub.
:return: Datetime object describing current time
:rtype: datetime
"""
datetime_string = self.git.get_api_status().raw_headers.get('date', '')
datetime_format = '%a, %d %b %Y %H:%M:%S %Z'
datetime_object = datetime.strptime(datetime_string, datetime_format)
return datetime_object
@timeout_decorator.timeout(_REQUEST_TIMEOUT_S)
def _get_pull_requests(self):
"""Private method retrieving pull requests from GitHub.
:return: Paginated list of Pull Requests in GitHub repo
:rtype: github.PaginatedList.PaginatedList of github.PullRequest.PullRequest
"""
return self.git.get_organization(self.repository).get_repo(self.project).get_pulls()
class GitWrapperError(Exception):
"""Base class for exceptions raised in GitWrapper.
:param message Explanation of the error
"""
def __init__(self, message):
self.message = message
log.exception(message)
@@ -1,91 +0,0 @@
#!/usr/bin/python3
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import requests
import jenkins
import logging
from retrying import retry
# Logging
logging.basicConfig(format='%(name)s - %(levelname)s - %(message)s')
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
_RETRY_LIMIT = 3
_RETRY_COOLDOWN_MS = 5000
class JenkinsWrapper:
"""Class wrapping Python-Jenkins API.
The purpose of this class is to wrap methods from Python-Jenkins API used in Watchdog, for less error-prone and
more convenient use. Docs for used API, including wrapped methods can be found at:
https://python-jenkins.readthedocs.io/en/latest/
:param jenkins_token: Token used for Jenkins
:param jenkins_user: Username used to connect to Jenkins
:param jenkins_server: Jenkins server address
:type jenkins_token: String
:type jenkins_user: String
:type jenkins_server: String
"""
def __init__(self, jenkins_token, jenkins_user, jenkins_server):
self.jenkins_server = jenkins_server
self.jenkins = jenkins.Jenkins(jenkins_server, username=jenkins_user,
password=jenkins_token)
@retry(stop_max_attempt_number=_RETRY_LIMIT, wait_fixed=_RETRY_COOLDOWN_MS)
def get_build_console_output(self, job_name, build_number):
return self.jenkins.get_build_console_output(job_name, build_number)
@retry(stop_max_attempt_number=_RETRY_LIMIT, wait_fixed=_RETRY_COOLDOWN_MS)
def get_job_info(self, job_name):
return self.jenkins.get_job_info(job_name)
@retry(stop_max_attempt_number=_RETRY_LIMIT, wait_fixed=_RETRY_COOLDOWN_MS)
def get_build_info(self, job_name, build_number):
return self.jenkins.get_build_info(job_name, build_number)
@retry(stop_max_attempt_number=_RETRY_LIMIT, wait_fixed=_RETRY_COOLDOWN_MS)
def get_queue_item(self, queue_id):
"""Attempt to retrieve Jenkins job queue item.
Exception communicating queue doesn't exist is expected,
in that case method returns empty dict.
:param queue_id: Jenkins job queue ID number
:type queue_id: int
:return: Dictionary representing Jenkins job queue item
:rtype: dict
"""
try:
return self.jenkins.get_queue_item(queue_id)
except Exception as e:
# Exception 'queue does not exist' is expected behaviour when job is running
if 'queue' in str(e) and 'does not exist' in str(e):
return {}
else:
raise
@retry(stop_max_attempt_number=_RETRY_LIMIT, wait_fixed=_RETRY_COOLDOWN_MS)
def get_idle_ci_hosts(self):
"""Query Jenkins for idle servers.
Send GET request to Jenkins server, querying for idle servers labeled
for OpenVino-ONNX CI job.
:return: Number of idle hosts delegated to OpenVino-ONNX CI
:rtype: int
"""
jenkins_request_url = self.jenkins_server + 'label/ci&&onnx/api/json?pretty=true'
try:
log.info('Sending request to Jenkins: %s', jenkins_request_url)
r = requests.Request(method='GET', url=jenkins_request_url, verify=False)
response = self.jenkins.jenkins_request(r).json()
return int(response['totalExecutors']) - int(response['busyExecutors'])
except Exception as e:
log.exception('Failed to send request to Jenkins!\nException message: %s', str(e))
raise
-89
View File
@@ -1,89 +0,0 @@
#!/usr/bin/python3
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import argparse
import sys
from watchdog import Watchdog
DEFAULT_MSTEAMS_URL_FILE = '/home/lab_nerval/tokens/msteams_url'
DEFAULT_GITHUB_ORGANIZATION = 'openvinotoolkit'
DEFAULT_GITHUB_PROJECT = 'openvino'
DEFAULT_JENKINS_TOKEN_FILE = '/home/lab_nerval/tokens/crackerjack'
DEFAULT_JENKINS_SERVER = 'https://crackerjack.intel.com/'
DEFAULT_JENKINS_USER = 'lab_nerval'
DEFAULT_CI_JOB_NAME = 'onnx/OpenVino_CI'
DEFAULT_WATCHDOG_JOB_NAME = 'onnx/ci_watchdog'
def main(args):
"""
Read args passed to script, load tokens and run watchdog.
Keyword arguments:
:param args: arguments parsed by argparse ArgumentParser
:return: returns status code 0 on successful completion
"""
jenkins_server = args.jenkins_server.strip()
jenkins_user = args.jenkins_user.strip()
jenkins_token = open(args.jenkins_token).read().replace('\n', '').strip()
msteams_url = open(args.msteams_url).read().replace('\n', '').strip()
github_credentials = args.github_credentials
github_org = args.github_org
github_project = args.github_project
ci_job = args.ci_job.strip()
watchdog_job = args.watchdog_job.strip()
quiet = args.quiet
wd = Watchdog(jenkins_token=jenkins_token,
jenkins_server=jenkins_server,
jenkins_user=jenkins_user,
github_credentials=github_credentials,
git_org=github_org,
git_project=github_project,
msteams_url=msteams_url,
ci_job_name=ci_job,
watchdog_job_name=watchdog_job)
wd.run(quiet=quiet)
return 0
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--msteams-url', help='Path to MS Teams channel url to communicate messages.',
default=DEFAULT_MSTEAMS_URL_FILE, action='store', required=False)
parser.add_argument('--github-credentials', help='GitHub user credentials to access repo.',
nargs="+", required=True)
parser.add_argument('--github-org', help='Name of organization on GitHub.',
default=DEFAULT_GITHUB_ORGANIZATION, action='store', required=False)
parser.add_argument('--github-project', help='Name of project on GitHub.',
default=DEFAULT_GITHUB_PROJECT, action='store', required=False)
parser.add_argument('--jenkins-token', help='Path to Jenkins user token to access build info.',
default=DEFAULT_JENKINS_TOKEN_FILE, action='store', required=False)
parser.add_argument('--jenkins-server', help='Jenkins server address.',
default=DEFAULT_JENKINS_SERVER, action='store', required=False)
parser.add_argument('--jenkins-user', help='Jenkins user used to log in.',
default=DEFAULT_JENKINS_USER, action='store', required=False)
parser.add_argument('--ci-job', help='Jenkins CI job name.',
default=DEFAULT_CI_JOB_NAME, action='store', required=False)
parser.add_argument('--watchdog-job', help='Jenkins CI Watchdog job name.',
default=DEFAULT_WATCHDOG_JOB_NAME, action='store', required=False)
parser.add_argument('--quiet', help="Quiet mode - doesn\'t send message to communicator.",
action='store_true', required=False)
args = parser.parse_args()
sys.exit(main(args))
@@ -1,128 +0,0 @@
#!/usr/bin/python3
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import requests
class MSTeamsCommunicator:
"""Class communicating with MSTeams using Incoming Webhook.
The purpose of this class is to use MSTeams API to send message.
Docs for used API, including wrapped methods can be found at:
https://docs.microsoft.com/en-us/outlook/actionable-messages/send-via-connectors
"""
def __init__(self, _ci_alerts_channel_url):
self._ci_alerts_channel_url = _ci_alerts_channel_url
self._queued_messages = {
self._ci_alerts_channel_url: [],
}
@property
def messages(self):
"""
Get list of queued messages.
:return: List of queued messages
:return type: List[String]
"""
return self._queued_messages.values()
def queue_message(self, message):
"""
Queue message to be sent later.
:param message: Message content
:type message: String
"""
self._queued_messages[self._ci_alerts_channel_url].append(message)
def _parse_text(self, watchdog_log, message):
"""
Parse text to display as alert.
:param watchdog_log: Watchdog log content
:param message: Unparsed message content
:type watchdog_log: String
:type message: String
"""
message_split = message.split('\n')
log_url = None
if len(message_split) == 3:
log_url = message_split[-1]
title = message_split[0]
text = message_split[1]
header = watchdog_log.split(' - ')
header_formatted = '{} - [Watchdog Log]({})'.format(header[0], header[1])
return title, log_url, '{}\n\n{}'.format(header_formatted, text)
def _json_request_content(self, title, log_url, text_formatted):
"""
Create final json request to send message to MS Teams channel.
:param title: Title of alert
:param log_url: URL to PR
:param text_formatted: General content of alert - finally formatted
:type title: String
:type title: String
:type title: String
"""
data = {
'@context': 'https://schema.org/extensions',
'@type': 'MessageCard',
'themeColor': '0072C6',
'title': title,
'text': text_formatted,
'potentialAction':
[
{
'@type': 'OpenUri',
'name': 'Open PR',
'targets':
[
{
'os': 'default',
'uri': log_url,
},
],
},
],
}
return data
def _send_to_channel(self, watchdog_log, message_queue, channel_url):
"""
Send MSTeams message to specified channel.
:param watchdog_log: Watchdog log content
:param message_queue: Queued messages to send
:param channel_url: Channel url
:type watchdog_log: String
:type message_queue: String
:type channel_url: String
"""
for message in message_queue:
title, log_url, text_formatted = self._parse_text(watchdog_log, message)
data = self._json_request_content(title, log_url, text_formatted)
try:
requests.post(url=channel_url, json=data)
except Exception as ex:
raise Exception('!!CRITICAL!! MSTeamsCommunicator: Could not send message '
'due to {}'.format(ex))
def send_message(self, watchdog_log, quiet=False):
"""
Send queued messages as single communication.
:param watchdog_log: Watchdog log content
:param quiet: Flag for disabling sending report through MS Teams
:type watchdog_log: String
:type quiet: Boolean
"""
for channel, message_queue in self._queued_messages.items():
if not quiet and message_queue:
self._send_to_channel(watchdog_log, message_queue, channel)
-505
View File
@@ -1,505 +0,0 @@
#!/usr/bin/python3
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import datetime
import time
import re
import logging
import requests
from ms_teams_communicator import MSTeamsCommunicator
from jenkins_wrapper import JenkinsWrapper
from jenkins import NotFoundException
from git_wrapper import GitWrapper, GitWrapperError
import os
import json
# Logging
logging.basicConfig(format='%(name)s - %(levelname)s - %(message)s')
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
# Watchdog static constant variables
_SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
_BUILD_DURATION_THRESHOLD = datetime.timedelta(minutes=60)
_CI_START_THRESHOLD = datetime.timedelta(minutes=30)
_AWAITING_JENKINS_THRESHOLD = datetime.timedelta(minutes=5)
_WATCHDOG_DIR = os.path.expanduser('~')
_PR_REPORTS_CONFIG_KEY = 'pr_reports'
_CI_BUILD_FAIL_MESSAGE = 'ERROR: py3: commands failed'
_CI_BUILD_SUCCESS_MESSAGE = 'py3: commands succeeded'
_GITHUB_CI_CHECK_NAME = 'OpenVINO-ONNX'
INTERNAL_ERROR_MESSAGE_HEADER = '!!! --- !!! INTERNAL WATCHDOG ERROR !!! --- !!!'
ERROR_MESSAGE_HEADER = '!!! OpenVino-ONNX CI Error !!!'
WARNING_MESSAGE_HEADER = 'OpenVino-ONNX CI WARNING'
INFO_MESSAGE_HEADER = 'OpenVino-ONNX CI INFO'
class Watchdog:
"""Class describing OpenVino-ONNX-CI Watchdog.
Watchdog connects to GitHub and retrieves the list of current pull requests (PRs) in
OpenVino repository. Then it connects to specified Jenkins server to
check CI jobs associated with every PR. Watchdog verifies time durations for Jenkins
initial response, job queue and execution against time treshold constants. Every fail
is logged and reported through MS Teams communicators.
:param jenkins_token: Token used for Jenkins
:param jenkins_server: Jenkins server address
:param jenkins_user: Username used to connect to Jenkins
:param github_credentials: Credentials used to connect to GitHub
:param msteams_url: URL used to connect to MS Teams channel
:param ci_job_name: OpenVino-ONNX CI job name used in Jenkins
:param watchdog_job_name: Watchdog job name used in Jenkins
:type jenkins_token: String
:type jenkins_server: String
:type jenkins_user: String
:type github_credentials: String
:type msteams_url: String
:type ci_job_name: String
:type watchdog_job_name: String
.. note::
Watchdog and OpenVino-ONNX CI job must be placed on the same Jenkins server.
"""
def __init__(self, jenkins_token, jenkins_server, jenkins_user, github_credentials, git_org,
git_project, msteams_url, ci_job_name, watchdog_job_name):
self._config_path = os.path.join(_WATCHDOG_DIR, '{}/.{}_ci_watchdog.json'.format(_WATCHDOG_DIR, git_project))
# Jenkins Wrapper object for CI job
self._jenkins = JenkinsWrapper(jenkins_token,
jenkins_user=jenkins_user,
jenkins_server=jenkins_server)
# Load GitHub token and log in, retrieve pull requests
self._git = GitWrapper(github_credentials, repository=git_org, project=git_project)
# Create MS Teams api object
self._msteams_hook = MSTeamsCommunicator(msteams_url)
self._ci_job_name = ci_job_name.lower()
self._watchdog_job_name = watchdog_job_name
# Read config file
self._config = self._read_config_file()
# Time at Watchdog initiation
self._now_time = datetime.datetime.now()
self._current_prs = {}
self._ms_teams_enabled = True
def run(self, quiet=False):
"""Run main watchdog logic.
Retrieve list of pull requests and pass it to the method responsible for checking them.
:param quiet: Flag for disabling sending report through communicator
:type quiet: Boolean
"""
try:
pull_requests = self._git.get_pull_requests()
except GitWrapperError:
message = 'Failed to retrieve Pull Requests!'
log.exception(message)
self._queue_message(message, message_severity='internal')
# Check all pull requests
for pr in pull_requests:
try:
self._check_pr(pr)
except Exception as e:
log.exception(str(e))
self._queue_message(str(e), message_severity='internal', pr=pr)
self._update_config()
self._send_message(quiet=quiet)
def _read_config_file(self):
"""Read Watchdog config file stored on the system.
The file stores every fail already reported along with timestamp. This
mechanism is used to prevent Watchdog from reporting same failure
multiple times. In case there's no config under the expected path,
appropriate data structure is created and returned.
:return: Returns dict of dicts with reported fails with their timestamps
:rtype: dict of dicts
"""
if os.path.isfile(self._config_path):
log.info('Reading config file in: {}'.format(self._config_path))
file = open(self._config_path, 'r')
data = json.load(file)
else:
log.info('No config file found in: {}'.format(self._config_path))
data = {_PR_REPORTS_CONFIG_KEY: {}}
return data
def _check_pr(self, pr):
"""Check pull request (if there's no reason to skip).
Retrieve list of statuses for every PR's last commit and interpret them. Filters out statuses
unrelated to OpenVino-ONNX Jenkins CI and passes relevant statuses to method that interprets them.
If no commit statuses related to Jenkins are available after time defined by
**_AWAITING_JENKINS_THRESHOLD** calls appropriate method to check for builds waiting in queue.
:param pr: GitHub Pull Requests
:type pr: github.PullRequest.PullRequest
"""
log.info('===============================================')
log.info('Checking PR#{}'.format(pr.number))
# Get last Jenkins status
last_status = self._get_last_status(pr)
# Append PR checked in current run for Watchdog config
self._current_prs[str(pr.number)] = self._get_pr_timestamps(pr, last_status)
if self._should_ignore(pr) or self._updated_since_last_run(pr):
log.info('Ignoring PR#{}'.format(pr.number))
return
# Calculate time passed since PR update (any commit, merge or comment)
pr_time_delta = self._now_time - pr.updated_at
if last_status:
# Interpret found CI statuses
log.info('Last status: {} at {}'.format(last_status.description, last_status.updated_at))
self._interpret_status(last_status, pr)
elif pr_time_delta > _CI_START_THRESHOLD:
# If there's no status after assumed time - check if build is waiting in queue
log.info('CI for PR {}: NO JENKINS STATUS YET'.format(pr.number))
self._check_missing_status(pr)
@staticmethod
def _get_pr_timestamps(pr, last_status):
"""Get dict containing PR timestamp and last status timestamp.
:param pr: Single PR being currently checked
:type pr: github.PullRequest.PullRequest
:return: Dictionary with PR and last status update timestamps
:rtype: dict
"""
pr_timestamp = time.mktime(pr.updated_at.timetuple())
if last_status:
status_timestamp = time.mktime(last_status.updated_at.timetuple())
else:
status_timestamp = None
pr_dict = {'pr_timestamp': pr_timestamp,
'status_timestamp': status_timestamp}
return pr_dict
@staticmethod
def _get_last_status(pr):
"""Get last commit status posted from Jenkins.
:param pr: Single PR being currently checked
:type pr: github.PullRequest.PullRequest
:return: Either last PR status posted from Jenkins or None
:rtype: github.CommitStatus.CommitStatus
"""
# Find last commit in PR
last_commit = pr.get_commits().reversed[0]
# Get statuses and filter them to contain only those related to Jenkins CI
# and check if CI in Jenkins started
statuses = last_commit.get_statuses()
jenk_statuses = [stat for stat in statuses if
_GITHUB_CI_CHECK_NAME in stat.context]
try:
last_status = jenk_statuses[0]
except IndexError:
last_status = None
return last_status
@staticmethod
def _should_ignore(pr):
"""Determine if PR should be ignored.
:param pr: Single PR being currently checked
:type pr: github.PullRequest.PullRequest
:return: Returns True if PR should be ignored
:rtype: Bool
"""
# Ignore PR if it has WIP label or WIP in title
if 'WIP' in pr.title:
log.info('PR#{} should be ignored. WIP tag in title.'.format(pr.number))
return True
label_names = [label.name for label in pr.labels]
if 'WIP' in label_names:
log.info('PR#{} should be ignored. WIP label present.'.format(pr.number))
return True
# Ignore PR if base ref is not master
if 'master' not in pr.base.ref:
log.info('PR#{} should be ignored. Base ref is not master'.format(pr.number))
return True
# Ignore PR if mergeable state is 'dirty' or 'behind'.
# Practically this ignores PR in case of merge conflicts
ignored_mergeable_states = ['behind', 'dirty', 'draft']
if pr.mergeable_state in ignored_mergeable_states:
log.info('PR#{} should be ignored. Mergeable state is {}. '.format(pr.number, pr.mergeable_state))
return True
# If no criteria for ignoring PR are met - return false
return False
def _updated_since_last_run(self, pr):
# Ignore if PR was already checked and there was no update in meantime
pr_number = str(pr.number)
current_pr_timestamps = self._current_prs.get(pr_number)
last_pr_timestamps = self._config[_PR_REPORTS_CONFIG_KEY].get(pr_number)
if current_pr_timestamps == last_pr_timestamps:
log.info('PR#{} - No update since last check'.format(pr.number))
return True
else:
return False
def _check_missing_status(self, pr):
"""Verify if missing status is expected.
This method checks if CI build for last was scheduled and still waits in queue for
executor.
:param pr: Single PR being currently checked
:type pr: github.PullRequest.PullRequest
"""
pr_time_delta = self._now_time - pr.updated_at
try:
build_number = self._build_scheduled(pr)
if self._build_in_queue(pr, build_number):
message = ('PR# {}: build waiting in queue after {} minutes.'
.format(pr.number, pr_time_delta.seconds / 60))
severity = 'warning'
else:
message = ('PR# {}: missing status on GitHub after {} minutes.'
.format(pr.number, pr_time_delta.seconds / 60))
severity = 'error'
self._queue_message(message, message_severity=severity, pr=pr)
except TypeError:
log.info('Committer outside of OpenVino organization')
def _build_scheduled(self, pr):
"""Check if Jenkins build corresponding to PR was scheduled.
This method takes last Jenkins build for given PR and compares hash from Jenkins console output
and sha from PR object to determine if CI build for appropriate commit was scheduled.
:param pr: Single PR being currently checked
:type pr: github.PullRequest.PullRequest
:return: Returns build number or -1 if no build found
:rtype: int
"""
pr_number = str(pr.number)
project_name_full = self._ci_job_name + '/PR-' + pr_number
try:
# Retrieve console output from last Jenkins build for job corresponding to this PR
last_build_number = self._jenkins.get_job_info(project_name_full)['lastBuild']['number']
console_output = self._jenkins.get_build_console_output(project_name_full, last_build_number)
# Check if CI build was scheduled - commit hash on GH must match hash in last Jenkins build console output
# Retrieve hash from Jenkins output
match_string = '(?:Obtained .ci/[a-zA-Z/]+Jenkinsfile from ([a-z0-9]{40}))'
retrieved_sha = re.search(match_string, console_output).group(1)
if retrieved_sha == pr.get_commits().reversed[0].sha:
return last_build_number
else:
return -1
except (NotFoundException, AttributeError, requests.exceptions.HTTPError):
message = ('PR #{}: Jenkins build corresponding to commit {} not found!'
.format(pr_number, pr.get_commits().reversed[0].sha))
self._queue_message(message, message_severity='error', pr=pr)
return -1
def _build_in_queue(self, pr, build_number):
"""Check if Jenkins build waits in queue.
This method verifies if CI build is waiting in queue based on console output.
:param pr: Single PR being currently checked
:param build_number: Jenkins build number to retrieve console output from
:type pr: github.PullRequest.PullRequest
:type build_number: int
:return: Returns True if CI build is waiting in queue
:rtype: Bool
"""
pr_number = str(pr.number)
project_name_full = self._ci_job_name + '/PR-' + pr_number
# Retrieve console output
try:
console_output = self._jenkins.get_build_console_output(project_name_full, build_number)
except NotFoundException:
return False
# Check if build is waiting in queue (and not already running on an executor)
if 'Waiting for next available executor on' in console_output \
and 'Running on' not in console_output:
log.info('CI for PR %s: WAITING IN QUEUE', pr_number)
return True
else:
return False
def _interpret_status(self, status, pr):
"""
Verify GitHub status passed to the method.
This method verifies last commit status for given PR, calling appropriate methods
to further validate the status.
:param status: GitHub commit status
:param pr: Single PR being currently checked
:type status: github.CommitStatus.CommitStatus
:type pr: github.PullRequest.PullRequest
"""
try:
# Retrieve build number for Jenkins build related to this PR
build_number = self._retrieve_build_number(status.target_url)
# CI build finished - verify if expected output is present
finished_statuses = ['Build finished', 'This commit cannot be built', 'This commit looks good']
pending_statuses = ['This commit is being built', 'Testing in progress',
'This commit is scheduled to be built']
if any(phrase in status.description for phrase in finished_statuses):
self._check_finished(pr, build_number)
# CI build in progress - verify timeouts for build queue and duration
elif any(phrase in status.description for phrase in pending_statuses):
self._check_in_progress(pr, build_number)
else:
message = 'ONNX CI job for PR# {}: unrecognized status: {}'.format(pr.number, status.description)
self._queue_message(message, message_severity='error', pr=pr)
except Exception:
# Log Watchdog internal error in case any status can't be properly verified
message = 'Failed to verify status "{}" for PR# {}'.format(status.description, pr.number)
log.exception(message)
self._queue_message(message, message_severity='internal', pr=pr)
def _retrieve_build_number(self, url):
"""Retrieve Jenkins CI job build number from URL address coming from GitHub commit status.
:param url: URL address from GitHub commit status
:type url: String
:return: Returns build number
:rtype: int
"""
# Retrieve the build number from url string
match_obj = re.search('(?:/PR-[0-9]+/)([0-9]+)', url)
try:
number = int(match_obj.group(1))
return number
except Exception:
log.exception('Failed to retrieve build number from url link: %s', url)
raise
def _queue_message(self, message, message_severity='info', pr=None):
"""Add a message to message queue in communicator object.
The queued message is constructed based on message string passed as
a method argument and message header. Message header is mapped to message severity
also passed as an argument.
:param message: Message content
:param message_severity: Message severity level
:type message: String
:type message_severity: int
"""
log.info(message)
internal = False
if 'internal' in message_severity:
message_header = INTERNAL_ERROR_MESSAGE_HEADER
internal = True
elif 'error' in message_severity:
message_header = ERROR_MESSAGE_HEADER
elif 'warning' in message_severity:
message_header = WARNING_MESSAGE_HEADER
else:
message_header = INFO_MESSAGE_HEADER
# If message is related to PR attatch url
if pr:
message = message + '\n' + pr.html_url
send = message_header + '\n' + message
if self._ms_teams_enabled:
self._msteams_hook.queue_message(send)
def _check_finished(self, pr, build_number):
"""Verify if finished build output contains expected string for either fail or success.
:param pr: Single PR being currently checked
:param build_number: Jenkins CI job build number
:type pr: github.PullRequest.PullRequest
:type build_number: int
"""
pr_number = str(pr.number)
log.info('CI for PR %s: FINISHED', pr_number)
# Check if FINISH was valid FAIL / SUCCESS
project_name_full = self._ci_job_name + '/PR-' + pr_number
build_output = self._jenkins.get_build_console_output(project_name_full, build_number)
if _CI_BUILD_FAIL_MESSAGE not in build_output \
and _CI_BUILD_SUCCESS_MESSAGE not in build_output:
message = ('ONNX CI job for PR #{}: finished but no tests success or fail '
'confirmation is present in console output!'.format(pr_number))
self._queue_message(message, message_severity='error', pr=pr)
def _send_message(self, quiet=False):
"""Send messages queued in MS Teams objects to designated channel.
Queued messages are being sent as a single communication.
:param quiet: Flag for disabling sending report through communicator
:type quiet: Boolean
"""
if any(messages for messages in self._msteams_hook.messages):
try:
watchdog_build = self._jenkins.get_job_info(self._watchdog_job_name)['lastBuild']
watchdog_build_number = watchdog_build['number']
watchdog_build_link = watchdog_build['url']
except Exception:
watchdog_build_number = 'UNKNOWN'
watchdog_build_link = self._jenkins.jenkins_server
send = self._watchdog_job_name + '- build ' + str(
watchdog_build_number) + ' - ' + watchdog_build_link
if self._ms_teams_enabled:
self._msteams_hook.send_message(send, quiet=quiet)
else:
log.info('Nothing to report.')
def _check_in_progress(self, pr, build_number):
"""Check if CI build succesfully started.
Checks if build started within designated time threshold, and job is
currently running - it didn't cross the time threshold.
:param pr: Single PR being currently checked
:param build_number: Jenkins CI job build number
:type pr: github.PullRequest.PullRequest
:type build_number: int
"""
pr_number = str(pr.number)
log.info('CI for PR %s: TESTING IN PROGRESS', pr_number)
project_name_full = self._ci_job_name + '/PR-' + pr_number
build_info = self._jenkins.get_build_info(project_name_full, build_number)
build_datetime = datetime.datetime.fromtimestamp(build_info['timestamp'] / 1000.0)
build_delta = self._now_time - build_datetime
log.info('Build %s: IN PROGRESS, started: %s minutes ago', str(build_number),
str(build_delta))
# If build still waiting in queue
if build_delta > _CI_START_THRESHOLD and self._build_in_queue(pr, build_number):
message = ('ONNX CI job build #{}, for PR #{} waiting in queue after {} '
'minutes'.format(build_number, pr_number, str(build_delta.seconds / 60)))
self._queue_message(message, message_severity='warning', pr=pr)
elif build_delta > _BUILD_DURATION_THRESHOLD:
# CI job take too long, possibly froze - communicate failure
message = ('ONNX CI job build #{}, for PR #{} started, '
'but did not finish in designated time of {} '
'minutes!'.format(build_number, pr_number,
str(_BUILD_DURATION_THRESHOLD.seconds / 60)))
self._queue_message(message, message_severity='error', pr=pr)
def _update_config(self):
"""Update Watchdog config file with PRs checked in current Watchdog run, remove old entries.
:param current_prs: List of PR numbers checked during current Watchdog run
:type current_prs: list of ints
"""
# Cleanup config of old reports
log.info('Writing to config file at: {}'.format(self._config_path))
new_config = {_PR_REPORTS_CONFIG_KEY: self._current_prs}
file = open(self._config_path, 'w+')
json.dump(new_config, file)
+1 -2
View File
@@ -7,7 +7,7 @@ updates:
directory: "/src/bindings/python"
schedule:
interval: weekly
day: monday
day: sunday
time: "13:00"
open-pull-requests-limit: 0
reviewers:
@@ -15,4 +15,3 @@ updates:
- akuporos
labels:
- "category: dependencies"
+4 -5
View File
@@ -5,11 +5,10 @@
"IGNORE_LOGINS": [
"openvino-ci",
"openvino-pushbot",
"lab-nerval",
"lab-nerval-onnx-ci",
"onnx-watchdog-agent",
"workbench-ci-bot",
"openvino-pot-ci"
"openvino-pot-ci",
"sysicvvpux",
"ote-ci-bot"
],
"MAX_MEMBERS_TO_REMOVE": 15,
"EMAILS_FILE_PATH": "dev_emails-test.txt",
@@ -28,7 +27,7 @@
"openvino-ie-gna-maintainers": "category: GNA",
"openvino-ie-gpu-maintainers": "category: GPU",
"openvino-ie-lpt-maintainers": "category: LP transformations",
"openvino-ie-multi-maintainers": "category: MULTI",
"openvino-ie-auto-multi-maintainers": "category: MULTI",
"openvino-ie-python-api-maintainers": "category: python api",
"openvino-ie-template-maintainers": "category: TEMPLATE",
"openvino-ie-tests-maintainers": "category: IE Tests",
+1 -1
View File
@@ -14,7 +14,7 @@ import json
from pathlib import Path
if sys.hexversion < 0x3060000:
if sys.version_info[:2] < (3, 6):
raise Exception("Python version must be >= 3.6")
+1 -1
View File
@@ -157,7 +157,7 @@ class GithubOrgApi:
self.github_users_by_email[email] = org_member
if not is_valid_name(org_member.name):
self.members_to_fix_name.add(org_member)
elif not is_user_ignored(org_member):
else:
self.members_to_remove.add(org_member)
print("\nOrg members - no Intel emails:")
+11 -7
View File
@@ -1,10 +1,14 @@
name: Documentation
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Build_Doc:
if: github.repository == 'openvinotoolkit/openvino'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone OpenVINO
uses: actions/checkout@v2
@@ -17,11 +21,11 @@ jobs:
set -e
# install doc dependencies
sudo apt update
sudo apt --assume-yes install libusb-1.0-0-dev graphviz texlive
sudo apt --assume-yes install libusb-1.0-0-dev graphviz texlive liblua5.2-0
cd docs
python -m pip install -r requirements.txt --user
python3 -m pip install -r requirements.txt --user
cd openvino_sphinx_theme
python setup.py install --user
python3 setup.py install --user
cd ../..
# install doxyrest
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.3/doxyrest-2.1.3-linux-amd64.tar.xz
@@ -43,11 +47,11 @@ jobs:
run: |
mkdir build
cd build
cmake -DENABLE_DOCS=ON -DENABLE_PYTHON=ON -DNGRAPH_PYTHON_BUILD_ENABLE=ON -DCMAKE_BUILD_TYPE=Release ..
cmake -DENABLE_DOCS=ON -DENABLE_PYTHON=ON -DCMAKE_BUILD_TYPE=Release ..
- name: Build doc
run: |
cmake --build . --target sphinx_docs -j8
cmake --build . --target sphinx_docs -j`nproc`
working-directory: build
- name: Archive HTML
+5 -1
View File
@@ -1,9 +1,13 @@
name: PR Commits
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Checks:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone OpenVINO
uses: actions/checkout@v2
+48
View File
@@ -0,0 +1,48 @@
name: Code snippets
on:
push:
paths:
- '.github/workflows/code_snippets.yml'
- 'docs/snippets/**'
pull_request:
paths:
- '.github/workflows/code_snippets.yml'
- 'docs/snippets/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Build:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-22.04', 'macos-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- name: Clone OpenVINO
uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- name: Check cmake
run: |
which cmake
cmake --version
- name: CMake
run: |
mkdir build
cd build
cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -DCMAKE_BUILD_TYPE=Release ..
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores
- name: Build snippets
run: |
cmake --build . --target ie_docs_snippets -j${{ steps.cpu-cores.outputs.count }}
working-directory: build
+17 -7
View File
@@ -1,6 +1,10 @@
name: Code Style
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
clang-format:
runs-on: ubuntu-20.04
@@ -37,18 +41,24 @@ jobs:
- name: Create code style diff
if: failure()
run: |
cmake --build . --target clang_format_fix_all -j8
cmake --build build --target clang_format_fix_all -j8
git diff > code_style_diff.diff
working-directory: build
- name: suggester / clang-format
if: failure() && startsWith(github.event_name, 'pull_request')
uses: reviewdog/action-suggester@v1
with:
level: error
tool_name: clang-format
- uses: actions/upload-artifact@v2
if: failure()
with:
name: code_style_diff
path: build/code_style_diff.diff
path: code_style_diff.diff
ShellCheck:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
@@ -73,7 +83,7 @@ jobs:
working-directory: build
NamingConventionCheck:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
@@ -82,8 +92,8 @@ jobs:
- name: Install Clang dependency
run: |
sudo apt update
sudo apt --assume-yes remove clang-7 clang-8 clang-9 clang-10 clang-11
sudo apt --assume-yes install libclang-12-dev
sudo apt --assume-yes remove clang-7 clang-8 clang-9 clang-10 clang-11 clang-12 clang-13
sudo apt --assume-yes install libclang-14-dev
- name: Install Python-based dependencies
run: python3 -m pip install -r cmake/developer_package/ncc_naming_style/requirements_dev.txt
+5 -1
View File
@@ -1,9 +1,13 @@
name: Files Size
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Check_Files_Size:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
+6 -2
View File
@@ -7,9 +7,13 @@ on:
paths:
- 'openvino/tools/mo/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Pylint-UT:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
@@ -18,7 +22,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.7
- name: Cache pip
uses: actions/cache@v1
+67 -15
View File
@@ -1,4 +1,4 @@
name: IE Python Checks
name: Python API Checks
on:
workflow_dispatch:
@@ -6,13 +6,20 @@ on:
paths:
- 'src/bindings/python/**'
- 'samples/python/**'
- '.github/workflows/py_checks.yml'
pull_request:
paths:
- 'src/bindings/python/**'
- 'samples/python/**'
- '.github/workflows/py_checks.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linters:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Code checkout
uses: actions/checkout@v2
@@ -21,10 +28,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.6'
python-version: '3.7'
- name: Install dependencies
run: python -m pip install -r src/bindings/python/src/compatibility/openvino/requirements_dev.txt
- name: Run Flake on samples
run: python -m pip install -r src/bindings/python/requirements_test.txt
# samples code-style
- name: Run flake8 on samples
run: python -m flake8 ./ --config=setup.cfg
working-directory: samples/python
- name: Create code style diff for samples
@@ -38,21 +46,53 @@ jobs:
with:
name: samples_diff
path: samples_diff.diff
- name: Run Flake on src
# IE Python API Flake code-style
- name: Run flake8 on IE Python API
run: python -m flake8 ./ --config=setup.cfg
working-directory: src/bindings/python/src/compatibility/openvino
- name: Create code style diff for Python src
- name: Create code style diff for IE Python API
if: failure()
run: |
python -m black -l 160 -S ./
git diff > src_diff.diff
git diff > ie_python_diff.diff
working-directory: src/bindings/python/src/compatibility/openvino
- uses: actions/upload-artifact@v2
if: failure()
with:
name: src_diff
path: src_diff.diff
- name: Run Flake on wheel
name: ie_python_diff
path: ie_python_diff.diff
# nGraph Python API Flake code-style
- name: Run flake8 on nGraph Python API
run: python -m flake8 ./src/compatibility/ngraph --config=setup.cfg
working-directory: src/bindings/python
- name: Create code style diff for nGraph Python API
if: failure()
run: |
python -m black -l 160 -S ./
git diff > pyngraph_diff.diff
working-directory: src/bindings/python/src/compatibility/ngraph
- uses: actions/upload-artifact@v2
if: failure()
with:
name: pyngraph_diff
path: pyngraph_diff.diff
# Python API 2.0 Flake code-style
- name: Run flake8 on Python API 2.0
run: python -m flake8 ./src/openvino --config=setup.cfg
working-directory: src/bindings/python
- name: Create code style diff for Python API 2.0
if: failure()
run: |
python -m black -l 160 -S ./
git diff > pyopenvino_diff.diff
working-directory: src/bindings/python/src/openvino
- uses: actions/upload-artifact@v2
if: failure()
with:
name: pyopenvino_diff
path: pyopenvino_diff.diff
# wheel Flake code-style
- name: Run flake8 on wheel
run: python -m flake8 ./ --config=../setup.cfg
working-directory: src/bindings/python/wheel
- name: Create code style diff for wheel
@@ -66,12 +106,24 @@ jobs:
with:
name: wheel_diff
path: wheel_diff.diff
- name: Run MyPy
# Python API 2.0 tests Flake code-style
- name: Run flake8 on python tests
# ignore lack of docs in tests
run: python -m flake8 tests/ --config=setup.cfg
working-directory: src/bindings/python
# IE Python API mypy check
- name: Run mypy on IE Python API
run: python -m mypy ./ --config-file ./setup.cfg
working-directory: src/bindings/python/src/compatibility/openvino
# nGraph Python API mypy check
- name: Run mypy on nGraph Python API
run: python -m mypy ./src/compatibility/ngraph --config-file ./setup.cfg
working-directory: src/bindings/python
# Python API 2.0 mypy check
- name: Run mypy on Python API 2.0
run: python -m mypy ./src/openvino --config-file ./setup.cfg
working-directory: src/bindings/python
- name: Run Bandit
run: python -m bandit -r ./ -f screen
working-directory: src/bindings/python/src/compatibility/openvino
+5 -9
View File
@@ -1,5 +1,8 @@
# build/artifact dirs
_*
[Bb]uild*/
cmake-build*
# but ensure we don't skip __init__.py and __main__.py
!__init__.py
!__main__.py
@@ -9,23 +12,17 @@ _*
# developer tools
*.idea
.vscode
cmake-build-*
.DS_Store
**/tags
compile_commands.json
bin/
build/
.local_vimrc
.gdb_history
.vimspector.json
doc/
!ngraph/doc
docs/build_documentation/work_dir/
inference-engine/plugins/
inference-engine/report
temp/
.repo/
docs/template_plugin/html/
CMakeLists.txt.user
docs/IE_PLUGIN_DG/html/
@@ -34,14 +31,13 @@ docs/IE_PLUGIN_DG/html/
*.pydevproject
*.settings
*/gen/
__pycache__
*.swp
/config.xml
# Python-specific
*.env3
*.?env*
*.pyc
__pycache__
# Tests-specific
*.coverage
*htmlcov
+2 -2
View File
@@ -1,5 +1,5 @@
[submodule "src/plugins/intel_cpu/thirdparty/mkl-dnn"]
path = src/plugins/intel_cpu/thirdparty/mkl-dnn
[submodule "src/plugins/intel_cpu/thirdparty/onednn"]
path = src/plugins/intel_cpu/thirdparty/onednn
url = https://github.com/openvinotoolkit/oneDNN.git
ignore = dirty
[submodule "thirdparty/xbyak"]
+21 -7
View File
@@ -4,16 +4,24 @@
if(DEFINED BUILD_SHARED_LIBS AND NOT BUILD_SHARED_LIBS)
# 'target_link_libraries' does not work correctly when called from
# different directly where 'add_library' is called: CMake generates
# different directory where 'add_library' is called: CMake generates
# incorrect OpenVINOConfig.cmake in this case
cmake_minimum_required(VERSION 3.17)
else()
cmake_minimum_required(VERSION 3.13)
if(CPACK_GENERATOR STREQUAL "DEB")
# we have to use CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS variable
cmake_minimum_required(VERSION 3.20)
else()
# default choice
cmake_minimum_required(VERSION 3.13)
endif()
endif()
project(OpenVINO DESCRIPTION "OpenVINO toolkit")
set(IE_MAIN_SOURCE_DIR ${OpenVINO_SOURCE_DIR}/inference-engine)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "CMake build type" FORCE)
endif()
find_package(IEDevScripts REQUIRED
PATHS "${OpenVINO_SOURCE_DIR}/cmake/developer_package"
@@ -49,6 +57,7 @@ file(REMOVE "${CMAKE_BINARY_DIR}/InferenceEngineTargets.cmake")
file(REMOVE "${CMAKE_BINARY_DIR}/OpenVINOTargets.cmake")
foreach(component IN LISTS openvino_export_components)
file(REMOVE "${CMAKE_BINARY_DIR}/${component}_dev_targets.cmake")
file(REMOVE "${CMAKE_BINARY_DIR}/ov_${component}_dev_targets.cmake")
unset(${component} CACHE)
endforeach()
unset(openvino_export_components CACHE)
@@ -72,7 +81,7 @@ function(openvino_developer_export_targets)
get_target_property(original_name ${target_name} ALIASED_TARGET)
if(TARGET "${original_name}")
message(STATUS "The name ${target_name} is an ALIAS for ${original_name}. "
"It will be exported to the InferenceEngineDeveloperPackage with the original name.")
"It will be exported to the OpenVINODeveloperPackage with the original name.")
list(REMOVE_ITEM ${EXPORT_COMPONENT} ${target_name})
list(APPEND ${EXPORT_COMPONENT} ${original_name})
endif()
@@ -90,15 +99,17 @@ function(openvino_developer_export_targets)
endfunction()
# add target with processed tests model zoo
include(cmake/test_model_zoo.cmake)
if (ENABLE_TESTS)
include(cmake/test_model_zoo.cmake)
endif()
add_subdirectory(thirdparty)
add_subdirectory(src)
add_subdirectory(samples)
# Enable interpreter backend
# Enable interpreter backend for tests
if (ENABLE_TESTS OR ENABLE_TEMPLATE)
add_subdirectory(docs/template_plugin/backend)
add_subdirectory(src/plugins/template/backend)
endif()
include(cmake/extra_modules.cmake)
add_subdirectory(docs)
@@ -110,4 +121,7 @@ add_subdirectory(licensing)
# CPack
#
# provides a callback function to describe each component in repo
include(cmake/packaging/packaging.cmake)
ie_cpack(${IE_CPACK_COMPONENTS_ALL})
+60 -37
View File
@@ -17,6 +17,7 @@ Jenkinsfile @openvinotoolkit/openvino-admins
# QA Tests:
/tests/ @openvinotoolkit/openvino-tests-maintainers
/tests/layer_tests @openvinotoolkit/openvino-tests-maintainers @openvinotoolkit/openvino-mo-maintainers
# Tools:
/tools/ @openvinotoolkit/openvino-tools-maintainers
@@ -27,61 +28,83 @@ Jenkinsfile @openvinotoolkit/openvino-admins
# POT:
/tools/pot/ @openvinotoolkit/openvino-pot-maintainers
# IE Core:
/inference-engine/ @openvinotoolkit/openvino-ie-maintainers
# OpenVINO Core:
/src/inference/ @openvinotoolkit/openvino-ie-maintainers
/cmake/ @openvinotoolkit/openvino-ie-maintainers
/src/cmake/ @openvinotoolkit/openvino-ie-maintainers
CMakeLists.txt @openvinotoolkit/openvino-ie-maintainers
*cmake @openvinotoolkit/openvino-ie-maintainers
/src/common/cc/ @openvinotoolkit/openvino-ie-maintainers
/src/common/itt/ @openvinotoolkit/openvino-ie-maintainers
/src/common/legacy/ @openvinotoolkit/openvino-ie-maintainers
/src/common/preprocessing/ @openvinotoolkit/openvino-ie-maintainers
/src/common/util/ @openvinotoolkit/openvino-ie-maintainers
/thirdparty/ @openvinotoolkit/openvino-ie-maintainers
/scripts/ @openvinotoolkit/openvino-ie-maintainers
/src/bindings/python/ @openvinotoolkit/openvino-ie-python-api-maintainers
/src/common/transformations/ @GlebKazantaev @ilyachur
/src/common/legacy/ @openvinotoolkit/openvino-ngraph-maintainers
/src/common/ @openvinotoolkit/openvino-ie-maintainers
/src/bindings/c/ @openvinotoolkit/openvino-c-api-maintainers
/src/common/*transformations/ @openvinotoolkit/openvino-ie-transformations-maintainers
/src/core/ @openvinotoolkit/openvino-ngraph-maintainers
/src/frontends/ @openvinotoolkit/openvino-ngraph-maintainers
/src/tests_deprecated/readers/ @openvinotoolkit/openvino-ngraph-maintainers
# IE CPU:
# OpenVINO CPU:
/src/plugins/intel_cpu/ @openvinotoolkit/openvino-ie-cpu-maintainers @openvinotoolkit/openvino-ie-cpu-developers
/src/common/low_precision_transformations/ @openvinotoolkit/openvino-ie-cpu-maintainers @openvinotoolkit/openvino-ie-cpu-developers
/src/plugins/intel_cpu/thirdparty/mkl-dnn/ @openvinotoolkit/openvino-ie-cpu-maintainers @openvinotoolkit/openvino-ie-cpu-developers
/src/common/snippets/ @openvinotoolkit/openvino-ie-cpu-maintainers
/src/tests/**cpu** @openvinotoolkit/openvino-ie-cpu-maintainers
# IE GPU:
# OpenVINO LPT
/src/common/low_precision_transformations/ @openvinotoolkit/openvino-ie-lpt-maintainers
# OpenVINO GPU:
/src/plugins/intel_gpu/ @openvinotoolkit/openvino-ie-gpu-maintainers @openvinotoolkit/openvino-ie-gpu-developers
/src/tests/**gpu** @openvinotoolkit/openvino-ie-gpu-maintainers
/src/inference/include/ie/gpu/ @openvinotoolkit/openvino-ie-gpu-maintainers @openvinotoolkit/openvino-ie-gpu-developers
/src/inference/include/ie/cldnn/ @openvinotoolkit/openvino-ie-gpu-maintainers @openvinotoolkit/openvino-ie-gpu-developers
/src/inference/include/openvino/runtime/intel_gpu/ @openvinotoolkit/openvino-ie-gpu-maintainers @openvinotoolkit/openvino-ie-gpu-developers
/src/plugins/intel_gpu/ @openvinotoolkit/openvino-ie-gpu-maintainers @openvinotoolkit/openvino-ie-gpu-developers
# IE VPU:
# OpenVINO VPU:
/src/plugins/intel_myriad @openvinotoolkit/openvino-ie-vpu-maintainers
/src/inference/include/ie/vpu/ @openvinotoolkit/openvino-ie-vpu-maintainers
/src/tests_deprecated/unit/engines/vpu/ @openvinotoolkit/openvino-ie-vpu-maintainers @openvinotoolkit/openvino-ie-tests-maintainers
/src/tests_deprecated/functional/vpu/ @openvinotoolkit/openvino-ie-vpu-maintainers @openvinotoolkit/openvino-ie-tests-maintainers
/src/tests_deprecated/behavior/vpu/ @openvinotoolkit/openvino-ie-vpu-maintainers @openvinotoolkit/openvino-ie-tests-maintainers
/src/tests/functional/plugin/myriad/ @openvinotoolkit/openvino-ie-vpu-maintainers @openvinotoolkit/openvino-ie-tests-maintainers
/src/tests/unit/vpu/ @openvinotoolkit/openvino-ie-vpu-maintainers @openvinotoolkit/openvino-ie-tests-maintainers
/src/tests/unit/engines/vpu/ @openvinotoolkit/openvino-ie-vpu-maintainers @openvinotoolkit/openvino-ie-tests-maintainers
/inference-engine/scripts/run_tests_myriad_multistick.sh @openvinotoolkit/openvino-ie-vpu-maintainers
/src/tests/**myriad** @openvinotoolkit/openvino-ie-vpu-maintainers
/src/inference/include/ie/vpu/ @openvinotoolkit/openvino-ie-vpu-maintainers
# IE GNA:
# OpenVINO GNA:
/src/plugins/intel_gna/ @openvinotoolkit/openvino-ie-gna-maintainers
/src/inference/include/ie/gna/ @openvinotoolkit/openvino-ie-gna-maintainers
/src/tests/**gna** @openvinotoolkit/openvino-ie-gna-maintainers
# IE Auto (MULTI) plugin:
# OpenVINO ARM CPU:
/docs/OV_Runtime_UG/supported_plugins/ARM_CPU.md @openvinotoolkit/openvino_contrib-arm_plugin-maintainers
# OpenVINO Auto (MULTI) plugin:
/src/plugins/auto/ @openvinotoolkit/openvino-ie-auto-multi-maintainers
/src/inference/include/ie/multi-device/ @openvinotoolkit/openvino-ie-auto-multi-maintainers
# IE Paddle frontend:
# OpenVINO Auto (Batch) plugin:
/src/plugins/auto_batch/ @openvinotoolkit/openvino-auto-batch-maintainers
# OpenVINO Hetero plugin:
/src/plugins/hetero/ @openvinotoolkit/openvino-hetero-maintainers
# OpenVINO Frontends:
/src/frontends/common/ @openvinotoolkit/openvino-common-frontend-maintainers
/src/frontends/ir/ @openvinotoolkit/openvino-ir-frontend-maintainers
/src/frontends/onnx/ @openvinotoolkit/openvino-onnx-frontend-maintainers
/src/frontends/tests/onnx/ @openvinotoolkit/openvino-onnx-frontend-maintainers
/src/frontends/paddle/ @openvinotoolkit/openvino-ie-paddle-maintainers
/src/frontends/tensorflow/ @openvinotoolkit/openvino-tf-frontend-maintainers
# IE Tests:
/src/tests/ @openvinotoolkit/openvino-ie-tests-maintainers
/src/tests_deprecated/ @openvinotoolkit/openvino-ie-tests-maintainers
/src/tests/functional/inference_engine/ngraph_reader/ @openvinotoolkit/openvino-ie-tests-maintainers @openvinotoolkit/openvino-ngraph-maintainers
/src/tests/functional/inference_engine/transformations/ @openvinotoolkit/openvino-ie-tests-maintainers @openvinotoolkit/openvino-ngraph-maintainers
# OpenVINO Tests:
/src/tests/ @openvinotoolkit/openvino-ie-tests-maintainers @openvinotoolkit/openvino-ie-test-developers
/src/tests_deprecated/ @openvinotoolkit/openvino-ie-tests-maintainers @openvinotoolkit/openvino-ie-test-developers
/src/frontends/tests/frontend/shared/ @openvinotoolkit/openvino-ie-tests-maintainers
# Documentation:
/docs/ @openvinotoolkit/openvino-docs-maintainers
/docs/template_plugin/ @openvinotoolkit/openvino-ie-template-maintainers
*.md @openvinotoolkit/openvino-docs-maintainers
/docs/MO_DG @openvinotoolkit/openvino-mo-maintainers @openvinotoolkit/openvino-docs-maintainers
*.md @openvinotoolkit/openvino-docs-maintainers
README @openvinotoolkit/openvino-docs-maintainers
/src/plugins/template/ @openvinotoolkit/openvino-ie-template-maintainers
# Control 3d party dependencies
**/*requirements*.* @openvino-configuration-mgmt
**/setup.py @openvino-configuration-mgmt
/scripts/install_dependencies/ @openvino-configuration-mgmt
**/*requirements*.* @openvinotoolkit/openvino-configuration-mgmt
**/setup.py @openvinotoolkit/openvino-configuration-mgmt
/scripts/install_dependencies/ @openvinotoolkit/openvino-configuration-mgmt
+22 -35
View File
@@ -1,68 +1,55 @@
# How to contribute to the OpenVINO repository
We suppose that you are an enthusiastic coder, want to contribute some code. For that purpose OpenVINO project now has a repository on the GitHub, to simplify everybody's life! All the bug fixes, new functionality, new tutorials etc. should be submitted via the GitHub's mechanism of pull requests.
We welcome community contributions to OpenVINO™. Please read the following guide to learn how to find ideas for contribution, practices for good pull requests, checking your changes with our tests and more.
If you are not familiar with the mechanism - do not worry, it's very simple. Keep reading.
## Before you start contributing you should
- Make sure you agree to contribute your code under [OpenVINO (Apache 2.0)](https://github.com/openvinotoolkit/openvino/blob/master/LICENSE) license.
- If you are submitting a new module, you should go into [openvino_contrib](https://github.com/openvinotoolkit/openvino_contrib) repository by default.
- If you are going to fix a bug, check that it's still exists. This can be done by building the latest [releases/2020/3](https://github.com/openvinotoolkit/openvino/tree/releases/2020/3) branch (LTS release) or the latest master branch, and make sure that the error is still reproducible there. We do not fix bugs that only affect older non-LTS releases like 2020.2 for example (more details about [branching strategy](https://github.com/openvinotoolkit/openvino/wiki/Branches))
- Make sure that nobody beat you into fixing or reporting the issue by doing a search on the [Github OpenVINO issues](https://github.com/openvinotoolkit/openvino/issues) page, and making sure that there isn't someone working on it. In the latter case you might provide support or suggestion in the issue or in the linked pull request.
- If you have a question about the software, then this is **NOT** the right place. You should open up a question at the [OpenVINO forum](https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/bd-p/distribution-openvino-toolkit). In order to post a decent question from the start, feel free to read the official forum guidelines.
- Make sure you agree to contribute your code under [OpenVINO (Apache 2.0)](https://github.com/openvinotoolkit/openvino/blob/master/LICENSE) license.
- Figure out what youre going to contribute. If you dont know what you are going to work on, navigate to the [Github "Issues" tab](https://github.com/openvinotoolkit/openvino/issues). Make sure that there isn't someone working on it. In the latter case you might provide support or suggestion in the issue or in the linked pull request.
- If you are going to fix a bug, check that it's still exists in the latest release. This can be done by building the latest master branch, and make sure that the error is still reproducible there. We do not fix bugs that only affect older non-LTS releases like 2020.2 for example (more details about [branching strategy](https://github.com/openvinotoolkit/openvino/wiki/Branches)).
Before you open up anything on the OpenVINO GitHub page, be sure that you are at the right place with your problem.
## "Fork & Pull Request model" for code contribution
### [](https://github.com/openvinotoolkit/openvino/wiki/Contribute#the-instruction-in-brief)The instruction in brief
### [](https://github.com/openvinotoolkit/openvino/blob/master/CONTRIBUTING.md#the-instruction-in-brief)The instruction in brief
- Register at GitHub. Create your fork of OpenVINO repository [https://github.com/openvinotoolkit/openvino](https://github.com/openvinotoolkit/openvino) (see [https://help.github.com/articles/fork-a-repo](https://help.github.com/articles/fork-a-repo) for details).
- Register at GitHub. Create your fork of OpenVINO repository [https://github.com/openvinotoolkit/openvino](https://github.com/openvinotoolkit/openvino) (see [https://help.github.com/articles/fork-a-repo](https://help.github.com/articles/fork-a-repo) for details).
- Install Git.
- Set your user name and email address in a Git configuration according to GitHub account (see [https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) for details).
- Choose a task for yourself. It could be a bugfix or some new code.
- Choose a base branch for your work. More details about branches and policies are here: [Branches](https://github.com/openvinotoolkit/openvino/wiki/Branches)
- Clone your fork to your computer.
- Create a new branch (with a meaningful name) from the base branch you chose.
- Modify / add the code following our [Coding Style Guide](https://github.com/openvinotoolkit/openvino/wiki/CodingStyleGuideLines) and [Documentation guidelines](https://github.com/openvinotoolkit/openvino/wiki/CodingStyleGuideLinesDocumentation).
- Modify / add the code following our [Coding Style Guide](./docs/dev/coding_style.md).
- If you want to add a new sample, please look at this [Guide for contributing to C++/C/Python IE samples](https://github.com/openvinotoolkit/openvino/wiki/SampleContribute)
- If you want to contribute to the documentation and want to add a new guide, follow that instruction [Documentation guidelines](https://github.com/openvinotoolkit/openvino/wiki/CodingStyleGuideLinesDocumentation)
- Run testsuite locally:
- execute each test binary from the artifacts directory, e.g. `<source dir>/bin/intel64/Release/ieFuncTests`
- If you contribute to the documentation and want to add a new guide:
- Create a new markdown file in an appropriate folder.
- **REQUIRED:** The document title must contain a document label in a form: `{#openvino_docs_<name>}`. For example: `Deep Learning Network Intermediate Representation and Operation Sets in OpenVINO™ {#openvino_docs_MO_DG_IR_and_opsets}`.
- Add your file to the documentation structure. Open the documentation structure file [`docs/doxygen/ie_docs.xml`](https://github.com/openvinotoolkit/openvino/blob/master/docs/doxygen/ie_docs.xml) and add your file path to the appropriate section.
- When you are done, make sure that your branch is to date with latest state of the branch you want to contribute to (e.g. `git fetch upstream && git merge upstream/master`), push your branch to your GitHub fork; then create a pull request from your branch to the base branch (see [https://help.github.com/articles/using-pull-requests](https://help.github.com/articles/using-pull-requests) for details).
## Making a good pull request
Following these guidelines will increase the likelihood of your pull request being accepted:
- Before pushing your PR to the repository, make sure that it builds perfectly fine on your local system.
- Add enough information, like a meaningful title, the reason why you made the commit and a link to the issue page if you opened one for this PR.
- Scope your PR to one issue. Before submitting, make sure the diff contains no unrelated changes. If you want to cover more than one issue, submit your changes for each as separate pull requests.
- If you have added new functionality, you should update/create the relevant documentation, as well as add tests for it to the testsuite.
- Try not to include "oops" commits - ones that just fix an error in the previous commit. If you have those, then before submitting [squash](https://github.com/openvinotoolkit/openvino/wiki/Contribute#https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Squashing-Commits) those fixes directly into the commits where they belong.
- Make sure to choose the right base branch and to follow the [Coding Style Guide](https://github.com/openvinotoolkit/openvino/wiki/CodingStyleGuideLines) for your code or [Documentation guidelines](https://github.com/openvinotoolkit/openvino/wiki/CodingStyleGuideLinesDocumentation) you are changing documentation files.
- Make sure to add test for new functionality or test that reproduces fixed bug with related test data. Please do not add extra images or videos, if some of existing media files are suitable.
- One PR one issue.
- Build perfectly on your local system.
- Choose the right base branch [Branches](https://github.com/openvinotoolkit/openvino/wiki/Branches).
- Follow the [Coding Style Guide](./docs/dev/coding_style.md) for your code.
- Update documentation using [Documentation guidelines](https://github.com/openvinotoolkit/openvino/wiki/CodingStyleGuideLinesDocumentation) if needed.
- Cover your changes with test.
- Add license at the top of new files [C++ example](https://github.com/openvinotoolkit/openvino/blob/master/samples/cpp/classification_sample_async/main.cpp#L1-L2), [Python example](https://github.com/openvinotoolkit/openvino/blob/master/samples/python/hello_classification/hello_classification.py#L3-L4).
- Add enough information: a meaningful title, the reason why you made the commit and a link to the issue page if exists.
- Remove unrelated to PR changes.
- If it is still WIP and you want to check CI test results early then use _Draft_ PR.
- Submit your PR and become an OpenVINO™ contributor!
## Testing and merging pull requests
- Your pull request will be automatically tested by OpenVINO's precommit (testing status are automatically reported as "green" or "red" circles in precommit steps on PR's page). If any builders have failed, you should fix the issue. To rerun the automatic builds just push changes to your branch on GitHub. No need to close pull request and open a new one!
- Once all the builders are "green", one of OpenVINO developers will review your code. Reviewer could ask you to modify your pull request. Please provide timely response for reviewers (within weeks, not months), otherwise you submission could be postponed or even rejected.
Your pull request will be automatically tested by OpenVINO's precommit (testing status are automatically reported as "green" or "red" circles in precommit steps on PR's page). If any builders have failed, you need fix the issue. To rerun the automatic builds just push changes to your branch on GitHub. No need to close pull request and open a new one!
## PR review good practices
- Originator is responsible for driving the review of changes and should ping reviewers periodically.
- Originator should close comments from the Reviewer when it is resolved. The Reviewer may re-open the comment if he does not agree with the resolution.
- Originator should request re-review from the Reviewer when all comments are resolved by pushing the button in the “Reviewers” section.
- If it is still WIP and you want to check CI test results early then use _Draft_ PR.
- Do **NOT** rewrite history (push -f) once you converted draft PR into regular one, add new commits instead. Looking at diffs makes review easier.
- Write meaningful description of commits resulting from review. _"Addressing review comments"_ is **NOT** a good description! Having a quick look at good descriptions can tell you much what is going on in PR without a need to go through all of resolved comments.
## Merging PR
As soon as the reviewer is fine with the pull request and Precommit likes your code and shows "green" status, the "Approved" review status is put, which signals OpenVINO maintainers that they can merge your pull request.
© Copyright 2018-2022, OpenVINO team
When the reviewer accepts the pull request and the pre-commit shows a "green" status, the review status is set to "Approved", which signals to the OpenVINO maintainers that they can merge your pull request.
+189 -31
View File
@@ -1,50 +1,208 @@
# OpenVINO™ Toolkit
[![Stable release](https://img.shields.io/badge/version-2021.4.2-green.svg)](https://github.com/openvinotoolkit/openvino/releases/tag/2021.4.2)
<div align="center">
<img src="docs/img/openvino-logo-purple-black.png" width="400px">
[![Stable release](https://img.shields.io/badge/version-2022.2-green.svg)](https://github.com/openvinotoolkit/openvino/releases/tag/2022.2.0)
[![Apache License Version 2.0](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)
![GitHub branch checks state](https://img.shields.io/github/checks-status/openvinotoolkit/openvino/master?label=GitHub%20checks)
![Azure DevOps builds (branch)](https://img.shields.io/azure-devops/build/openvinoci/b2bab62f-ab2f-4871-a538-86ea1be7d20f/13?label=Public%20CI)
[![PyPI Status](https://badge.fury.io/py/openvino.svg)](https://badge.fury.io/py/openvino)
[![PyPI Downloads](https://pepy.tech/badge/openvino)](https://pepy.tech/project/openvino)
</div>
This toolkit allows developers to deploy pre-trained deep learning models
through a high-level OpenVINO™ Runtime C++ and Python APIs integrated with application logic.
## Contents:
This open source version includes several components: namely [Model Optimizer], [OpenVINO™ Runtime], [Post-Training Optimization Tool], as well as CPU, GPU, MYRIAD, multi device and heterogeneous plugins to accelerate deep learning inferencing on Intel® CPUs and Intel® Processor Graphics.
It supports pre-trained models from the [Open Model Zoo], along with 100+ open
- [What is OpenVINO?](#what-is-openvino-toolkit)
- [Components](#components)
- [Supported Hardware matrix](#supported-hardware-matrix)
- [License](#license)
- [Documentation](#documentation)
- [Tutorials](#tutorials)
- [Products which use OpenVINO](#products-which-use-openvino)
- [System requirements](#system-requirements)
- [How to build](#how-to-build)
- [How to contribute](#how-to-contribute)
- [Get a support](#get-a-support)
- [See also](#see-also)
## What is OpenVINO toolkit?
OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference.
- Boost deep learning performance in computer vision, automatic speech recognition, natural language processing and other common tasks
- Use models trained with popular frameworks like TensorFlow, PyTorch and more
- Reduce resource demands and efficiently deploy on a range of Intel® platforms from edge to cloud
This open-source version includes several components: namely [Model Optimizer], [OpenVINO™ Runtime], [Post-Training Optimization Tool], as well as CPU, GPU, MYRIAD, multi device and heterogeneous plugins to accelerate deep learning inference on Intel® CPUs and Intel® Processor Graphics.
It supports pre-trained models from [Open Model Zoo], along with 100+ open
source and public models in popular formats such as TensorFlow, ONNX, PaddlePaddle, MXNet, Caffe, Kaldi.
## Repository components
* [OpenVINO™ Runtime]
* [Model Optimizer]
* [Post-Training Optimization Tool]
### Components
* [OpenVINO™ Runtime] - is a set of C++ libraries with C and Python bindings providing a common API to deliver inference solutions on the platform of your choice.
* [core](./src/core) - provides the base API for model representation and modification.
* [inference](./src/inference) - provides an API to infer models on the device.
* [transformations](./src/common/transformations) - contains the set of common transformations which are used in OpenVINO plugins.
* [low precision transformations](./src/common/low_precision_transformations) - contains the set of transformations that are used in low precision models
* [bindings](./src/bindings) - contains all available OpenVINO bindings which are maintained by the OpenVINO team.
* [c](./src/bindings/c) - C API for OpenVINO™ Runtime
* [python](./src/bindings/python) - Python API for OpenVINO™ Runtime
* [Plugins](./src/plugins) - contains OpenVINO plugins which are maintained in open-source by the OpenVINO team. For more information, take a look at the [list of supported devices](#supported-hardware-matrix).
* [Frontends](./src/frontends) - contains available OpenVINO frontends that allow reading models from the native framework format.
* [Model Optimizer] - is a cross-platform command-line tool that facilitates the transition between training and deployment environments, performs static model analysis, and adjusts deep learning models for optimal execution on end-point target devices.
* [Post-Training Optimization Tool] - is designed to accelerate the inference of deep learning models by applying special methods without model retraining or fine-tuning, for example, post-training 8-bit quantization.
* [Samples] - applications in C, C++ and Python languages that show basic OpenVINO use cases.
## Supported Hardware matrix
The OpenVINO™ Runtime can infer models on different hardware devices. This section provides the list of supported devices.
<table>
<thead>
<tr>
<th>Device</th>
<th>Plugin</th>
<th>Library</th>
<th>ShortDescription</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan=2>CPU</td>
<td> <a href="https://docs.openvino.ai/nightly/openvino_docs_OV_UG_supported_plugins_CPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-c-p-u">Intel CPU</a></tb>
<td><b><i><a href="./src/plugins/intel_cpu">openvino_intel_cpu_plugin</a></i></b></td>
<td>Intel Xeon with Intel® Advanced Vector Extensions 2 (Intel® AVX2), Intel® Advanced Vector Extensions 512 (Intel® AVX-512), and AVX512_BF16, Intel Core Processors with Intel AVX2, Intel Atom Processors with Intel® Streaming SIMD Extensions (Intel® SSE)</td>
</tr>
<tr>
<td> <a href="https://docs.openvino.ai/nightly/openvino_docs_OV_UG_supported_plugins_ARM_CPU.html">ARM CPU</a></tb>
<td><b><i><a href="https://github.com/openvinotoolkit/openvino_contrib/tree/master/modules/arm_plugin">openvino_arm_cpu_plugin</a></i></b></td>
<td>Raspberry Pi™ 4 Model B, Apple® Mac mini with M1 chip, NVIDIA® Jetson Nano™, Android™ devices
</tr>
<tr>
<td>GPU</td>
<td><a href="https://docs.openvino.ai/nightly/openvino_docs_OV_UG_supported_plugins_GPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-g-p-u">Intel GPU</a></td>
<td><b><i><a href="./src/plugins/intel_gpu">openvino_intel_gpu_plugin</a></i></b></td>
<td>Intel Processor Graphics, including Intel HD Graphics and Intel Iris Graphics</td>
</tr>
<tr>
<td>GNA</td>
<td><a href="https://docs.openvino.ai/nightly/openvino_docs_OV_UG_supported_plugins_GNA.html#doxid-openvino-docs-o-v-u-g-supported-plugins-g-n-a">Intel GNA</a></td>
<td><b><i><a href="./src/plugins/intel_gna">openvino_intel_gna_plugin</a></i></b></td>
<td>Intel Speech Enabling Developer Kit, Amazon Alexa* Premium Far-Field Developer Kit, Intel Pentium Silver J5005 Processor, Intel Pentium Silver N5000 Processor, Intel Celeron J4005 Processor, Intel Celeron J4105 Processor, Intel Celeron Processor N4100, Intel Celeron Processor N4000, Intel Core i3-8121U Processor, Intel Core i7-1065G7 Processor, Intel Core i7-1060G7 Processor, Intel Core i5-1035G4 Processor, Intel Core i5-1035G7 Processor, Intel Core i5-1035G1 Processor, Intel Core i5-1030G7 Processor, Intel Core i5-1030G4 Processor, Intel Core i3-1005G1 Processor, Intel Core i3-1000G1 Processor, Intel Core i3-1000G4 Processor</td>
</tr>
<tr>
<td>VPU</td>
<td><a href="https://docs.openvino.ai/nightly/openvino_docs_IE_DG_supported_plugins_VPU.html#doxid-openvino-docs-i-e-d-g-supported-plugins-v-p-u">Myriad plugin</a></td>
<td><b><i><a href="./src/plugins/intel_myriad">openvino_intel_myriad_plugin</a></i></b></td>
<td>Intel® Neural Compute Stick 2 powered by the Intel® Movidius™ Myriad™ X</td>
</tr>
</tbody>
</table>
OpenVINO™ Toolkit also contains several plugins which simplify loading models on several hardware devices:
<table>
<thead>
<tr>
<th>Plugin</th>
<th>Library</th>
<th>ShortDescription</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://docs.openvino.ai/nightly/openvino_docs_IE_DG_supported_plugins_AUTO.html#doxid-openvino-docs-i-e-d-g-supported-plugins-a-u-t-o">Auto</a></td>
<td><b><i><a href="./src/plugins/auto">openvino_auto_plugin</a></i></b></td>
<td>Auto plugin enables selecting Intel device for inference automatically</td>
</tr>
<tr>
<td><a href="https://docs.openvino.ai/nightly/openvino_docs_OV_UG_Automatic_Batching.html">Auto Batch</a></td>
<td><b><i><a href="./src/plugins/auto_batch">openvino_auto_batch_plugin</a></i></b></td>
<td>Auto batch plugin performs on-the-fly automatic batching (i.e. grouping inference requests together) to improve device utilization, with no programming effort from the user</td>
</tr>
<tr>
<td><a href="https://docs.openvino.ai/nightly/openvino_docs_OV_UG_Hetero_execution.html#doxid-openvino-docs-o-v-u-g-hetero-execution">Hetero</a></td>
<td><b><i><a href="./src/plugins/hetero">openvino_hetero_plugin</a></i></b></td>
<td>Heterogeneous execution enables automatic inference splitting between several devices</td>
</tr>
<tr>
<td><a href="https://docs.openvino.ai/nightly/openvino_docs_OV_UG_Running_on_multiple_devices.html#doxid-openvino-docs-o-v-u-g-running-on-multiple-devices">Multi</a></td>
<td><b><i><a href="./src/plugins/auto">openvino_auto_plugin</a></i></b></td>
<td>Multi plugin enables simultaneous inference of the same model on several devices in parallel</td>
</tr>
</tbody>
</table>
## License
Deep Learning Deployment Toolkit is licensed under [Apache License Version 2.0](LICENSE).
By contributing to the project, you agree to the license and copyright terms therein
and release your contribution under these terms.
OpenVINO™ Toolkit is licensed under [Apache License Version 2.0](LICENSE).
By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
## Resources
* Docs: https://docs.openvino.ai/
* Wiki: https://github.com/openvinotoolkit/openvino/wiki
* Issue tracking: https://github.com/openvinotoolkit/openvino/issues
* Storage: https://storage.openvinotoolkit.org/
* Additional OpenVINO™ toolkit modules: https://github.com/openvinotoolkit/openvino_contrib
## Documentation
### User documentation
The latest documentation for OpenVINO™ Toolkit is available [here](https://docs.openvino.ai/). This documentation contains detailed information about all OpenVINO components and provides all the important information you may need to create an application based on binary OpenVINO distribution or own OpenVINO version without source code modification.
### Developer documentation
[Developer documentation](./docs/dev/index.md) contains information about architectural decisions which are applied inside the OpenVINO components. This documentation has all necessary information which could be needed in order to contribute to OpenVINO.
## Tutorials
The list of OpenVINO tutorials:
- [Jupiter notebooks](https://github.com/openvinotoolkit/openvino_notebooks)
## Products which use OpenVINO
- [OpenCV](https://opencv.org/)
- [ONNX Runtime](https://onnxruntime.ai/)
- [OpenVINO™ Integration with TensorFlow](https://www.intel.com/content/www/us/en/developer/tools/devcloud/edge/build/ovtfoverview.html)
- [TNN](https://github.com/Tencent/TNN/tree/master)
## System requirements
The system requirements vary depending on platform and are available on dedicated pages:
- [Linux](https://docs.openvino.ai/nightly/openvino_docs_install_guides_installing_openvino_linux_header.html)
- [Windows](https://docs.openvino.ai/nightly/openvino_docs_install_guides_installing_openvino_windows_header.html)
- [macOS](https://docs.openvino.ai/nightly/openvino_docs_install_guides_installing_openvino_macos_header.html)
- [Raspbian](https://docs.openvino.ai/nightly/openvino_docs_install_guides_installing_openvino_raspbian.html)
## How to build
See the [OpenVINO Wiki](https://github.com/openvinotoolkit/openvino/wiki#how-to-build) to get more information about the OpenVINO build process.
## How to contribute
See [CONTRIBUTING](./CONTRIBUTING.md) for details. Thank you!
## Get a support
Report questions, issues and suggestions, using:
* [GitHub* Issues](https://github.com/openvinotoolkit/openvino/issues)
* The [`openvino`](https://stackoverflow.com/questions/tagged/openvino) tag on StackOverflow\*
* [Forum](https://software.intel.com/en-us/forums/computer-vision)
## Additional Resources
* [OpenVINO Wiki](https://github.com/openvinotoolkit/openvino/wiki)
* [OpenVINO Storage](https://storage.openvinotoolkit.org/)
* Additional OpenVINO™ toolkit modules:
* [openvino_contrib](https://github.com/openvinotoolkit/openvino_contrib)
* [Intel® Distribution of OpenVINO™ toolkit Product Page](https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit.html)
* [Intel® Distribution of OpenVINO™ toolkit Release Notes](https://software.intel.com/en-us/articles/OpenVINO-RelNotes)
## Support
Please report questions, issues and suggestions using:
* The [`openvino`](https://stackoverflow.com/questions/tagged/openvino) tag on StackOverflow\*
* [GitHub* Issues](https://github.com/openvinotoolkit/openvino/issues)
* [Forum](https://software.intel.com/en-us/forums/computer-vision)
* [Neural Network Compression Framework (NNCF)](https://github.com/openvinotoolkit/nncf) - a suite of advanced algorithms for model inference optimization including quantization, filter pruning, binarization and sparsity
* [OpenVINO™ Training Extensions (OTE)](https://github.com/openvinotoolkit/training_extensions) - convenient environment to train Deep Learning models and convert them using OpenVINO for optimized inference.
* [OpenVINO™ Model Server (OVMS)](https://github.com/openvinotoolkit/model_server) - a scalable, high-performance solution for serving deep learning models optimized for Intel architectures
* [DL Workbench](https://docs.openvino.ai/nightly/workbench_docs_Workbench_DG_Introduction.html) - an alternative, web-based version of OpenVINO designed to facilitate optimization and compression of pre-trained deep learning models.
* [Computer Vision Annotation Tool (CVAT)](https://github.com/opencv/cvat) - an online, interactive video and image annotation tool for computer vision purposes.
* [Dataset Management Framework (Datumaro)](https://github.com/openvinotoolkit/datumaro) - a framework and CLI tool to build, transform, and analyze datasets.
---
\* Other names and brands may be claimed as the property of others.
[Open Model Zoo]:https://github.com/openvinotoolkit/open_model_zoo
[OpenVINO™ Runtime]:https://docs.openvino.ai/latest/openvino_docs_OV_Runtime_User_Guide.html
[Model Optimizer]:https://docs.openvino.ai/latest/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html
[Post-Training Optimization Tool]:https://docs.openvino.ai/latest/pot_README.html
[tag on StackOverflow]:https://stackoverflow.com/search?q=%23openvino
[OpenVINO™ Runtime]:https://docs.openvino.ai/nightly/openvino_docs_OV_UG_OV_Runtime_User_Guide.html
[Model Optimizer]:https://docs.openvino.ai/nightly/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html
[Post-Training Optimization Tool]:https://docs.openvino.ai/nightly/pot_introduction.html
[Samples]:https://github.com/openvinotoolkit/openvino/tree/master/samples
+2
View File
@@ -7,6 +7,8 @@ set(CMAKE_SYSTEM_PROCESSOR armv7l)
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
set(CMAKE_STRIP arm-linux-gnueabihf-strip)
set(PKG_CONFIG_EXECUTABLE arm-linux-gnueabihf-pkg-config CACHE PATH "Path to ARM pkg-config")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+2
View File
@@ -7,6 +7,8 @@ set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
set(CMAKE_STRIP aarch64-linux-gnu-strip)
set(PKG_CONFIG_EXECUTABLE aarch64-linux-gnu-pkg-config CACHE PATH "Path to ARM64 pkg-config")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+114 -55
View File
@@ -4,90 +4,149 @@
set(OV_COVERAGE_BASE_DIRECTORY "${OpenVINO_SOURCE_DIR}")
ie_coverage_clean(REPOSITORY "openvino"
ov_coverage_clean(REPOSITORY "openvino"
DIRECTORY "${OV_COVERAGE_GCDA_DATA_DIRECTORY}")
ie_coverage_capture(INFO_FILE "openvino"
ov_coverage_capture(INFO_FILE "openvino"
BASE_DIRECTORY "${OV_COVERAGE_BASE_DIRECTORY}"
DIRECTORY "${OV_COVERAGE_GCDA_DATA_DIRECTORY}")
DIRECTORY "${OV_COVERAGE_GCDA_DATA_DIRECTORY}"
EXCLUDE_PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/*.pb.cc"
"${OV_COVERAGE_BASE_DIRECTORY}/*.pb.h"
"${OV_COVERAGE_BASE_DIRECTORY}/*/tests/*"
"${OV_COVERAGE_BASE_DIRECTORY}/*/tests_deprecated/*"
"${OV_COVERAGE_BASE_DIRECTORY}/thirdparty/*") # Skip some pb files, tests and thirdparty
# Common report
ov_coverage_genhtml(INFO_FILE "openvino"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
# Generate reports
ie_coverage_extract(INPUT "openvino" OUTPUT "inference"
##################### Core Components #####################
ov_coverage_extract(INPUT "openvino" OUTPUT "inference"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/inference/*")
ie_coverage_genhtml(INFO_FILE "inference"
ov_coverage_genhtml(INFO_FILE "inference"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ie_coverage_extract(INPUT "openvino" OUTPUT "legacy"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/common/legacy/*")
ie_coverage_genhtml(INFO_FILE "legacy"
ov_coverage_extract(INPUT "openvino" OUTPUT "core"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/core/*")
ov_coverage_genhtml(INFO_FILE "core"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ie_coverage_extract(INPUT "openvino" OUTPUT "hetero_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/hetero/*")
ie_coverage_genhtml(INFO_FILE "hetero_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ie_coverage_extract(INPUT "openvino" OUTPUT "auto_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/auto/*")
ie_coverage_genhtml(INFO_FILE "auto_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ie_coverage_extract(INPUT "openvino" OUTPUT "preprocessing"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}src/common/preprocessing/*")
ie_coverage_genhtml(INFO_FILE "preprocessing"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ie_coverage_extract(INPUT "openvino" OUTPUT "transformations"
ov_coverage_extract(INPUT "openvino" OUTPUT "transformations"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/common/transformations/*")
ie_coverage_genhtml(INFO_FILE "transformations"
ov_coverage_genhtml(INFO_FILE "transformations"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ie_coverage_extract(INPUT "openvino" OUTPUT "snippets"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/common/snippets/*")
ie_coverage_genhtml(INFO_FILE "snippets"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ie_coverage_extract(INPUT "openvino" OUTPUT "low_precision_transformations"
ov_coverage_extract(INPUT "openvino" OUTPUT "low_precision_transformations"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/common/low_precision_transformations/*")
ie_coverage_genhtml(INFO_FILE "low_precision_transformations"
ov_coverage_genhtml(INFO_FILE "low_precision_transformations"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ie_coverage_extract(INPUT "openvino" OUTPUT "template_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/docs/template_plugin/*")
ie_coverage_genhtml(INFO_FILE "template_plugin"
ov_coverage_extract(INPUT "openvino" OUTPUT "legacy"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/common/legacy/*")
ov_coverage_genhtml(INFO_FILE "legacy"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
if(ENABLE_INTEL_CPU)
ie_coverage_extract(INPUT "openvino" OUTPUT "intel_cpu_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/intel_cpu/*")
ie_coverage_genhtml(INFO_FILE "intel_cpu_plugin"
ov_coverage_extract(INPUT "openvino" OUTPUT "preprocessing"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}src/common/preprocessing/*")
ov_coverage_genhtml(INFO_FILE "preprocessing"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ov_coverage_extract(INPUT "openvino" OUTPUT "snippets"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/common/snippets/*")
ov_coverage_genhtml(INFO_FILE "snippets"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
ov_coverage_extract(INPUT "openvino" OUTPUT "frontend_common"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/frontends/common/*")
ov_coverage_genhtml(INFO_FILE "frontend_common"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
##################### Core Components #####################
##################### Plugins #####################
if(ENABLE_AUTO OR ENABLE_MULTI)
ov_coverage_extract(INPUT "openvino" OUTPUT "auto_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/auto/*")
ov_coverage_genhtml(INFO_FILE "auto_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if (ENABLE_INTEL_GPU)
ie_coverage_extract(INPUT "openvino" OUTPUT "intel_gpu_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/intel_gpu/*")
ie_coverage_genhtml(INFO_FILE "intel_gpu_plugin"
if(ENABLE_AUTO_BATCH)
ov_coverage_extract(INPUT "openvino" OUTPUT "auto_batch_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/auto_batch/*")
ov_coverage_genhtml(INFO_FILE "auto_batch_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if(ENABLE_HETERO)
ov_coverage_extract(INPUT "openvino" OUTPUT "hetero_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/hetero/*")
ov_coverage_genhtml(INFO_FILE "hetero_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if(ENABLE_INTEL_CPU)
ov_coverage_extract(INPUT "openvino" OUTPUT "intel_cpu_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/intel_cpu/*")
ov_coverage_genhtml(INFO_FILE "intel_cpu_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if(ENABLE_INTEL_GNA)
ie_coverage_extract(INPUT "openvino" OUTPUT "intel_gna_plugin"
ov_coverage_extract(INPUT "openvino" OUTPUT "intel_gna_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/intel_gna/*")
ie_coverage_genhtml(INFO_FILE "intel_gna_plugin"
ov_coverage_genhtml(INFO_FILE "intel_gna_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
ie_coverage_extract(INPUT "openvino" OUTPUT "core"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/core/*")
ie_coverage_genhtml(INFO_FILE "core"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
if (ENABLE_INTEL_GPU)
ov_coverage_extract(INPUT "openvino" OUTPUT "intel_gpu_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/intel_gpu/*")
ov_coverage_genhtml(INFO_FILE "intel_gpu_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if(ENABLE_OV_ONNX_FRONTEND)
ie_coverage_extract(INPUT "openvino" OUTPUT "onnx"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/frontends/onnx/*"
"${OV_COVERAGE_BASE_DIRECTORY}/src/frontends/onnx/*")
ie_coverage_genhtml(INFO_FILE "onnx"
if(ENABLE_INTEL_MYRIAD)
ov_coverage_extract(INPUT "openvino" OUTPUT "intel_myriad_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/intel_myriad/*")
ov_coverage_genhtml(INFO_FILE "intel_myriad_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if(ENABLE_TEMPLATE)
ov_coverage_extract(INPUT "openvino" OUTPUT "template_plugin"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/plugins/template/*")
ov_coverage_genhtml(INFO_FILE "template_plugin"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
##################### Plugins #####################
##################### Frontends #####################
if(ENABLE_OV_IR_FRONTEND)
ov_coverage_extract(INPUT "openvino" OUTPUT "ir_frontend"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/frontends/ir/*")
ov_coverage_genhtml(INFO_FILE "ir_frontend"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if(ENABLE_OV_ONNX_FRONTEND)
ov_coverage_extract(INPUT "openvino" OUTPUT "onnx_frontend"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/frontends/onnx/*")
ov_coverage_genhtml(INFO_FILE "onnx_frontend"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if(ENABLE_OV_PADDLE_FRONTEND)
ov_coverage_extract(INPUT "openvino" OUTPUT "paddle_frontend"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/frontends/paddle/*")
ov_coverage_genhtml(INFO_FILE "paddle_frontend"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
if(ENABLE_OV_TF_FRONTEND)
ov_coverage_extract(INPUT "openvino" OUTPUT "tf_frontend"
PATTERNS "${OV_COVERAGE_BASE_DIRECTORY}/src/frontends/tensorflow/*")
ov_coverage_genhtml(INFO_FILE "tf_frontend"
PREFIX "${OV_COVERAGE_BASE_DIRECTORY}")
endif()
##################### Frontends #####################
+91 -72
View File
@@ -4,7 +4,7 @@
cmake_policy(SET CMP0054 NEW)
# TODO: fix it
# TODO: fix it, outside of source dir MO cannot find TBB dependency
set_temp_directory(TEMP "${CMAKE_SOURCE_DIR}")
if(ENABLE_SAME_BRANCH_FOR_MODELS)
@@ -23,34 +23,6 @@ message(STATUS "MODELS_PATH=" ${MODELS_PATH})
fetch_models_and_validation_set()
if(COMMAND get_linux_name)
get_linux_name(LINUX_OS_NAME)
endif()
if(CMAKE_CROSSCOMPILING AND CMAKE_HOST_SYSTEM_NAME MATCHES Linux AND CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
set(protoc_version "3.18.2")
RESOLVE_DEPENDENCY(SYSTEM_PROTOC_ROOT
ARCHIVE_LIN "protoc-${protoc_version}-linux-x86_64.tar.gz"
TARGET_PATH "${TEMP}/protoc-${protoc_version}-linux-x86_64"
SHA256 "42fde2b6044c1f74c7e86d4e03b43aac87128ddf57ac6ed8c4eab7a1e21bbf21"
)
debug_message(STATUS "host protoc-${protoc_version} root path = " ${SYSTEM_PROTOC_ROOT})
reset_deps_cache(SYSTEM_PROTOC)
find_host_program(
SYSTEM_PROTOC
NAMES protoc
PATHS "${SYSTEM_PROTOC_ROOT}/bin"
NO_DEFAULT_PATH)
if(NOT SYSTEM_PROTOC)
message(FATAL_ERROR "[ONNX IMPORTER] Missing host protoc binary")
endif()
update_deps_cache(SYSTEM_PROTOC "${SYSTEM_PROTOC}" "Path to host protoc for ONNX Importer")
endif()
if(ENABLE_INTEL_MYRIAD)
include(${OpenVINO_SOURCE_DIR}/src/plugins/intel_myriad/myriad_dependencies.cmake)
endif()
@@ -85,15 +57,27 @@ if(THREADING STREQUAL "OMP")
update_deps_cache(OMP "${OMP}" "Path to OMP root folder")
debug_message(STATUS "intel_omp=" ${OMP})
ie_cpack_add_component(omp REQUIRED)
ie_cpack_add_component(omp HIDDEN)
file(GLOB_RECURSE source_list "${OMP}/*${CMAKE_SHARED_LIBRARY_SUFFIX}*")
install(FILES ${source_list}
DESTINATION "runtime/3rdparty/omp/lib"
DESTINATION ${OV_CPACK_RUNTIMEDIR}
COMPONENT omp)
endif()
## TBB package
if(THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO")
unset(_ov_download_tbb_done CACHE)
#
# The function downloads prebuilt TBB package
# NOTE: the function should be used if system TBB is not found
# or ENABLE_SYSTEM_TBB is OFF
#
function(ov_download_tbb)
if(_ov_download_tbb_done OR NOT THREADING MATCHES "^(TBB|TBB_AUTO)$")
return()
endif()
set(_ov_download_tbb_done ON CACHE INTERNAL "Whether prebuilt TBB is already downloaded")
reset_deps_cache(TBBROOT TBB_DIR)
if(DEFINED ENV{THIRDPARTY_SERVER_PATH})
@@ -105,21 +89,12 @@ if(THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO")
if(WIN32 AND X86_64)
# TODO: add target_path to be platform specific as well, to avoid following if
RESOLVE_DEPENDENCY(TBB
ARCHIVE_WIN "tbb2020_20200415_win.zip"
ARCHIVE_WIN "tbb2020_617e9a71_win.zip"
TARGET_PATH "${TEMP}/tbb"
ENVIRONMENT "TBBROOT"
SHA256 "f1c9b9e2861efdaa01552bd25312ccbc5feeb45551e5f91ae61e29221c5c1479")
if(ENABLE_TBBBIND_2_5)
RESOLVE_DEPENDENCY(TBBBIND_2_5
ARCHIVE_WIN "tbbbind_2_5_static_win_v1.zip"
TARGET_PATH "${TEMP}/tbbbind_2_5"
ENVIRONMENT "TBBBIND_2_5_ROOT"
SHA256 "a67afeea8cf194f97968c800dab5b5459972908295242e282045d6b8953573c1")
else()
message(WARNING "prebuilt TBBBIND_2_5 is not available.
Build oneTBB from sources and set TBBROOT environment var before OpenVINO cmake configure")
endif()
elseif(ANDROID) # Should be before LINUX due LINUX is detected as well
SHA256 "01cac3cc48705bd52b83a6e1fa1ed95c708928be76160f5b9c5c37f954d56df4"
USE_NEW_LOCATION TRUE)
elseif(ANDROID AND X86_64) # Should be before LINUX due LINUX is detected as well
RESOLVE_DEPENDENCY(TBB
ARCHIVE_ANDROID "tbb2020_20200404_android.tgz"
TARGET_PATH "${TEMP}/tbb"
@@ -131,17 +106,7 @@ if(THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO")
TARGET_PATH "${TEMP}/tbb"
ENVIRONMENT "TBBROOT"
SHA256 "95b2f3b0b70c7376a0c7de351a355c2c514b42c4966e77e3e34271a599501008")
if(ENABLE_TBBBIND_2_5)
RESOLVE_DEPENDENCY(TBBBIND_2_5
ARCHIVE_LIN "tbbbind_2_5_static_lin_v2.tgz"
TARGET_PATH "${TEMP}/tbbbind_2_5"
ENVIRONMENT "TBBBIND_2_5_ROOT"
SHA256 "865e7894c58402233caf0d1b288056e0e6ab2bf7c9d00c9dc60561c484bc90f4")
else()
message(WARNING "prebuilt TBBBIND_2_5 is not available.
Build oneTBB from sources and set TBBROOT environment var before OpenVINO cmake configure")
endif()
elseif(LINUX AND AARCH64)
elseif(YOCTO_AARCH64)
RESOLVE_DEPENDENCY(TBB
ARCHIVE_LIN "keembay/tbb2020_38404_kmb_lic.tgz"
TARGET_PATH "${TEMP}/tbb_yocto"
@@ -154,24 +119,76 @@ if(THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO")
ENVIRONMENT "TBBROOT"
SHA256 "ad9cf52e657660058aa6c6844914bc0fc66241fec89a392d8b79a7ff69c3c7f6")
else()
message(FATAL_ERROR "TBB is not available on current platform")
message(WARNING "Prebuilt TBB is not available on current platform")
endif()
update_deps_cache(TBBROOT "${TBB}" "Path to TBB root folder")
if(EXISTS "${TBBROOT}/lib/cmake/TBB/TBBConfig.cmake")
# oneTBB case
update_deps_cache(TBB_DIR "${TBB}/lib/cmake/TBB" "Path to TBB cmake folder")
update_deps_cache(TBB_DIR "${TBBROOT}/lib/cmake/TBB" "Path to TBB cmake folder")
elseif(EXISTS "${TBBROOT}/lib/cmake/tbb/TBBConfig.cmake")
# oneTBB release package version less than 2021.6.0
update_deps_cache(TBB_DIR "${TBBROOT}/lib/cmake/tbb" "Path to TBB cmake folder")
elseif(EXISTS "${TBBROOT}/lib64/cmake/TBB/TBBConfig.cmake")
# 64-bits oneTBB case
update_deps_cache(TBB_DIR "${TBBROOT}/lib64/cmake/TBB" "Path to TBB cmake folder")
elseif(EXISTS "${TBBROOT}/cmake/TBBConfig.cmake")
# custom downloaded or user provided TBB
update_deps_cache(TBB_DIR "${TBBROOT}/cmake" "Path to TBB cmake folder")
else()
update_deps_cache(TBB_DIR "${TBB}/cmake" "Path to TBB cmake folder")
message(WARNING "Failed to find TBBConfig.cmake in ${TBBROOT} tree. Custom TBBConfig.cmake will be used")
endif()
update_deps_cache(TBBBIND_2_5_DIR "${TBBBIND_2_5}/cmake" "Path to TBBBIND_2_5 cmake folder")
debug_message(STATUS "tbb=" ${TBB})
debug_message(STATUS "tbb_dir=" ${TBB_DIR})
debug_message(STATUS "tbbroot=" ${TBBROOT})
endfunction()
if(DEFINED IE_PATH_TO_DEPS)
unset(IE_PATH_TO_DEPS)
## TBBBind_2_5 package
unset(_ov_download_tbbbind_2_5_done CACHE)
#
# The function downloads static prebuilt TBBBind_2_5 package
# NOTE: the function should be called only we have TBB with version less 2021
#
function(ov_download_tbbbind_2_5)
if(_ov_download_tbbbind_2_5_done OR NOT ENABLE_TBBBIND_2_5)
return()
endif()
endif()
set(_ov_download_tbbbind_2_5_done ON CACHE INTERNAL "Whether prebuilt TBBBind_2_5 is already downloaded")
reset_deps_cache(TBBBIND_2_5_ROOT TBBBIND_2_5_DIR)
if(DEFINED ENV{THIRDPARTY_SERVER_PATH})
set(IE_PATH_TO_DEPS "$ENV{THIRDPARTY_SERVER_PATH}")
elseif(DEFINED THIRDPARTY_SERVER_PATH)
set(IE_PATH_TO_DEPS "${THIRDPARTY_SERVER_PATH}")
endif()
if(WIN32 AND X86_64)
RESOLVE_DEPENDENCY(TBBBIND_2_5
ARCHIVE_WIN "tbbbind_2_5_static_win_v1.zip"
TARGET_PATH "${TEMP}/tbbbind_2_5"
ENVIRONMENT "TBBBIND_2_5_ROOT"
SHA256 "a67afeea8cf194f97968c800dab5b5459972908295242e282045d6b8953573c1")
elseif((LINUX AND NOT ANDROID) AND X86_64)
RESOLVE_DEPENDENCY(TBBBIND_2_5
ARCHIVE_LIN "tbbbind_2_5_static_lin_v2.tgz"
TARGET_PATH "${TEMP}/tbbbind_2_5"
ENVIRONMENT "TBBBIND_2_5_ROOT"
SHA256 "865e7894c58402233caf0d1b288056e0e6ab2bf7c9d00c9dc60561c484bc90f4")
else()
# TMP: for Apple Silicon TBB does not provide TBBBind
if(NOT (APPLE AND AARCH64))
message(WARNING "prebuilt TBBBIND_2_5 is not available.
Build oneTBB from sources and set TBBROOT environment var before OpenVINO cmake configure")
endif()
return()
endif()
update_deps_cache(TBBBIND_2_5_ROOT "${TBBBIND_2_5}" "Path to TBBBIND_2_5 root folder")
update_deps_cache(TBBBIND_2_5_DIR "${TBBBIND_2_5}/cmake" "Path to TBBBIND_2_5 cmake folder")
endfunction()
## OpenCV
if(ENABLE_OPENCV)
@@ -181,7 +198,7 @@ if(ENABLE_OPENCV)
set(OPENCV_BUILD "076")
set(OPENCV_BUILD_YOCTO "772")
if(AARCH64)
if(YOCTO_AARCH64)
if(DEFINED ENV{THIRDPARTY_SERVER_PATH})
set(IE_PATH_TO_DEPS "$ENV{THIRDPARTY_SERVER_PATH}")
elseif(DEFINED THIRDPARTY_SERVER_PATH)
@@ -219,7 +236,7 @@ if(ENABLE_OPENCV)
VERSION_REGEX ".*_([0-9]+.[0-9]+.[0-9]+).*"
SHA256 "3e162f96e86cba8836618134831d9cf76df0438778b3e27e261dedad9254c514")
elseif(LINUX)
if(AARCH64)
if(YOCTO_AARCH64)
set(OPENCV_SUFFIX "yocto_kmb")
set(OPENCV_BUILD "${OPENCV_BUILD_YOCTO}")
elseif(ARM)
@@ -238,7 +255,10 @@ if(ENABLE_OPENCV)
elseif(LINUX_OS_NAME STREQUAL "Ubuntu 18.04" AND X86_64)
set(OPENCV_SUFFIX "ubuntu18")
set(OPENCV_HASH "db087dfd412eedb8161636ec083ada85ff278109948d1d62a06b0f52e1f04202")
elseif((LINUX_OS_NAME STREQUAL "Ubuntu 20.04" OR LINUX_OS_NAME STREQUAL "LinuxMint 20.1") AND X86_64)
elseif((LINUX_OS_NAME STREQUAL "Ubuntu 20.04" OR
LINUX_OS_NAME STREQUAL "Ubuntu 21.10" OR
LINUX_OS_NAME STREQUAL "Ubuntu 22.04" OR
LINUX_OS_NAME STREQUAL "LinuxMint 20.1") AND X86_64)
set(OPENCV_SUFFIX "ubuntu20")
set(OPENCV_HASH "2fe7bbc40e1186eb8d099822038cae2821abf617ac7a16fadf98f377c723e268")
elseif(NOT DEFINED OpenCV_DIR AND NOT DEFINED ENV{OpenCV_DIR})
@@ -265,8 +285,6 @@ else()
reset_deps_cache(OpenCV_DIR)
endif()
include(${OpenVINO_SOURCE_DIR}/src/cmake/ie_parallel.cmake)
if(ENABLE_INTEL_GNA)
reset_deps_cache(
GNA_EXT_DIR
@@ -276,8 +294,8 @@ if(ENABLE_INTEL_GNA)
GNA_LIB_DIR
libGNA_INCLUDE_DIRS
libGNA_LIBRARIES_BASE_PATH)
set(GNA_VERSION "03.00.00.1455.0")
set(GNA_HASH "99891696269d8fa10116c96e6b7bda4362736881f0df8df8b56c751ee18e5820")
set(GNA_VERSION "03.00.00.1815.1")
set(GNA_HASH "682eb01e5a148ea03b90ee12b7fd67afb1479f35ccf2966f83b208e50e91633c")
set(FILES_TO_EXTRACT_LIST gna_${GNA_VERSION}/include)
if(WIN32)
@@ -287,11 +305,12 @@ if(ENABLE_INTEL_GNA)
endif()
RESOLVE_DEPENDENCY(GNA_EXT_DIR
ARCHIVE_UNIFIED "GNA/GNA_${GNA_VERSION}.zip"
ARCHIVE_UNIFIED "gna/GNA_${GNA_VERSION}.zip"
TARGET_PATH "${TEMP}/gna_${GNA_VERSION}"
VERSION_REGEX ".*_([0-9]+.[0-9]+.[0-9]+.[0-9]+).*"
FILES_TO_EXTRACT FILES_TO_EXTRACT_LIST
SHA256 ${GNA_HASH})
SHA256 ${GNA_HASH}
USE_NEW_LOCATION TRUE)
update_deps_cache(GNA_EXT_DIR "${GNA_EXT_DIR}" "Path to GNA root folder")
debug_message(STATUS "gna=" ${GNA_EXT_DIR})
@@ -14,8 +14,8 @@ set(CMAKE_MODULE_PATH "${IEDevScripts_DIR}")
function(set_ci_build_number)
set(repo_root "${CMAKE_SOURCE_DIR}")
include(version)
foreach(var CI_BUILD_NUMBER IE_VERSION IE_VERSION_BUILD
IE_VERSION_MAJOR IE_VERSION_MINOR IE_VERSION_PATCH)
foreach(var CI_BUILD_NUMBER OpenVINO_VERSION OpenVINO_SOVERSION OpenVINO_VERSION_SUFFIX OpenVINO_VERSION_BUILD
OpenVINO_VERSION_MAJOR OpenVINO_VERSION_MINOR OpenVINO_VERSION_PATCH)
if(NOT DEFINED ${var})
message(FATAL_ERROR "${var} version component is not defined")
endif()
@@ -23,26 +23,28 @@ function(set_ci_build_number)
endforeach()
endfunction()
set_ci_build_number()
include(features)
include(message)
set_ci_build_number()
#
# Detect target
#
include(target_flags)
string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} ARCH_FOLDER)
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH_FOLDER)
if(X86_64)
set(ARCH_FOLDER intel64)
elseif(X86)
set(ARCH_FOLDER ia32)
elseif(MSVC AND ARM)
set(ARCH_FOLDER arm)
elseif(MSVC AND AARCH64)
elseif((MSVC OR APPLE) AND AARCH64)
set(ARCH_FOLDER arm64)
elseif(UNIVERSAL2)
set(ARCH_FOLDER universal2)
endif()
#
@@ -77,6 +79,11 @@ if(NOT COMMAND find_host_package)
find_package(${ARGN})
endmacro()
endif()
if(NOT COMMAND find_host_library)
macro(find_host_library)
find_library(${ARGN})
endmacro()
endif()
if(NOT COMMAND find_host_program)
macro(find_host_program)
find_program(${ARGN})
@@ -87,7 +94,6 @@ endif()
# Common scripts
#
include(packaging)
include(coverage/coverage)
include(shellcheck/shellcheck)
@@ -164,19 +170,34 @@ macro(ov_set_if_not_defined var value)
endif()
endmacro()
if(NOT UNIX)
ov_set_if_not_defined(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
else()
ov_set_if_not_defined(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}/lib)
ov_set_if_not_defined(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}/lib)
endif()
ov_set_if_not_defined(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_PDB_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
if(CPACK_GENERATOR MATCHES "^(DEB|RPM)$")
# to make sure that lib/<multiarch-tuple> is created on Debian
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Cmake install prefix" FORCE)
endif()
include(packaging/packaging)
set(CMAKE_SKIP_INSTALL_RPATH ON)
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
if(DEFINED OV_CPACK_LIBRARYDIR)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${OV_CPACK_LIBRARYDIR}")
else()
message(FATAL_ERROR "Internal error: OV_CPACK_LIBRARYDIR is not defined, while it's required to initialize RPATH")
endif()
if(CPACK_GENERATOR STREQUAL "BREW")
set(CMAKE_SKIP_INSTALL_RPATH OFF)
endif()
# WA for Xcode generator + object libraries issue:
# https://gitlab.kitware.com/cmake/cmake/issues/20260
# http://cmake.3232098.n2.nabble.com/XCODE-DEPEND-HELPER-make-Deletes-Targets-Before-and-While-They-re-Built-td7598277.html
@@ -186,8 +207,18 @@ endif()
# Use solution folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Enable CMAKE_<LANG>_COMPILER_ID AppleClang
# CMake 3.0+: Enable CMAKE_<LANG>_COMPILER_ID AppleClang
set(CMAKE_POLICY_DEFAULT_CMP0025 NEW)
# CMake 3.0+: MACOSX_RPATH is enabled by default.
set(CMAKE_POLICY_DEFAULT_CMP0026 NEW)
# CMake 3.0+ (2.8.12): MacOS "@rpath" in target's install name
set(CMAKE_POLICY_DEFAULT_CMP0042 NEW)
# CMake 3.9+: `RPATH` settings on macOS do not affect `install_name`.
set(CMAKE_POLICY_DEFAULT_CMP0068 NEW)
# CMake 3.13+: option() honors normal variables.
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# CMake 3.22+ :cmake_dependent_option() supports full Condition Syntax
set(CMAKE_POLICY_DEFAULT_CMP0127 NEW)
set(CMAKE_WARN_DEPRECATED OFF CACHE BOOL "Don't warn about obsolete cmake versions in 3rdparty")
set(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION ON CACHE BOOL "Warn about absolute paths in destination")
@@ -217,7 +248,7 @@ macro(ov_install_static_lib target comp)
set_target_properties(${target} PROPERTIES EXCLUDE_FROM_ALL FALSE)
endif()
install(TARGETS ${target} EXPORT OpenVINOTargets
ARCHIVE DESTINATION ${IE_CPACK_ARCHIVE_PATH} COMPONENT ${comp} ${ARGN})
ARCHIVE DESTINATION ${OV_CPACK_ARCHIVEDIR} COMPONENT ${comp} ${ARGN})
endif()
endmacro()
@@ -246,6 +277,8 @@ if(ENABLE_FUZZING)
enable_fuzzing()
endif()
get_linux_name(LINUX_OS_NAME)
# macro to mark target as conditionally compiled
function(ie_mark_target_as_cc TARGET_NAME)
@@ -271,46 +304,7 @@ function(ov_mark_target_as_cc)
ie_mark_target_as_cc(${ARGN})
endfunction()
# check python package
function(ie_check_pip_package full_name message_type)
find_package(PythonInterp 3 REQUIRED)
get_filename_component(PYTHON_EXEC_DIR ${PYTHON_EXECUTABLE} DIRECTORY)
# extract version if any
if(full_name MATCHES "^([a-z_]+)[~=<>!]*(.*)$")
set(name ${CMAKE_MATCH_1})
set(req_version ${CMAKE_MATCH_2})
else()
set(name ${full_name})
endif()
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -m pip show ${name}
WORKING_DIRECTORY ${PYTHON_EXEC_DIR}
RESULT_VARIABLE PIP_EXIT_CODE
OUTPUT_VARIABLE output)
if(NOT PIP_EXIT_CODE EQUAL 0)
set(${name}_FOUND OFF PARENT_SCOPE)
message(${message_type} "${name} package is not installed. Please use \"${PYTHON_EXECUTABLE} -m pip install ${full_name}\".")
else()
if(req_version)
string(REGEX MATCH "Version: ([0-9]+\.?[0-9]*\.?[0-9]*)\n" installed_version "${output}")
if(installed_version)
set(installed_version "${CMAKE_MATCH_1}")
endif()
if(NOT req_version STREQUAL installed_version)
message(${message_type} "${name} package is installed, but may have different version (${installed_version}). "
"Please use \"${PYTHON_EXECUTABLE} -m pip install ${full_name}\".")
endif()
else()
set(${name}_FOUND ON PARENT_SCOPE)
endif()
endif()
endfunction()
include(python_requirements)
# Code style utils
+2 -2
View File
@@ -76,8 +76,8 @@ function(addIeTarget)
# remove unnecessary directories
foreach(excludedDir ${ARG_EXCLUDED_SOURCE_PATHS})
list(FILTER includes EXCLUDE REGEX "${excludedDir}*")
list(FILTER sources EXCLUDE REGEX "${excludedDir}*")
list(FILTER includes EXCLUDE REGEX "${excludedDir}.*")
list(FILTER sources EXCLUDE REGEX "${excludedDir}.*")
endforeach()
source_group("include" FILES ${includes})
@@ -51,12 +51,6 @@ endfunction()
set(VALIDATED_LIBRARIES "" CACHE INTERNAL "")
function(_ov_add_api_validator_post_build_step)
if(NOT BUILD_SHARED_LIBS)
# since _ov_add_api_validator_post_build_step
# is currently run only on shared libraries, we have nothing to test
return()
endif()
set(UWP_API_VALIDATOR_APIS "${PROGRAMFILES}/Windows Kits/10/build/universalDDIs/x64/UniversalDDIs.xml")
set(UWP_API_VALIDATOR_EXCLUSION "${UWP_SDK_PATH}/BinaryExclusionlist.xml")
@@ -7,13 +7,13 @@ if(ENABLE_CLANG_FORMAT)
find_host_program(CLANG_FORMAT NAMES ${CLANG_FORMAT_FILENAME} PATHS ENV PATH)
if(CLANG_FORMAT)
execute_process(COMMAND ${CLANG_FORMAT} ${CMAKE_CURRENT_SOURCE_DIR} ARGS --version OUTPUT_VARIABLE CLANG_VERSION)
if(NOT CLANG_VERSION OR CLANG_VERSION STREQUAL "")
if(NOT CLANG_VERSION)
message(WARNING "Supported clang-format version is 9!")
set(ENABLE_CLANG_FORMAT OFF)
else()
string(REGEX REPLACE "[^0-9]+([0-9]+)\\..*" "\\1" CLANG_FORMAT_MAJOR_VERSION ${CLANG_VERSION})
if(NOT ${CLANG_FORMAT_MAJOR_VERSION} EQUAL "9")
message(WARNING "Supported clang-format version is 9!")
if(NOT CLANG_FORMAT_MAJOR_VERSION EQUAL 9)
message(WARNING "Supported clang-format version is 9! Provided version ${CLANG_FORMAT_MAJOR_VERSION}")
set(ENABLE_CLANG_FORMAT OFF)
endif()
endif()
@@ -28,7 +28,6 @@ if(ENABLE_CLANG_FORMAT AND NOT TARGET clang_format_check_all)
add_custom_target(clang_format_fix_all)
set_target_properties(clang_format_check_all clang_format_fix_all
PROPERTIES FOLDER clang_format)
set(CLANG_FORMAT_ALL_OUTPUT_FILES "" CACHE INTERNAL "All clang-format output files")
endif()
function(add_clang_format_target TARGET_NAME)
@@ -88,14 +87,10 @@ function(add_clang_format_target TARGET_NAME)
"[clang-format] ${source_file}"
VERBATIM)
list(APPEND all_input_sources "${source_file}")
list(APPEND all_output_files "${output_file}")
endforeach()
set(CLANG_FORMAT_ALL_OUTPUT_FILES
${CLANG_FORMAT_ALL_OUTPUT_FILES} ${all_output_files}
CACHE INTERNAL
"All clang-format output files")
add_custom_target(${TARGET_NAME}
DEPENDS ${all_output_files}
COMMENT "[clang-format] ${TARGET_NAME}")
@@ -104,11 +99,11 @@ function(add_clang_format_target TARGET_NAME)
COMMAND
"${CMAKE_COMMAND}"
-D "CLANG_FORMAT=${CLANG_FORMAT}"
-D "INPUT_FILES=${CLANG_FORMAT_FOR_SOURCES}"
-D "INPUT_FILES=${all_input_sources}"
-D "EXCLUDE_PATTERNS=${CLANG_FORMAT_EXCLUDE_PATTERNS}"
-P "${IEDevScripts_DIR}/clang_format/clang_format_fix.cmake"
DEPENDS
"${CLANG_FORMAT_FOR_SOURCES}"
"${all_input_sources}"
"${IEDevScripts_DIR}/clang_format/clang_format_fix.cmake"
COMMENT
"[clang-format] ${TARGET_NAME}_fix"
@@ -69,104 +69,112 @@ endmacro()
#
# Provides SSE4.2 compilation flags depending on an OS and a compiler
#
function(ie_sse42_optimization_flags flags)
macro(ie_sse42_optimization_flags flags)
if(WIN32)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# No such option for MSVC 2019
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(${flags} /QxSSE4.2 PARENT_SCOPE)
set(${flags} /QxSSE4.2)
else()
message(WARNING "Unsupported CXX compiler ${CMAKE_CXX_COMPILER_ID}")
endif()
else()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(${flags} -xSSE4.2 PARENT_SCOPE)
set(${flags} -xSSE4.2)
else()
set(${flags} -msse4.2 PARENT_SCOPE)
set(${flags} -msse4.2)
endif()
endif()
endfunction()
endmacro()
#
# Provides AVX2 compilation flags depending on an OS and a compiler
#
function(ie_avx2_optimization_flags flags)
macro(ie_avx2_optimization_flags flags)
if(WIN32)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(${flags} /QxCORE-AVX2 PARENT_SCOPE)
set(${flags} /QxCORE-AVX2)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(${flags} /arch:AVX2 PARENT_SCOPE)
set(${flags} /arch:AVX2)
else()
message(WARNING "Unsupported CXX compiler ${CMAKE_CXX_COMPILER_ID}")
endif()
else()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(${flags} -xCORE-AVX2 PARENT_SCOPE)
set(${flags} -xCORE-AVX2)
else()
set(${flags} -mavx2 -mfma PARENT_SCOPE)
set(${flags} -mavx2 -mfma)
endif()
endif()
endfunction()
endmacro()
#
# Provides common AVX512 compilation flags for AVX512F instruction set support
# depending on an OS and a compiler
#
function(ie_avx512_optimization_flags flags)
macro(ie_avx512_optimization_flags flags)
if(WIN32)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(${flags} /QxCOMMON-AVX512 PARENT_SCOPE)
set(${flags} /QxCOMMON-AVX512)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(${flags} /arch:AVX512 PARENT_SCOPE)
set(${flags} /arch:AVX512)
else()
message(WARNING "Unsupported CXX compiler ${CMAKE_CXX_COMPILER_ID}")
endif()
else()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(${flags} -xCOMMON-AVX512 PARENT_SCOPE)
set(${flags} -xCOMMON-AVX512)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(${flags} -mavx512f -mfma PARENT_SCOPE)
set(${flags} -mavx512f -mfma)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|AppleClang)$")
set(${flags} -mavx512f -mfma PARENT_SCOPE)
set(${flags} -mavx512f -mfma)
endif()
endif()
endfunction()
endmacro()
function(ie_arm_neon_optimization_flags flags)
macro(ie_arm_neon_optimization_flags flags)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
message(WARNING "Unsupported CXX compiler ${CMAKE_CXX_COMPILER_ID}")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# nothing
elseif(ANDROID)
if(ANDROID_ABI STREQUAL "arm64-v8a")
set(${flags} -mfpu=neon PARENT_SCOPE)
set(${flags} -mfpu=neon -Wno-unused-command-line-argument)
elseif(ANDROID_ABI STREQUAL "armeabi-v7a-hard with NEON")
set(${flags} -march=armv7-a -mfloat-abi=hard -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -mfpu=neon PARENT_SCOPE)
set(${flags} -march=armv7-a -mfloat-abi=hard -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -mfpu=neon -Wno-unused-command-line-argument)
elseif((ANDROID_ABI STREQUAL "armeabi-v7a with NEON") OR
(ANDROID_ABI STREQUAL "armeabi-v7a" AND
DEFINED CMAKE_ANDROID_ARM_NEON AND CMAKE_ANDROID_ARM_NEON))
set(${flags} -march=armv7-a -mfloat-abi=softfp -mfpu=neon PARENT_SCOPE)
set(${flags} -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wno-unused-command-line-argument)
endif()
else()
if(AARCH64)
set(${flags} -O2 -ftree-vectorize PARENT_SCOPE)
set(${flags} -O2 -ftree-vectorize)
elseif(ARM)
set(${flags} -mfpu=neon PARENT_SCOPE)
set(${flags} -mfpu=neon -Wno-unused-command-line-argument)
endif()
endif()
endfunction()
endmacro()
#
# Disables all warnings for 3rd party targets
#
function(ov_disable_all_warnings)
foreach(target IN LISTS ARGN)
get_target_property(target_type ${target} TYPE)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(${target} PRIVATE /WX-)
elseif(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG)
target_compile_options(${target} PRIVATE -w)
# required for LTO
set(link_interface INTERFACE_LINK_OPTIONS)
if(target_type STREQUAL "SHARED_LIBRARY" OR target_type STREQUAL "EXECUTABLE")
set(link_interface LINK_OPTIONS)
endif()
set_target_properties(${target} PROPERTIES ${link_interface} "-Wno-error=maybe-uninitialized;-Wno-maybe-uninitialized")
elseif(UNIX AND CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# 193: zero used for undefined preprocessing identifier "XXX"
# 1011: missing return statement at end of non-void function "XXX"
@@ -256,12 +264,12 @@ if(WIN32)
ie_add_compiler_flags(/Gy) # remove unreferenced functions: function level linking
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
if (TREAT_WARNING_AS_ERROR)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
if (CMAKE_COMPILE_WARNING_AS_ERROR)
if (CMAKE_VERSION VERSION_LESS 3.24)
ie_add_compiler_flags(/WX)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
ie_add_compiler_flags(/Qdiag-warning:47,1740,1786)
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# ie_add_compiler_flags(/WX) # Too many warnings
endif()
endif()
@@ -302,12 +310,11 @@ if(WIN32)
string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}")
string(REPLACE "/Zi" "/Z7" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
else()
# TODO: enable for C sources as well
# ie_add_compiler_flags(-Werror)
if(TREAT_WARNING_AS_ERROR)
if (CMAKE_COMPILE_WARNING_AS_ERROR AND CMAKE_VERSION VERSION_LESS 3.24)
# TODO: enable for C sources as well
# ie_add_compiler_flags(-Werror)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
endif()
ie_add_compiler_flags(-ffunction-sections -fdata-sections)
ie_add_compiler_flags(-fdiagnostics-show-option)
ie_add_compiler_flags(-Wundef)
@@ -14,6 +14,7 @@ if(UNIX)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(IE_LINKER_FLAGS "${IE_LINKER_FLAGS} -z noexecstack -z relro -z now")
set(IE_C_CXX_FLAGS "${IE_C_CXX_FLAGS} -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
set(IE_C_CXX_FLAGS "${IE_C_CXX_FLAGS} -fstack-protector-all")
else()
+127 -106
View File
@@ -4,210 +4,231 @@
set(OV_COVERAGE_GCDA_DATA_DIRECTORY "${CMAKE_BINARY_DIR}")
if(NOT TARGET ie_coverage_clean)
add_custom_target(ie_coverage_clean)
set_target_properties(ie_coverage_clean PROPERTIES FOLDER coverage)
if (NOT TARGET ov_coverage)
add_custom_target(ov_coverage)
set_target_properties(ov_coverage PROPERTIES FOLDER coverage)
endif()
if(NOT TARGET ie_coverage_init)
add_custom_target(ie_coverage_init)
set_target_properties(ie_coverage_init PROPERTIES FOLDER coverage)
if(NOT TARGET ov_coverage_clean)
add_custom_target(ov_coverage_clean)
set_target_properties(ov_coverage_clean PROPERTIES FOLDER coverage)
endif()
if(NOT TARGET ie_coverage)
add_custom_target(ie_coverage)
set_target_properties(ie_coverage PROPERTIES FOLDER coverage)
endif()
set(IE_COVERAGE_REPORTS "${CMAKE_BINARY_DIR}/coverage")
set(IE_COVERAGE_SCRIPT_DIR "${IEDevScripts_DIR}/coverage")
set(OV_COVERAGE_REPORTS "${CMAKE_BINARY_DIR}/coverage")
set(OV_COVERAGE_SCRIPT_DIR "${IEDevScripts_DIR}/coverage")
include(CMakeParseArguments)
#
# ie_coverage_clean(REPOSITORY <repo> DIRECTORY <dir>)
# ov_coverage_clean(REPOSITORY <repo> DIRECTORY <dir>)
#
function(ie_coverage_clean)
cmake_parse_arguments(IE_COVERAGE "" "REPOSITORY;DIRECTORY" "" ${ARGN})
function(ov_coverage_clean)
cmake_parse_arguments(OV_COVERAGE "" "REPOSITORY;DIRECTORY" "" ${ARGN})
add_custom_target(ie_coverage_zerocounters_${IE_COVERAGE_REPOSITORY}
add_custom_target(ov_coverage_zerocounters_${OV_COVERAGE_REPOSITORY}
COMMAND lcov --zerocounters --quiet
--directory "${IE_COVERAGE_DIRECTORY}"
COMMENT "Add zero counters for coverage for ${IE_COVERAGE_REPOSITORY}"
--directory "${OV_COVERAGE_DIRECTORY}"
COMMENT "Add zero counters for coverage for ${OV_COVERAGE_REPOSITORY}"
VERBATIM)
add_custom_target(ie_coverage_clean_${IE_COVERAGE_REPOSITORY}
add_custom_target(ov_coverage_clean_${OV_COVERAGE_REPOSITORY}
COMMAND ${CMAKE_COMMAND}
-D "IE_COVERAGE_REPORTS=${IE_COVERAGE_REPORTS}"
-D "IE_COVERAGE_DIRECTORY=${IE_COVERAGE_DIRECTORY}"
-D "OV_COVERAGE_REPORTS=${OV_COVERAGE_REPORTS}"
-D "OV_COVERAGE_DIRECTORY=${OV_COVERAGE_DIRECTORY}"
-D "CMAKE_BINARY_DIRECTORY=${CMAKE_BINARY_DIR}"
-D "CMAKE_SOURCE_DIRECTORY=${CMAKE_SOURCE_DIR}"
-P "${IE_COVERAGE_SCRIPT_DIR}/coverage_clean.cmake"
COMMENT "Clean previously created HTML report files for ${IE_COVERAGE_REPOSITORY}"
DEPENDS "${IE_COVERAGE_SCRIPT_DIR}/coverage_clean.cmake"
-P "${OV_COVERAGE_SCRIPT_DIR}/coverage_clean.cmake"
COMMENT "Clean previously created HTML report files for ${OV_COVERAGE_REPOSITORY}"
DEPENDS "${OV_COVERAGE_SCRIPT_DIR}/coverage_clean.cmake"
VERBATIM)
set_target_properties(ie_coverage_zerocounters_${IE_COVERAGE_REPOSITORY}
ie_coverage_clean_${IE_COVERAGE_REPOSITORY}
set_target_properties(ov_coverage_zerocounters_${OV_COVERAGE_REPOSITORY}
ov_coverage_clean_${OV_COVERAGE_REPOSITORY}
PROPERTIES FOLDER coverage)
add_dependencies(ie_coverage_clean ie_coverage_zerocounters_${IE_COVERAGE_REPOSITORY}
ie_coverage_clean_${IE_COVERAGE_REPOSITORY})
add_dependencies(ov_coverage_clean ov_coverage_zerocounters_${OV_COVERAGE_REPOSITORY}
ov_coverage_clean_${OV_COVERAGE_REPOSITORY})
endfunction()
#
# ie_coverage_capture(INFO_FILE <info_file>
# ov_coverage_capture(INFO_FILE <info_file>
# BASE_DIRECTORY <base dir>
# DIRECTORY <gcda dir>)
# DIRECTORY <gcda dir>
# EXCLUDE_PATTERNS exclude_patterns,...)
#
function(ie_coverage_capture)
cmake_parse_arguments(IE_COVERAGE "" "INFO_FILE;BASE_DIRECTORY;DIRECTORY" "" ${ARGN})
function(ov_coverage_capture)
cmake_parse_arguments(OV_COVERAGE "" "INFO_FILE;BASE_DIRECTORY;DIRECTORY" "EXCLUDE_PATTERNS" ${ARGN})
set(output_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_INFO_FILE}.info")
set(output_base_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_INFO_FILE}_base.info")
set(output_tests_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_INFO_FILE}_tests.info")
set(output_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INFO_FILE}.info")
set(output_base_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INFO_FILE}_base.info")
set(output_tests_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INFO_FILE}_tests.info")
add_custom_command(OUTPUT ${output_base_file}
COMMAND ${CMAKE_COMMAND} -E make_directory "${IE_COVERAGE_REPORTS}"
COMMAND ${CMAKE_COMMAND} -E make_directory "${OV_COVERAGE_REPORTS}"
COMMAND lcov --no-external --capture --initial --quiet
--directory "${IE_COVERAGE_DIRECTORY}"
--base-directory "${IE_COVERAGE_BASE_DIRECTORY}"
--directory "${OV_COVERAGE_DIRECTORY}"
--base-directory "${OV_COVERAGE_BASE_DIRECTORY}"
--output-file ${output_base_file}
COMMENT "Capture initial coverage data ${IE_COVERAGE_INFO_FILE}"
COMMENT "Capture initial coverage data ${OV_COVERAGE_INFO_FILE}"
VERBATIM)
add_custom_command(OUTPUT ${output_tests_file}
COMMAND ${CMAKE_COMMAND} -E make_directory "${IE_COVERAGE_REPORTS}"
COMMAND ${CMAKE_COMMAND} -E make_directory "${OV_COVERAGE_REPORTS}"
COMMAND lcov --no-external --capture --quiet
--directory "${IE_COVERAGE_DIRECTORY}"
--base-directory "${IE_COVERAGE_BASE_DIRECTORY}"
--directory "${OV_COVERAGE_DIRECTORY}"
--base-directory "${OV_COVERAGE_BASE_DIRECTORY}"
--output-file ${output_tests_file}
COMMENT "Capture test coverage data ${IE_COVERAGE_INFO_FILE}"
COMMENT "Capture test coverage data ${OV_COVERAGE_INFO_FILE}"
VERBATIM)
add_custom_command(OUTPUT ${output_file}
if (OV_COVERAGE_EXCLUDE_PATTERNS)
set(out_suf ".tmp")
endif()
add_custom_command(OUTPUT ${output_file}${out_suf}
COMMAND ${CMAKE_COMMAND}
-D "IE_COVERAGE_OUTPUT_FILE=${output_file}"
-D "IE_COVERAGE_INPUT_FILES=${output_base_file};${output_tests_file}"
-P "${IE_COVERAGE_SCRIPT_DIR}/coverage_merge.cmake"
COMMENT "Generate total coverage data ${IE_COVERAGE_INFO_FILE}"
-D "OV_COVERAGE_OUTPUT_FILE=${output_file}${out_suf}"
-D "OV_COVERAGE_INPUT_FILES=${output_base_file};${output_tests_file}"
-P "${OV_COVERAGE_SCRIPT_DIR}/coverage_merge.cmake"
COMMENT "Generate total coverage data ${OV_COVERAGE_INFO_FILE}"
DEPENDS ${output_base_file} ${output_tests_file}
VERBATIM)
add_custom_target(ie_coverage_${IE_COVERAGE_INFO_FILE}_info
if (OV_COVERAGE_EXCLUDE_PATTERNS)
set(commands lcov --quiet)
foreach(pattern IN LISTS OV_COVERAGE_EXCLUDE_PATTERNS)
list(APPEND commands --remove ${output_file}${out_suf} ${pattern})
endforeach()
list(APPEND commands --output-file ${output_file})
add_custom_command(OUTPUT ${output_file}
COMMAND ${commands}
COMMENT "Exclude patterns from report ${OV_COVERAGE_OUTPUT}"
DEPENDS ${output_file}${out_suf}
VERBATIM)
endif()
add_custom_target(ov_coverage_${OV_COVERAGE_INFO_FILE}_info
DEPENDS ${output_file})
set_target_properties(ie_coverage_${IE_COVERAGE_INFO_FILE}_info
set_target_properties(ov_coverage_${OV_COVERAGE_INFO_FILE}_info
PROPERTIES FOLDER coverage)
endfunction()
#
# ie_coverage_extract(INPUT <info_file> OUTPUT <output_file> PATTERNS <patterns ...>)
# ov_coverage_extract(INPUT <info_file> OUTPUT <output_file> PATTERNS <patterns ...>)
#
function(ie_coverage_extract)
cmake_parse_arguments(IE_COVERAGE "" "INPUT;OUTPUT" "PATTERNS" ${ARGN})
function(ov_coverage_extract)
cmake_parse_arguments(OV_COVERAGE "" "INPUT;OUTPUT" "PATTERNS" ${ARGN})
set(input_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_INPUT}.info")
set(output_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_OUTPUT}.info")
set(input_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INPUT}.info")
set(output_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_OUTPUT}.info")
set(commands lcov --quiet)
foreach(pattern IN LISTS IE_COVERAGE_PATTERNS)
foreach(pattern IN LISTS OV_COVERAGE_PATTERNS)
list(APPEND commands --extract ${input_file} ${pattern})
endforeach()
list(APPEND commands --output-file ${output_file})
add_custom_command(OUTPUT ${output_file}
COMMAND ${commands}
COMMENT "Generate coverage data ${IE_COVERAGE_OUTPUT}"
COMMENT "Generate coverage data ${OV_COVERAGE_OUTPUT}"
DEPENDS ${input_file}
VERBATIM)
add_custom_target(ie_coverage_${IE_COVERAGE_OUTPUT}_info
add_custom_target(ov_coverage_${OV_COVERAGE_OUTPUT}_info
DEPENDS ${output_file})
set_target_properties(ie_coverage_${IE_COVERAGE_OUTPUT}_info
set_target_properties(ov_coverage_${OV_COVERAGE_OUTPUT}_info
PROPERTIES FOLDER coverage)
add_dependencies(ie_coverage_${IE_COVERAGE_OUTPUT}_info ie_coverage_${IE_COVERAGE_INPUT}_info)
add_dependencies(ov_coverage_${OV_COVERAGE_OUTPUT}_info ov_coverage_${OV_COVERAGE_INPUT}_info)
endfunction()
#
# ov_coverage_genhtml(INFO_FILE <info_file> PREFIX <prefix>)
#
function(ov_coverage_genhtml)
cmake_parse_arguments(OV_COVERAGE "" "INFO_FILE;PREFIX" "" ${ARGN})
set(input_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INFO_FILE}.info")
set(output_directory "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INFO_FILE}")
add_custom_command(OUTPUT "${output_directory}/index.html"
COMMAND [ -s ${input_file} ] && genhtml ${input_file} --title "${OV_COVERAGE_INFO_FILE}" --legend
--no-branch-coverage --demangle-cpp
--output-directory "${output_directory}"
--num-spaces 4 --quiet
--prefix "${OV_COVERAGE_PREFIX}" || echo "Skip ${input_file}"
DEPENDS ${input_file}
COMMENT "Generate HTML report for ${OV_COVERAGE_INFO_FILE}"
VERBATIM)
add_custom_target(ov_coverage_${OV_COVERAGE_INFO_FILE}_genhtml
DEPENDS "${output_directory}/index.html")
set_target_properties(ov_coverage_${OV_COVERAGE_INFO_FILE}_genhtml
PROPERTIES FOLDER coverage)
add_dependencies(ov_coverage_${OV_COVERAGE_INFO_FILE}_genhtml ov_coverage_${OV_COVERAGE_INFO_FILE}_info)
add_dependencies(ov_coverage ov_coverage_${OV_COVERAGE_INFO_FILE}_genhtml)
endfunction()
#
# ie_coverage_remove(INPUT <info_file> OUTPUT <output_file> PATTERNS <patterns ...>)
#
function(ie_coverage_remove)
cmake_parse_arguments(IE_COVERAGE "" "INPUT;OUTPUT" "PATTERNS" ${ARGN})
cmake_parse_arguments(OV_COVERAGE "" "INPUT;OUTPUT" "PATTERNS" ${ARGN})
set(input_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_INPUT}.info")
set(output_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_OUTPUT}.info")
set(input_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INPUT}.info")
set(output_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_OUTPUT}.info")
set(commands lcov --quiet)
foreach(pattern IN LISTS IE_COVERAGE_PATTERNS)
foreach(pattern IN LISTS OV_COVERAGE_PATTERNS)
list(APPEND commands --remove ${input_file} ${pattern})
endforeach()
list(APPEND commands --output-file ${output_file})
add_custom_command(OUTPUT ${output_file}
COMMAND ${commands}
COMMENT "Generate coverage data ${IE_COVERAGE_OUTPUT}"
COMMENT "Generate coverage data ${OV_COVERAGE_OUTPUT}"
DEPENDS ${input_file}
VERBATIM)
add_custom_target(ie_coverage_${IE_COVERAGE_OUTPUT}_info
add_custom_target(ov_coverage_${OV_COVERAGE_OUTPUT}_info
DEPENDS ${output_file})
set_target_properties(ie_coverage_${IE_COVERAGE_OUTPUT}_info
set_target_properties(ov_coverage_${OV_COVERAGE_OUTPUT}_info
PROPERTIES FOLDER coverage)
add_dependencies(ie_coverage_${IE_COVERAGE_OUTPUT}_info ie_coverage_${IE_COVERAGE_INPUT}_info)
add_dependencies(ov_coverage_${OV_COVERAGE_OUTPUT}_info ov_coverage_${OV_COVERAGE_INPUT}_info)
endfunction()
#
# ie_coverage_merge(OUTPUT <output file> INPUTS <input files ...>)
#
function(ie_coverage_merge)
cmake_parse_arguments(IE_COVERAGE "" "OUTPUT" "INPUTS" ${ARGN})
cmake_parse_arguments(OV_COVERAGE "" "OUTPUT" "INPUTS" ${ARGN})
set(output_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_OUTPUT}.info")
foreach(input_info_file IN LISTS IE_COVERAGE_INPUTS)
set(input_file ${IE_COVERAGE_REPORTS}/${input_info_file}.info)
list(APPEND dependencies ie_coverage_${input_info_file}_info)
set(output_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_OUTPUT}.info")
foreach(input_info_file IN LISTS OV_COVERAGE_INPUTS)
set(input_file ${OV_COVERAGE_REPORTS}/${input_info_file}.info)
list(APPEND dependencies ov_coverage_${input_info_file}_info)
list(APPEND input_files ${input_file})
endforeach()
add_custom_command(OUTPUT ${output_file}
COMMAND ${CMAKE_COMMAND}
-D "IE_COVERAGE_OUTPUT_FILE=${output_file}"
-D "IE_COVERAGE_INPUT_FILES=${input_files}"
-P "${IE_COVERAGE_SCRIPT_DIR}/coverage_merge.cmake"
COMMENT "Generate coverage data ${IE_COVERAGE_OUTPUT}"
-D "OV_COVERAGE_OUTPUT_FILE=${output_file}"
-D "OV_COVERAGE_INPUT_FILES=${input_files}"
-P "${OV_COVERAGE_SCRIPT_DIR}/coverage_merge.cmake"
COMMENT "Generate coverage data ${OV_COVERAGE_OUTPUT}"
DEPENDS ${input_files}
VERBATIM)
add_custom_target(ie_coverage_${IE_COVERAGE_OUTPUT}_info
add_custom_target(ov_coverage_${OV_COVERAGE_OUTPUT}_info
DEPENDS ${output_file})
set_target_properties(ie_coverage_${IE_COVERAGE_OUTPUT}_info
set_target_properties(ov_coverage_${OV_COVERAGE_OUTPUT}_info
PROPERTIES FOLDER coverage)
add_dependencies(ie_coverage_${IE_COVERAGE_OUTPUT}_info ${dependencies})
add_dependencies(ov_coverage_${OV_COVERAGE_OUTPUT}_info ${dependencies})
endfunction()
#
# ie_coverage_genhtml(INFO_FILE <info_file> PREFIX <prefix>)
#
function(ie_coverage_genhtml)
cmake_parse_arguments(IE_COVERAGE "" "INFO_FILE;PREFIX" "" ${ARGN})
set(input_file "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_INFO_FILE}.info")
set(output_directory "${IE_COVERAGE_REPORTS}/${IE_COVERAGE_INFO_FILE}")
add_custom_command(OUTPUT "${output_directory}/index.html"
COMMAND genhtml ${input_file} --title "${IE_COVERAGE_INFO_FILE}" --legend
--no-branch-coverage --demangle-cpp
--output-directory "${output_directory}"
--num-spaces 4 --quiet
--prefix "${IE_COVERAGE_PREFIX}"
DEPENDS ${input_file}
COMMENT "Generate HTML report for ${IE_COVERAGE_INFO_FILE}"
VERBATIM)
add_custom_target(ie_coverage_${IE_COVERAGE_INFO_FILE}_genhtml
DEPENDS "${output_directory}/index.html")
set_target_properties(ie_coverage_${IE_COVERAGE_INFO_FILE}_genhtml
PROPERTIES FOLDER coverage)
add_dependencies(ie_coverage_${IE_COVERAGE_INFO_FILE}_genhtml ie_coverage_${IE_COVERAGE_INFO_FILE}_info)
add_dependencies(ie_coverage ie_coverage_${IE_COVERAGE_INFO_FILE}_genhtml)
endfunction()
if(NOT TARGET ie_coverage)
add_custom_target(ie_coverage)
set_target_properties(ie_coverage PROPERTIES FOLDER coverage)
add_dependencies(ie_coverage ov_coverage)
endif()
@@ -2,21 +2,21 @@
# SPDX-License-Identifier: Apache-2.0
#
if(NOT DEFINED IE_COVERAGE_REPORTS)
message(FATAL_ERROR "IE_COVERAGE_REPORTS variable is not defined")
if(NOT DEFINED OV_COVERAGE_REPORTS)
message(FATAL_ERROR "OV_COVERAGE_REPORTS variable is not defined")
return()
endif()
file(REMOVE_RECURSE "${IE_COVERAGE_REPORTS}")
file(REMOVE_RECURSE "${OV_COVERAGE_REPORTS}")
if(NOT DEFINED IE_COVERAGE_DIRECTORY)
message(FATAL_ERROR "IE_COVERAGE_DIRECTORY variable is not defined")
if(NOT DEFINED OV_COVERAGE_DIRECTORY)
message(FATAL_ERROR "OV_COVERAGE_DIRECTORY variable is not defined")
return()
endif()
# remove .gcno files which are kept from the previous build
file(GLOB_RECURSE gcno_files "${IE_COVERAGE_DIRECTORY}/*.gcno")
file(GLOB_RECURSE gcno_files "${OV_COVERAGE_DIRECTORY}/*.gcno")
foreach(file IN LISTS gcno_files)
string(REPLACE ".gcno" "" temp_file "${file}")
string(REGEX REPLACE "CMakeFiles/.+dir/" "" temp_file "${temp_file}")
@@ -2,21 +2,21 @@
# SPDX-License-Identifier: Apache-2.0
#
if(NOT DEFINED IE_COVERAGE_OUTPUT_FILE)
message(FATAL_ERROR "IE_COVERAGE_OUTPUT_FILE is not defined")
if(NOT DEFINED OV_COVERAGE_OUTPUT_FILE)
message(FATAL_ERROR "OV_COVERAGE_OUTPUT_FILE is not defined")
endif()
if(NOT DEFINED IE_COVERAGE_INPUT_FILES)
message(FATAL_ERROR "IE_COVERAGE_INPUT_FILES is not defined")
if(NOT DEFINED OV_COVERAGE_INPUT_FILES)
message(FATAL_ERROR "OV_COVERAGE_INPUT_FILES is not defined")
endif()
set(command lcov --quiet)
foreach(input_info_file IN LISTS IE_COVERAGE_INPUT_FILES)
foreach(input_info_file IN LISTS OV_COVERAGE_INPUT_FILES)
file(SIZE ${input_info_file} size)
if(NOT size EQUAL 0)
list(APPEND command --add-tracefile "${input_info_file}")
endif()
endforeach()
list(APPEND command --output-file ${IE_COVERAGE_OUTPUT_FILE})
list(APPEND command --output-file ${OV_COVERAGE_OUTPUT_FILE})
execute_process(COMMAND ${command})
@@ -3,7 +3,7 @@
#
if(ENABLE_CPPLINT)
find_package(PythonInterp 3 QUIET)
find_host_package(PythonInterp 3 QUIET)
if(NOT PYTHONINTERP_FOUND)
message(WARNING "Python3 interpreter was not found (required for cpplint check)")
+1 -1
View File
@@ -3592,7 +3592,7 @@ def CheckOperatorSpacing(filename, clean_lines, linenum, error):
elif not Match(r'#.*include', line):
# Look for < that is not surrounded by spaces. This is only
# triggered if both sides are missing spaces, even though
# technically should should flag if at least one side is missing a
# technically should flag if at least one side is missing a
# space. This is done to avoid some false positives with shifts.
match = Match(r'^(.*[^\s<])<[^\s=<,]', line)
if match:
+7 -7
View File
@@ -2,16 +2,16 @@
# SPDX-License-Identifier: Apache-2.0
#
function (debug_message)
if (VERBOSE_BUILD)
function(debug_message)
if(CMAKE_VERBOSE_MAKEFILE)
message(${ARGV})
endif()
endfunction()
function(clean_message type)
string (REPLACE ";" "" output_string "${ARGN}")
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${output_string}")
if(${ARGV0} STREQUAL "FATAL_ERROR")
message (FATAL_ERROR)
endif()
string(REPLACE ";" "" output_string "${ARGN}")
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${output_string}")
if(${ARGV0} STREQUAL "FATAL_ERROR")
message (FATAL_ERROR)
endif()
endfunction()
@@ -4,7 +4,7 @@
include (download/download)
function (resolve_archive_dependency VAR COMPONENT ARCHIVE ARCHIVE_UNIFIED ARCHIVE_WIN ARCHIVE_LIN ARCHIVE_MAC ARCHIVE_ANDROID TARGET_PATH FOLDER ENVIRONMENT SHA256 FILES_TO_EXTRACT)
function (resolve_archive_dependency VAR COMPONENT ARCHIVE ARCHIVE_UNIFIED ARCHIVE_WIN ARCHIVE_LIN ARCHIVE_MAC ARCHIVE_ANDROID TARGET_PATH FOLDER ENVIRONMENT SHA256 FILES_TO_EXTRACT USE_NEW_LOCATION)
if (ENVIRONMENT AND (DEFINED ${ENVIRONMENT} OR DEFINED ENV{${ENVIRONMENT}}))
set(HAS_ENV "TRUE")
endif()
@@ -12,9 +12,9 @@ function (resolve_archive_dependency VAR COMPONENT ARCHIVE ARCHIVE_UNIFIED ARCHI
if (NOT DEFINED HAS_ENV)
if (ARCHIVE)
#TODO: check whether this is platform specific binary with same name per or it is in common folder
DownloadAndExtract(${COMPONENT} ${ARCHIVE} ${TARGET_PATH} result_path ${FOLDER} ${SHA256} ${FILES_TO_EXTRACT})
DownloadAndExtract(${COMPONENT} ${ARCHIVE} ${TARGET_PATH} result_path ${FOLDER} ${SHA256} ${FILES_TO_EXTRACT} ${USE_NEW_LOCATION})
else()
DownloadAndExtractPlatformSpecific(${COMPONENT} ${ARCHIVE_UNIFIED} ${ARCHIVE_WIN} ${ARCHIVE_LIN} ${ARCHIVE_MAC} ${ARCHIVE_ANDROID} ${TARGET_PATH} result_path ${FOLDER} ${SHA256} ${FILES_TO_EXTRACT})
DownloadAndExtractPlatformSpecific(${COMPONENT} ${ARCHIVE_UNIFIED} ${ARCHIVE_WIN} ${ARCHIVE_LIN} ${ARCHIVE_MAC} ${ARCHIVE_ANDROID} ${TARGET_PATH} result_path ${FOLDER} ${SHA256} ${FILES_TO_EXTRACT} ${USE_NEW_LOCATION})
endif()
set (${VAR} ${result_path} PARENT_SCOPE)
@@ -45,7 +45,7 @@ endfunction(read_version)
function (RESOLVE_DEPENDENCY NAME_OF_CMAKE_VAR)
list(REMOVE_AT ARGV 0)
set(SUPPORTED_ARGS FOLDER ARCHIVE ARCHIVE_UNIFIED ARCHIVE_WIN ARCHIVE_LIN ARCHIVE_MAC ARCHIVE_ANDROID TARGET_PATH ENVIRONMENT VERSION_REGEX SHA256 FILES_TO_EXTRACT)
set(SUPPORTED_ARGS FOLDER ARCHIVE ARCHIVE_UNIFIED ARCHIVE_WIN ARCHIVE_LIN ARCHIVE_MAC ARCHIVE_ANDROID TARGET_PATH ENVIRONMENT VERSION_REGEX SHA256 FILES_TO_EXTRACT USE_NEW_LOCATION)
#unnecessary vars
foreach(arg ${ARGV})
@@ -111,16 +111,20 @@ function (RESOLVE_DEPENDENCY NAME_OF_CMAKE_VAR)
set (FILES_TO_EXTRACT FALSE)
endif()
if (NOT DEFINED USE_NEW_LOCATION)
set (USE_NEW_LOCATION FALSE)
endif()
#for each dependency type have to do separate things
if (ARCHIVE_WIN OR ARCHIVE_LIN OR ARCHIVE_MAC OR ARCHIVE_ANDROID OR ARCHIVE OR ARCHIVE_UNIFIED)
if (NOT DEFINED TARGET_PATH)
message(FATAL_ERROR "TARGET_PATH should be defined for every dependency")
endif()
resolve_archive_dependency(RESULT ${NAME_OF_CMAKE_VAR} ${ARCHIVE} ${ARCHIVE_UNIFIED} ${ARCHIVE_WIN} ${ARCHIVE_LIN} ${ARCHIVE_MAC} ${ARCHIVE_ANDROID} ${TARGET_PATH} ${FOLDER} ${ENVIRONMENT} ${SHA256} ${FILES_TO_EXTRACT})
resolve_archive_dependency(RESULT ${NAME_OF_CMAKE_VAR} ${ARCHIVE} ${ARCHIVE_UNIFIED} ${ARCHIVE_WIN} ${ARCHIVE_LIN} ${ARCHIVE_MAC} ${ARCHIVE_ANDROID} ${TARGET_PATH} ${FOLDER} ${ENVIRONMENT} ${SHA256} ${FILES_TO_EXTRACT} ${USE_NEW_LOCATION})
set(${NAME_OF_CMAKE_VAR} ${RESULT} PARENT_SCOPE)
if (VERSION_REGEX)
GetNameAndUrlToDownload(archive RELATIVE_URL ${ARCHIVE_UNIFIED} ${ARCHIVE_WIN} ${ARCHIVE_LIN} ${ARCHIVE_MAC} ${ARCHIVE_ANDROID})
GetNameAndUrlToDownload(archive RELATIVE_URL ${ARCHIVE_UNIFIED} ${ARCHIVE_WIN} ${ARCHIVE_LIN} ${ARCHIVE_MAC} ${ARCHIVE_ANDROID} ${USE_NEW_LOCATION})
if (archive)
read_version(${archive} ${VERSION_REGEX} "${NAME_OF_CMAKE_VAR}_VERSION")
endif()
@@ -5,9 +5,13 @@
include(download/extract)
include(download/download_and_check)
function (GetNameAndUrlToDownload name url archive_name_unified archive_name_win archive_name_lin archive_name_mac archive_name_android)
function (GetNameAndUrlToDownload name url archive_name_unified archive_name_win archive_name_lin archive_name_mac archive_name_android USE_NEW_LOCATION)
if (archive_name_unified)
set (${url} "thirdparty/unified/${archive_name_unified}" PARENT_SCOPE)
if (USE_NEW_LOCATION)
set (${url} "${archive_name_unified}" PARENT_SCOPE)
else()
set (${url} "thirdparty/unified/${archive_name_unified}" PARENT_SCOPE)
endif()
set (${name} ${archive_name_unified} PARENT_SCOPE)
else()
if(archive_name_lin)
@@ -43,25 +47,26 @@ function (DownloadAndExtractPlatformSpecific
result_path
folder
sha256
files_to_extract)
files_to_extract
USE_NEW_LOCATION)
GetNameAndUrlToDownload(archive_name RELATIVE_URL ${archive_name_unified} ${archive_name_win} ${archive_name_lin} ${archive_name_mac} ${archive_name_android} )
GetNameAndUrlToDownload(archive_name RELATIVE_URL ${archive_name_unified} ${archive_name_win} ${archive_name_lin} ${archive_name_mac} ${archive_name_android} ${USE_NEW_LOCATION})
if (NOT archive_name OR NOT RELATIVE_URL)
return()
endif()
CheckOrDownloadAndExtract(${component} ${RELATIVE_URL} ${archive_name} ${unpacked_path} result_path2 ${folder} TRUE FALSE TRUE ${sha256} ${files_to_extract})
CheckOrDownloadAndExtract(${component} ${RELATIVE_URL} ${archive_name} ${unpacked_path} result_path2 ${folder} TRUE FALSE TRUE ${sha256} ${files_to_extract} ${USE_NEW_LOCATION})
set (${result_path} ${result_path2} PARENT_SCOPE)
endfunction(DownloadAndExtractPlatformSpecific)
#download from common folder
function (DownloadAndExtract component archive_name unpacked_path result_path folder sha256 files_to_extract)
function (DownloadAndExtract component archive_name unpacked_path result_path folder sha256 files_to_extract USE_NEW_LOCATION)
set (RELATIVE_URL "${archive_name}")
set(fattal TRUE)
CheckOrDownloadAndExtract(${component} ${RELATIVE_URL} ${archive_name} ${unpacked_path} result_path2 ${folder} ${fattal} result TRUE ${sha256} ${files_to_extract})
CheckOrDownloadAndExtract(${component} ${RELATIVE_URL} ${archive_name} ${unpacked_path} result_path2 ${folder} ${fattal} result TRUE ${sha256} ${files_to_extract} ${USE_NEW_LOCATION})
if (NOT ${result})
DownloadAndExtractPlatformSpecific(${component} ${archive_name} ${archive_name} ${archive_name} ${unpacked_path} ${result_path2} ${folder} ${sha256} ${files_to_extract})
DownloadAndExtractPlatformSpecific(${component} ${archive_name} ${archive_name} ${archive_name} ${unpacked_path} ${result_path2} ${folder} ${sha256} ${files_to_extract} ${USE_NEW_LOCATION})
endif()
set (${result_path} ${result_path2} PARENT_SCOPE)
@@ -124,6 +129,8 @@ function (DownloadOrExtractInternal URL archive_path unpacked_path folder fattal
if (${result})
set (downloadStatus "OK")
endif()
else()
set (downloadStatus "OK")
endif()
else()
debug_message("archive found on FS : ${archive_path}, however we cannot check it's checksum and think that it is invalid")
@@ -146,7 +153,7 @@ function (DownloadOrExtractInternal URL archive_path unpacked_path folder fattal
endfunction(DownloadOrExtractInternal)
function (CheckOrDownloadAndExtract component RELATIVE_URL archive_name unpacked_path result_path folder fattal resultExt use_alternatives sha256 files_to_extract)
function (CheckOrDownloadAndExtract component RELATIVE_URL archive_name unpacked_path result_path folder fattal resultExt use_alternatives sha256 files_to_extract USE_NEW_LOCATION)
set (archive_path ${TEMP}/download/${archive_name})
set (status "ON")
@@ -154,6 +161,8 @@ function (CheckOrDownloadAndExtract component RELATIVE_URL archive_name unpacked
set(URL "${IE_PATH_TO_DEPS}/${RELATIVE_URL}")
elseif(DEFINED ENV{IE_PATH_TO_DEPS})
set(URL "$ENV{IE_PATH_TO_DEPS}/${RELATIVE_URL}")
elseif(USE_NEW_LOCATION)
set(URL "https://storage.openvinotoolkit.org/dependencies/${RELATIVE_URL}")
else()
set(URL "https://download.01.org/opencv/master/openvinotoolkit/${RELATIVE_URL}")
endif()
+28 -13
View File
@@ -7,7 +7,7 @@ include(target_flags)
# FIXME: there are compiler failures with LTO and Cross-Compile toolchains. Disabling for now, but
# this must be addressed in a proper way
ie_dependent_option (ENABLE_LTO "Enable Link Time Optimization" OFF "LINUX;NOT CMAKE_CROSSCOMPILING; CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9" OFF)
ie_dependent_option (ENABLE_LTO "Enable Link Time Optimization" OFF "LINUX OR (APPLE AND AARCH64);NOT CMAKE_CROSSCOMPILING;CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9" OFF)
ie_option (OS_FOLDER "create OS dedicated folder in output" OFF)
@@ -17,8 +17,17 @@ else()
ie_option(USE_BUILD_TYPE_SUBFOLDER "Create dedicated sub-folder per build type for output binaries" ON)
endif()
# FIXME: ARM cross-compiler generates several "false positive" warnings regarding __builtin_memcpy buffer overflow
ie_dependent_option (TREAT_WARNING_AS_ERROR "Treat build warnings as errors" ON "X86 OR X86_64" OFF)
if(CI_BUILD_NUMBER)
set(TREAT_WARNING_AS_ERROR_DEFAULT ON)
else()
set(TREAT_WARNING_AS_ERROR_DEFAULT OFF)
endif()
ie_dependent_option (TREAT_WARNING_AS_ERROR "WILL BE REMOVED SOON, NEED TO FIX PRIVATE COMPONENTS" ON "X86_64 OR X86" OFF)
if(NOT DEFINED CMAKE_COMPILE_WARNING_AS_ERROR)
set(CMAKE_COMPILE_WARNING_AS_ERROR ${TREAT_WARNING_AS_ERROR_DEFAULT})
endif()
ie_dependent_option (ENABLE_INTEGRITYCHECK "build DLLs with /INTEGRITYCHECK flag" OFF "CMAKE_CXX_COMPILER_ID STREQUAL MSVC" OFF)
@@ -28,7 +37,7 @@ ie_option (ENABLE_UB_SANITIZER "enable UndefinedBahavior sanitizer" OFF)
ie_option (ENABLE_THREAD_SANITIZER "enable checking data races via ThreadSanitizer" OFF)
ie_dependent_option (ENABLE_COVERAGE "enable code coverage" OFF "CMAKE_CXX_COMPILER_ID STREQUAL GNU" OFF)
ie_dependent_option (ENABLE_COVERAGE "enable code coverage" OFF "CMAKE_CXX_COMPILER_ID STREQUAL GNU OR OV_COMPILER_IS_CLANG" OFF)
# Defines CPU capabilities
@@ -38,25 +47,33 @@ ie_dependent_option (ENABLE_AVX2 "Enable AVX2 optimizations" ON "X86_64 OR X86"
ie_dependent_option (ENABLE_AVX512F "Enable AVX512 optimizations" ON "X86_64 OR X86" OFF)
# Type of build, we add this as an explicit option to default it to ON
# FIXME: Ah this moment setting this to OFF will only build ngraph a static library
ie_option (BUILD_SHARED_LIBS "Build as a shared library" ON)
# Android does not support SOVERSION
# see https://www.opengis.ch/2011/11/23/creating-non-versioned-shared-libraries-for-android/
ie_dependent_option (ENABLE_LIBRARY_VERSIONING "Enable libraries versioning" ON "NOT WIN32;NOT ANDROID" OFF)
ie_dependent_option (ENABLE_FASTER_BUILD "Enable build features (PCH, UNITY) to speed up build time" OFF "CMAKE_VERSION VERSION_GREATER_EQUAL 3.16" OFF)
ie_dependent_option (ENABLE_CPPLINT "Enable cpplint checks during the build" ON "UNIX;NOT ANDROID" OFF)
if(UNIX AND NOT ANDROID)
set(STYLE_CHECKS_DEFAULT ON)
else()
set(STYLE_CHECKS_DEFAULT OFF)
endif()
ie_option (ENABLE_CPPLINT "Enable cpplint checks during the build" ${STYLE_CHECKS_DEFAULT})
ie_dependent_option (ENABLE_CPPLINT_REPORT "Build cpplint report instead of failing the build" OFF "ENABLE_CPPLINT" OFF)
ie_dependent_option (ENABLE_CLANG_FORMAT "Enable clang-format checks during the build" ON "UNIX;NOT ANDROID" OFF)
ie_option (ENABLE_CLANG_FORMAT "Enable clang-format checks during the build" ${STYLE_CHECKS_DEFAULT})
ie_dependent_option (ENABLE_NCC_STYLE "Enable ncc style check" ON "UNIX;NOT ANDROID" OFF)
ie_option (ENABLE_NCC_STYLE "Enable ncc style check" ${STYLE_CHECKS_DEFAULT})
ie_option (VERBOSE_BUILD "shows extra information about build" OFF)
ie_option (ENABLE_UNSAFE_LOCATIONS "skip check for MD5 for dependency" OFF)
ie_dependent_option (ENABLE_FUZZING "instrument build for fuzzing" OFF "OV_COMPILER_IS_CLANG; NOT WIN32" OFF)
ie_dependent_option (ENABLE_FUZZING "instrument build for fuzzing" OFF "OV_COMPILER_IS_CLANG;NOT WIN32" OFF)
#
# Check features
@@ -79,6 +96,4 @@ if(ENABLE_AVX512F)
endif()
endif()
if (VERBOSE_BUILD)
set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "" FORCE)
endif()
set(CMAKE_VERBOSE_MAKEFILE ${VERBOSE_BUILD} CACHE BOOL "" FORCE)
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#
set(FRONTEND_INSTALL_INCLUDE "runtime/include/")
set(FRONTEND_INSTALL_INCLUDE "${OV_CPACK_INCLUDEDIR}")
set(FRONTEND_NAME_PREFIX "openvino_")
set(FRONTEND_NAME_SUFFIX "_frontend")
@@ -82,14 +82,15 @@ unset(protobuf_installed CACHE)
#
# ov_add_frontend(NAME <IR|ONNX|...>
# FILEDESCRIPTION <description>
# [LINKABLE_FRONTEND]
# [SKIP_INSTALL]
# [PROTOBUF_LITE]
# FILEDESCRIPTION <description> # used on Windows to describe DLL file
# [LINKABLE_FRONTEND] # whether we can use FE API directly or via FEM only
# [SKIP_INSTALL] # private frontend, not for end users
# [PROTOBUF_LITE] # requires only libprotobuf-lite
# [SKIP_NCC_STYLE] # use custom NCC rules
# [LINK_LIBRARIES <lib1 lib2 ...>])
#
macro(ov_add_frontend)
set(options LINKABLE_FRONTEND SHUTDOWN_PROTOBUF PROTOBUF_LITE SKIP_NCC_STYLE SKIP_INSTALL)
set(options LINKABLE_FRONTEND PROTOBUF_LITE SKIP_NCC_STYLE SKIP_INSTALL)
set(oneValueArgs NAME FILEDESCRIPTION)
set(multiValueArgs LINK_LIBRARIES PROTO_FILES)
cmake_parse_arguments(OV_FRONTEND "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
@@ -105,11 +106,27 @@ macro(ov_add_frontend)
list(APPEND FRONTEND_NAMES ${OV_FRONTEND_NAME})
set(FRONTEND_NAMES "${FRONTEND_NAMES}" CACHE INTERNAL "" FORCE)
file(GLOB_RECURSE LIBRARY_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
file(GLOB_RECURSE LIBRARY_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/src/*.hpp)
file(GLOB_RECURSE LIBRARY_PUBLIC_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp)
set(frontend_root_dir "${CMAKE_CURRENT_SOURCE_DIR}")
if(frontend_root_dir MATCHES ".*src$")
get_filename_component(frontend_root_dir "${frontend_root_dir}" DIRECTORY)
endif()
set(${TARGET_NAME}_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
file(GLOB_RECURSE LIBRARY_SRC ${frontend_root_dir}/src/*.cpp)
if (WIN32)
# Remove linux specific files
file(GLOB_RECURSE LIN_FILES ${frontend_root_dir}/src/os/lin/*.cpp
${frontend_root_dir}/src/os/lin/*.hpp)
list(REMOVE_ITEM LIBRARY_SRC "${LIN_FILES}")
else()
# Remove windows specific files
file(GLOB_RECURSE WIN_FILES ${frontend_root_dir}/src/os/win/*.cpp
${frontend_root_dir}/src/os/win/*.hpp)
list(REMOVE_ITEM LIBRARY_SRC "${WIN_FILES}")
endif()
file(GLOB_RECURSE LIBRARY_HEADERS ${frontend_root_dir}/src/*.hpp)
file(GLOB_RECURSE LIBRARY_PUBLIC_HEADERS ${frontend_root_dir}/include/*.hpp)
set(${TARGET_NAME}_INCLUDE_DIR ${frontend_root_dir}/include)
# Create named folders for the sources within the .vcproj
# Empty name lists them directly under the .vcproj
@@ -119,7 +136,7 @@ macro(ov_add_frontend)
source_group("public include" FILES ${LIBRARY_PUBLIC_HEADERS})
# Generate protobuf file on build time for each '.proto' file in src/proto
file(GLOB proto_files ${CMAKE_CURRENT_SOURCE_DIR}/src/proto/*.proto)
file(GLOB proto_files ${frontend_root_dir}/src/proto/*.proto)
foreach(INFILE IN LISTS proto_files)
get_filename_component(FILE_DIR ${INFILE} DIRECTORY)
@@ -130,7 +147,7 @@ macro(ov_add_frontend)
add_custom_command(
OUTPUT "${OUTPUT_PB_SRC}" "${OUTPUT_PB_HEADER}"
COMMAND ${PROTOC_EXECUTABLE} ARGS --cpp_out ${CMAKE_CURRENT_BINARY_DIR} -I ${FILE_DIR} ${FILE_WE}.proto
DEPENDS ${PROTOC_EXECUTABLE} ${GENERATED_PROTO}
DEPENDS ${PROTOC_DEPENDENCY} ${GENERATED_PROTO}
COMMENT "Running C++ protocol buffer compiler (${PROTOC_EXECUTABLE}) on ${GENERATED_PROTO}"
VERBATIM
COMMAND_EXPAND_LISTS)
@@ -150,7 +167,7 @@ macro(ov_add_frontend)
endif()
# Shutdown protobuf when unloading the front dynamic library
if(OV_FRONTEND_SHUTDOWN_PROTOBUF AND BUILD_SHARED_LIBS)
if(proto_files AND BUILD_SHARED_LIBS)
target_link_libraries(${TARGET_NAME} PRIVATE ov_protobuf_shutdown)
endif()
@@ -161,11 +178,15 @@ macro(ov_add_frontend)
"-DGetAPIVersion=GetAPIVersion${OV_FRONTEND_NAME}")
endif()
# enable LTO
set_target_properties(${TARGET_NAME} PROPERTIES
INTERPROCEDURAL_OPTIMIZATION_RELEASE ${ENABLE_LTO})
if(OV_FRONTEND_SKIP_NCC_STYLE)
# frontend's CMakeLists.txt must define its own custom 'ov_ncc_naming_style' step
else()
ov_ncc_naming_style(FOR_TARGET ${TARGET_NAME}
SOURCE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include"
SOURCE_DIRECTORY "${frontend_root_dir}/include"
ADDITIONAL_INCLUDE_DIRECTORIES
$<TARGET_PROPERTY:frontend_common::static,INTERFACE_INCLUDE_DIRECTORIES>)
endif()
@@ -174,7 +195,7 @@ macro(ov_add_frontend)
PUBLIC
$<BUILD_INTERFACE:${${TARGET_NAME}_INCLUDE_DIR}>
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
${frontend_root_dir}/src
${CMAKE_CURRENT_BINARY_DIR})
ie_add_vs_version_file(NAME ${TARGET_NAME}
@@ -184,8 +205,9 @@ macro(ov_add_frontend)
target_link_libraries(${TARGET_NAME} PUBLIC openvino::runtime)
target_link_libraries(${TARGET_NAME} PRIVATE ${OV_FRONTEND_LINK_LIBRARIES})
ov_add_library_version(${TARGET_NAME})
# WA for TF frontends which always requires protobuf (not protobuf-lite)
# WA for TF frontends which always require protobuf (not protobuf-lite)
# if TF FE is built in static mode, use protobuf for all other FEs
if(FORCE_FRONTENDS_USE_PROTOBUF)
set(OV_FRONTEND_PROTOBUF_LITE OFF)
@@ -194,13 +216,13 @@ macro(ov_add_frontend)
if(proto_files)
if(OV_FRONTEND_PROTOBUF_LITE)
if(NOT protobuf_lite_installed)
ov_install_static_lib(${Protobuf_LITE_LIBRARIES} core)
ov_install_static_lib(${Protobuf_LITE_LIBRARIES} ${OV_CPACK_COMP_CORE})
set(protobuf_lite_installed ON CACHE INTERNAL "" FORCE)
endif()
link_system_libraries(${TARGET_NAME} PRIVATE ${Protobuf_LITE_LIBRARIES})
else()
if(NOT protobuf_installed)
ov_install_static_lib(${Protobuf_LIBRARIES} core)
ov_install_static_lib(${Protobuf_LIBRARIES} ${OV_CPACK_COMP_CORE})
set(protobuf_installed ON CACHE INTERNAL "" FORCE)
endif()
link_system_libraries(${TARGET_NAME} PRIVATE ${Protobuf_LIBRARIES})
@@ -219,22 +241,37 @@ macro(ov_add_frontend)
if(NOT OV_FRONTEND_SKIP_INSTALL)
if(BUILD_SHARED_LIBS)
# Note:
# we use 'framework' as component for deployment scenario, i.e. for libraries itself
# and use common 'core_dev' component for headers, cmake files and symlinks to versioned library
set(lib_component "${OV_FRONTEND_NAME}")
set(dev_component "${OV_CPACK_COMP_CORE_DEV}")
# TODO: whether we need to do it configuralbe on Windows installer?
ie_cpack_add_component(${lib_component} HIDDEN)
if(OV_FRONTEND_LINKABLE_FRONTEND)
set(export_set EXPORT OpenVINOTargets)
set(archive_dest ARCHIVE DESTINATION ${OV_CPACK_ARCHIVEDIR}
COMPONENT ${lib_component})
set(namelink NAMELINK_COMPONENT ${dev_component})
else()
set(namelink NAMELINK_SKIP)
endif()
install(TARGETS ${TARGET_NAME} ${export_set}
RUNTIME DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT core
ARCHIVE DESTINATION ${IE_CPACK_ARCHIVE_PATH} COMPONENT core
LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT core)
RUNTIME DESTINATION ${OV_CPACK_RUNTIMEDIR} COMPONENT ${lib_component}
${archive_dest}
LIBRARY DESTINATION ${OV_CPACK_LIBRARYDIR} COMPONENT ${lib_component}
${namelink})
else()
ov_install_static_lib(${TARGET_NAME} core)
ov_install_static_lib(${TARGET_NAME} ${OV_CPACK_COMP_CORE})
endif()
if(OV_FRONTEND_LINKABLE_FRONTEND)
# install -dev part
# install library development files
install(DIRECTORY ${${TARGET_NAME}_INCLUDE_DIR}/openvino
DESTINATION ${FRONTEND_INSTALL_INCLUDE}/
COMPONENT core_dev
DESTINATION ${FRONTEND_INSTALL_INCLUDE}
COMPONENT ${dev_component}
FILES_MATCHING PATTERN "*.hpp")
set_target_properties(${TARGET_NAME} PROPERTIES EXPORT_NAME frontend::${OV_FRONTEND_NAME})
@@ -243,6 +280,6 @@ macro(ov_add_frontend)
endif()
else()
# skipped frontend has to be installed in static libraries case
ov_install_static_lib(${TARGET_NAME} core)
ov_install_static_lib(${TARGET_NAME} ${OV_CPACK_COMP_CORE})
endif()
endmacro()
+4
View File
@@ -31,4 +31,8 @@ if (LINUX)
set(${res_var} NOTFOUND PARENT_SCOPE)
endif ()
endfunction()
else()
function(get_linux_name res_var)
set(${res_var} NOTFOUND PARENT_SCOPE)
endfunction()
endif ()
+3 -1
View File
@@ -2,7 +2,9 @@
# SPDX-License-Identifier: Apache-2.0
#
find_package(Git REQUIRED)
if(ENABLE_DATA)
find_package(Git REQUIRED)
endif()
set(MODELS_LST "")
set(MODELS_LST_TO_FETCH "")
@@ -2,70 +2,99 @@
# SPDX-License-Identifier: Apache-2.0
#
if(NOT COMMAND ie_check_pip_package)
message(FATAL_ERROR "ncc_naming_style.cmake must be included after ie_check_pip_package")
if(NOT COMMAND ov_check_pip_packages)
message(FATAL_ERROR "Internal error: ncc_naming_style.cmake must be included after ov_check_pip_packages")
endif()
set(ncc_style_dir "${IEDevScripts_DIR}/ncc_naming_style")
set(ncc_style_bin_dir "${CMAKE_CURRENT_BINARY_DIR}/ncc_naming_style")
# try to find_package(Clang QUIET)
# ClangConfig.cmake contains bug that if libclang-XX-dev is not
# installed, then find_package fails with errors even in QUIET mode
configure_file("${ncc_style_dir}/try_find_clang.cmake"
"${ncc_style_bin_dir}/source/CMakeLists.txt" COPYONLY)
execute_process(
COMMAND
"${CMAKE_COMMAND}" -S "${ncc_style_bin_dir}/source"
-B "${ncc_style_bin_dir}/build"
RESULT_VARIABLE clang_find_result
OUTPUT_VARIABLE output_var
ERROR_VARIABLE error_var)
if(NOT clang_find_result EQUAL "0")
message(WARNING "Please, install libclang-[N]-dev package (required for ncc naming style check)")
message(WARNING "find_package(Clang) output: ${output_var}")
message(WARNING "find_package(Clang) error: ${error_var}")
set(ENABLE_NCC_STYLE OFF)
endif()
# Since we were able to find_package(Clang) in a separate process
# let's try to find in current process
if(ENABLE_NCC_STYLE)
find_host_package(Clang QUIET)
if(Clang_FOUND AND TARGET libclang)
get_target_property(libclang_location libclang LOCATION)
message(STATUS "Found libclang: ${libclang_location}")
else()
message(WARNING "libclang is not found (required for ncc naming style check)")
set(ENABLE_NCC_STYLE OFF)
endif()
endif()
# find python3
find_package(PythonInterp 3 QUIET)
find_host_package(PythonInterp 3 QUIET)
if(NOT PYTHONINTERP_FOUND)
message(WARNING "Python3 interpreter was not found (required for ncc naming style check)")
set(ENABLE_NCC_STYLE OFF)
endif()
if(PYTHON_VERSION_MINOR EQUAL 6)
set(clang_version 10)
elseif(PYTHON_VERSION_MINOR EQUAL 7)
set(clang_version 11)
elseif(PYTHON_VERSION_MINOR EQUAL 8)
set(clang_version 12)
elseif(PYTHON_VERSION_MINOR EQUAL 9)
set(clang_version 12)
elseif(PYTHON_VERSION_MINOR EQUAL 10)
set(clang_version 14)
else()
message(WARNING "Cannot suggest clang package for python ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")
endif()
if(ENABLE_NCC_STYLE)
# try to find_package(Clang QUIET)
# ClangConfig.cmake contains bug that if libclang-XX-dev is not
# installed, then find_package fails with errors even in QUIET mode
configure_file("${ncc_style_dir}/try_find_clang.cmake"
"${ncc_style_bin_dir}/source/CMakeLists.txt" COPYONLY)
execute_process(
COMMAND "${CMAKE_COMMAND}" -S "${ncc_style_bin_dir}/source"
-B "${ncc_style_bin_dir}/build"
RESULT_VARIABLE clang_find_result
OUTPUT_VARIABLE output_var
ERROR_VARIABLE error_var)
if(NOT clang_find_result EQUAL "0")
message(WARNING "Please, install `apt-get install clang-${clang_version} libclang-${clang_version}-dev` package (required for ncc naming style check)")
message(TRACE "find_package(Clang) output: ${output_var}")
message(TRACE "find_package(Clang) error: ${error_var}")
set(ENABLE_NCC_STYLE OFF)
endif()
endif()
# Since we were able to find_package(Clang) in a separate process
# let's try to find in current process
if(ENABLE_NCC_STYLE)
if(APPLE)
find_host_library(libclang_location NAMES clang
PATHS /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib
DOC "Path to clang library")
else()
find_host_package(Clang QUIET)
endif()
if(Clang_FOUND AND TARGET libclang)
get_target_property(libclang_location libclang LOCATION)
endif()
if(NOT libclang_location)
message(WARNING "clang-${clang_version} libclang-${clang_version}-dev are not found (required for ncc naming style check)")
set(ENABLE_NCC_STYLE OFF)
else()
message(STATUS "Found libclang: ${libclang_location}")
endif()
endif()
# check python requirements_dev.txt
if(ENABLE_NCC_STYLE)
set(ncc_script_py "${ncc_style_dir}/ncc/ncc.py")
set(ncc_script_py "${ncc_style_dir}/ncc/ncc.py")
if(NOT EXISTS ${ncc_script_py})
message(WARNING "ncc.py is not downloaded via submodule")
set(ENABLE_NCC_STYLE OFF)
if(NOT EXISTS ${ncc_script_py})
message(WARNING "ncc.py is not downloaded via submodule")
set(ENABLE_NCC_STYLE OFF)
endif()
endif()
if(ENABLE_NCC_STYLE)
set(req_file "${ncc_style_dir}/requirements_dev.txt")
file(STRINGS ${req_file} req_lines)
foreach(req IN LISTS req_lines)
ie_check_pip_package(${req} STATUS)
endforeach()
ov_check_pip_packages(REQUIREMENTS_FILE "${ncc_style_dir}/requirements_dev.txt"
RESULT_VAR python_clang_FOUND
WARNING_MESSAGE "NCC style check will be unavailable"
MESSAGE_MODE WARNING)
if(NOT python_clang_FOUND)
# Note: warnings is already thrown by `ov_check_pip_packages`
set(ENABLE_NCC_STYLE OFF)
endif()
endif()
# create high-level target
@@ -106,9 +135,11 @@ function(ov_ncc_naming_style)
"${NCC_STYLE_SOURCE_DIRECTORY}/*.cpp")
list(APPEND NCC_STYLE_ADDITIONAL_INCLUDE_DIRECTORIES "${NCC_STYLE_SOURCE_DIRECTORY}")
# without it sources with same name from different directories will map to same .ncc_style target
file(RELATIVE_PATH source_dir_rel ${CMAKE_SOURCE_DIR} ${NCC_STYLE_SOURCE_DIRECTORY})
foreach(source IN LISTS sources)
set(output_file "${ncc_style_bin_dir}/${source}.ncc_style")
set(output_file "${ncc_style_bin_dir}/${source_dir_rel}/${source}.ncc_style")
set(full_source_path "${NCC_STYLE_SOURCE_DIRECTORY}/${source}")
add_custom_command(
@@ -26,7 +26,7 @@ execute_process(
--include ${ADDITIONAL_INCLUDE_DIRECTORIES}
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE output)
ERROR_VARIABLE error)
file(WRITE "${OUTPUT_FILE}" "${output}")
@@ -40,6 +40,6 @@ endif()
if(failed AND NOT EXPECTED_FAIL)
# Display the output to console (to parse it form IDE)
message("${output}")
message("${output}\n${error}")
message(FATAL_ERROR "[ncc naming style] Naming style check failed for ${INPUT_FILE}")
endif()
@@ -1,2 +1,6 @@
clang==11.0
clang==10.0.1; python_version == '3.6'
clang==11.1.0; python_version == '3.7'
clang==12.0.1; python_version == '3.8'
clang==12.0.1; python_version == '3.9'
clang==14.0; python_version == '3.10'
pyyaml
+10 -1
View File
@@ -6,11 +6,20 @@
include (CMakeDependentOption)
if(POLICY CMP0127)
cmake_policy(SET CMP0127 NEW)
endif()
macro (ie_option variable description value)
option(${variable} "${description}" ${value})
list(APPEND IE_OPTIONS ${variable})
endmacro()
# Usage: ov_option(<option_variable> "description" <initial value or boolean expression> [IF <condition>])
macro (ov_option variable description value)
ie_option(${variable} "${description}" ${value})
endmacro()
macro (ie_dependent_option variable description def_value condition fallback_value)
cmake_dependent_option(${variable} "${description}" ${def_value} "${condition}" ${fallback_value})
list(APPEND IE_OPTIONS ${variable})
@@ -37,7 +46,7 @@ function (print_enabled_features)
message(FATAL_ERROR "CI_BUILD_NUMBER is not set yet")
endif()
message(STATUS "Inference Engine enabled features: ")
message(STATUS "OpenVINO Runtime enabled features: ")
message(STATUS "")
message(STATUS " CI_BUILD_NUMBER: ${CI_BUILD_NUMBER}")
foreach(_var ${IE_OPTIONS})
-82
View File
@@ -1,82 +0,0 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
include(CMakeParseArguments)
include(CPackComponent)
#
# ie_cpack_set_library_dir()
#
# Set library directory for cpack
#
function(ie_cpack_set_library_dir)
if(WIN32)
set(IE_CPACK_LIBRARY_PATH runtime/lib/${ARCH_FOLDER}/$<CONFIG> PARENT_SCOPE)
set(IE_CPACK_RUNTIME_PATH runtime/bin/${ARCH_FOLDER}/$<CONFIG> PARENT_SCOPE)
set(IE_CPACK_ARCHIVE_PATH runtime/lib/${ARCH_FOLDER}/$<CONFIG> PARENT_SCOPE)
elseif(APPLE)
set(IE_CPACK_LIBRARY_PATH runtime/lib/${ARCH_FOLDER}/$<CONFIG> PARENT_SCOPE)
set(IE_CPACK_RUNTIME_PATH runtime/lib/${ARCH_FOLDER}/$<CONFIG> PARENT_SCOPE)
set(IE_CPACK_ARCHIVE_PATH runtime/lib/${ARCH_FOLDER}/$<CONFIG> PARENT_SCOPE)
else()
set(IE_CPACK_LIBRARY_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE)
set(IE_CPACK_RUNTIME_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE)
set(IE_CPACK_ARCHIVE_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE)
endif()
endfunction()
ie_cpack_set_library_dir()
#
# ie_cpack_add_component(NAME ...)
#
# Wraps original `cpack_add_component` and adds component to internal IE list
#
unset(IE_CPACK_COMPONENTS_ALL CACHE)
macro(ie_cpack_add_component NAME)
list(APPEND IE_CPACK_COMPONENTS_ALL ${NAME})
set(IE_CPACK_COMPONENTS_ALL "${IE_CPACK_COMPONENTS_ALL}" CACHE STRING "" FORCE)
cpack_add_component(${NAME} ${args})
endmacro()
# create test component
if(ENABLE_TESTS)
cpack_add_component(tests DISABLED)
endif()
macro(ie_cpack)
set(CPACK_GENERATOR "TGZ")
set(CPACK_SOURCE_GENERATOR "")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenVINO toolkit")
set(CPACK_COMPONENT_UNSPECIFIED_REQUIRED OFF)
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) # multiple components
set(CPACK_PACKAGE_VENDOR "Intel Corporation")
set(CPACK_VERBATIM_VARIABLES ON)
set(CPACK_COMPONENTS_ALL ${ARGN})
if (NOT DEFINED CPACK_STRIP_FILES)
set(CPACK_STRIP_FILES ON)
endif()
set(CPACK_THREADS 8)
string(REPLACE "/" "_" CPACK_PACKAGE_VERSION "${CI_BUILD_NUMBER}")
if(WIN32)
set(CPACK_PACKAGE_NAME inference-engine_${CMAKE_BUILD_TYPE})
else()
set(CPACK_PACKAGE_NAME inference-engine)
endif()
foreach(ver IN LISTS MAJOR MINOR PATCH)
if(DEFINED IE_VERSION_${ver})
set(CPACK_PACKAGE_VERSION_${ver} ${IE_VERSION_${ver}})
endif()
endforeach()
if(OS_FOLDER)
set(CPACK_SYSTEM_NAME "${OS_FOLDER}")
endif()
include(CPack)
endmacro()
@@ -0,0 +1,32 @@
openvino (2022.3.0) unstable; urgency=low
* Implemented Debian packages support
* Support of Ubuntu 22.04
* Support of python 3.10
* Introduced OpenVINO Runtime 2.0 C API
-- OpenVINO Developers <openvino@intel.com> Sun, 30 Oct 2022 04:17:51 +0800
openvino (2022.2.0) unstable; urgency=low
* Broader model and hardware support - Optimize & deploy with ease across an expanded range of deep learning models including NLP, and access AI acceleration across an expanded range of hardware.
* NEW: Support for Intel 13th Gen Core Processor for desktop (code named Raptor Lake).
* NEW: Preview support for Intels discrete graphics cards, Intel® Data Center GPU Flex Series and Intel® Arc™ GPU for DL inferencing workloads in intelligent cloud, edge and media analytics workloads. Hundreds of models enabled.
* NEW: Test your model performance with preview support for Intel 4th Generation Xeon® processors (code named Sapphire Rapids).
* Broader support for NLP models and use cases like text to speech and voice recognition. Reduced memory consumption when using Dynamic Input Shapes on CPU. Improved efficiency for NLP applications.
* Frameworks Integrations More options that provide minimal code changes to align with your existing frameworks
* OpenVINO Execution Provider for ONNX Runtime gives ONNX Runtime developers more choice for performance optimizations by making it easy to add OpenVINO with minimal code changes.
* NEW: Accelerate PyTorch models with ONNX Runtime using OpenVINO™ integration with ONNX Runtime for PyTorch (OpenVINO™ Torch-ORT). Now PyTorch developers can stay within their framework and benefit from OpenVINO performance gains.
* OpenVINO Integration with TensorFlow now supports more deep learning models with improved inferencing performance.
* More portability and performance - See a performance boost straight away with automatic device discovery, load balancing & dynamic inference parallelism across CPU, GPU, and more.
* NEW: Introducing new performance hint (”Cumulative throughput”) in AUTO device, enabling multiple accelerators (e.g. multiple GPUs) to be used at once to maximize inferencing performance.
* NEW: Introducing Intel® FPGA AI Suite support which enables real-time, low-latency, and low-power deep learning inference in this easy-to-use package
-- OpenVINO Developers <openvino@intel.com> Thu, 28 Jul 2022 04:17:51 +0800
openvino (2022.1.0) unstable; urgency=low
* Implemented OpenVINO 2.0 Runtime API for both C++ and Python
* Introduced IR v11 which is aligned with frameworks model format
-- OpenVINO Developers <openvino@intel.com> Thu, 22 Mar 2022 04:12:56 +0800
@@ -0,0 +1,23 @@
* Sun Jul 4 12:00:00 2010 OpenVINO Developers <openvino@intel.com> - 2022.3.0-1
- Implemented Debian, RPM packages support
- Support of Ubuntu 22.04
- Support of python 3.10
- Introduced OpenVINO Runtime 2.0 C API
* Thu Jul 28 12:00:00 2022 OpenVINO Developers <openvino@intel.com> - 2022.2.0-1
- Broader model and hardware support - Optimize & deploy with ease across an expanded range of deep learning models including NLP, and access AI acceleration across an expanded range of hardware.
- NEW: Support for Intel 13th Gen Core Processor for desktop (code named Raptor Lake).
- NEW: Preview support for Intels discrete graphics cards, Intel® Data Center GPU Flex Series and Intel® Arc™ GPU for DL inferencing workloads in intelligent cloud, edge and media analytics workloads. Hundreds of models enabled.
- NEW: Test your model performance with preview support for Intel 4th Generation Xeon® processors (code named Sapphire Rapids).
- Broader support for NLP models and use cases like text to speech and voice recognition. Reduced memory consumption when using Dynamic Input Shapes on CPU. Improved efficiency for NLP applications.
- Frameworks Integrations More options that provide minimal code changes to align with your existing frameworks
- OpenVINO Execution Provider for ONNX Runtime gives ONNX Runtime developers more choice for performance optimizations by making it easy to add OpenVINO with minimal code changes.
- NEW: Accelerate PyTorch models with ONNX Runtime using OpenVINO™ integration with ONNX Runtime for PyTorch (OpenVINO™ Torch-ORT). Now PyTorch developers can stay within their framework and benefit from OpenVINO performance gains.
- OpenVINO Integration with TensorFlow now supports more deep learning models with improved inferencing performance.
- More portability and performance - See a performance boost straight away with automatic device discovery, load balancing & dynamic inference parallelism across CPU, GPU, and more.
- NEW: Introducing new performance hint (”Cumulative throughput”) in AUTO device, enabling multiple accelerators (e.g. multiple GPUs) to be used at once to maximize inferencing performance.
- NEW: Introducing Intel® FPGA AI Suite support which enables real-time, low-latency, and low-power deep learning inference in this easy-to-use package
* Thu Mar 22 12:00:00 2022 OpenVINO Developers <openvino@intel.com> - 2022.1.0-1
- Implemented OpenVINO 2.0 Runtime API for both C++ and Python
- Introduced IR v11 which is aligned with frameworks model format
@@ -0,0 +1,71 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
include(GNUInstallDirs)
#
# ov_common_libraries_cpack_set_dirs()
#
# Set directories for cpack
#
macro(ov_common_libraries_cpack_set_dirs)
# override default locations for common libraries
set(OV_CPACK_TOOLSDIR ${CMAKE_INSTALL_BINDIR}) # only C++ tools are here
set(OV_CPACK_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR})
set(OV_CPACK_LIBRARYDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_CPACK_RUNTIMEDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_WHEEL_RUNTIMEDIR ${OV_CPACK_RUNTIMEDIR})
set(OV_CPACK_ARCHIVEDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_CPACK_PLUGINSDIR ${CMAKE_INSTALL_LIBDIR}/openvino-${OpenVINO_VERSION})
set(OV_CPACK_IE_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/inferenceengine${OpenVINO_VERSION})
set(OV_CPACK_NGRAPH_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/ngraph${OpenVINO_VERSION})
set(OV_CPACK_OPENVINO_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/openvino${OpenVINO_VERSION})
set(OV_CPACK_DOCDIR ${CMAKE_INSTALL_DATADIR}/doc/openvino-${OpenVINO_VERSION})
ov_get_pyversion(pyversion)
if(pyversion)
set(OV_CPACK_PYTHONDIR ${CMAKE_INSTALL_LIBDIR}/${pyversion}/site-packages)
endif()
# non-native stuff
set(OV_CPACK_SHAREDIR ${CMAKE_INSTALL_DATADIR}/openvino) # internal
set(OV_CPACK_SAMPLESDIR ${OV_CPACK_SHAREDIR}/samples)
set(OV_CPACK_DEVREQDIR ${OV_CPACK_SHAREDIR})
unset(OV_CPACK_SHAREDIR)
# skipped during common libraries packaging
set(OV_CPACK_WHEELSDIR "tools")
# for BW compatibility
set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR})
set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR})
set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR})
endmacro()
ov_common_libraries_cpack_set_dirs()
#
# Override CPack components name for common libraries generator
# This is needed to change the granularity, i.e. merge several components
# into a single one
#
macro(ov_override_component_names)
# merge C++ and C runtimes
set(OV_CPACK_COMP_CORE_C "${OV_CPACK_COMP_CORE}")
set(OV_CPACK_COMP_CORE_C_DEV "${OV_CPACK_COMP_CORE_DEV}")
# merge all pythons into a single component
set(OV_CPACK_COMP_PYTHON_OPENVINO "pyopenvino")
set(OV_CPACK_COMP_PYTHON_IE_API "${OV_CPACK_COMP_PYTHON_OPENVINO}")
set(OV_CPACK_COMP_PYTHON_NGRAPH "${OV_CPACK_COMP_PYTHON_OPENVINO}")
# merge all C / C++ samples as a single samples component
set(OV_CPACK_COMP_CPP_SAMPLES "samples")
set(OV_CPACK_COMP_C_SAMPLES "${OV_CPACK_COMP_CPP_SAMPLES}")
# move requirements.txt to core-dev
set(OV_CPACK_COMP_DEV_REQ_FILES "${OV_CPACK_COMP_CORE_DEV}")
# move core_tools to core-dev
set(OV_CPACK_COMP_CORE_TOOLS "${OV_CPACK_COMP_CORE_DEV}")
endmacro()
ov_override_component_names()
@@ -0,0 +1,31 @@
This package was debianized by OpenVINO Developers <openvino@intel.com> on
Wed, 16 Aug 2006 19:17:30 +0100.
Copyright:
deb822.py is Copyright (C) 2005-2006 dann frazier <dannf@dannf.org>
2006 John Wright <john@movingsucks.org>
changelog.py, setup.py, README.Changelog and the contents of
examples/changelog/ are
Copyright (C) 2006-7 James Westby <jw+debian@jameswestby.net>
Copyright (C) 2008 Canonical Ltd.
debian_support.py is Copyright (C) 2005 Florian Weimer <fw@deneb.enyo.de>
Debtags.py, and the contents of examples/debtags/ are
Copyright (C) 2003--3006 Enrico Zini <enrico@debian.org>
debfile.py, arfile.py, and examples/debfile/* are
Copyright (C) 2007 Stefano Zacchiroli <zack@debian.org>
2007 Filippo Giunchedi <filippo@debian.org>
Licenses:
The following modules are released under GPL v2 or above:
changelog.py, debian_support.py, deb822.py
The following modules are released under GPL v3 or above:
debfile.py, arfile.py, debtags.py
On Debian systems, the complete text of the Apache 2.0 License
can be found in `/usr/share/common-licenses/Apache-2.0'.
@@ -0,0 +1,286 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
include(GNUInstallDirs)
#
# ov_debian_cpack_set_dirs()
#
# Set directories for cpack
#
macro(ov_debian_cpack_set_dirs)
# override default locations for Debian
set(OV_CPACK_TOOLSDIR ${CMAKE_INSTALL_BINDIR}) # only C++ tools are here
set(OV_CPACK_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR})
set(OV_CPACK_LIBRARYDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_CPACK_RUNTIMEDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_WHEEL_RUNTIMEDIR ${OV_CPACK_RUNTIMEDIR})
set(OV_CPACK_ARCHIVEDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_CPACK_PLUGINSDIR ${CMAKE_INSTALL_LIBDIR}/openvino-${OpenVINO_VERSION})
set(OV_CPACK_IE_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/inferenceengine${OpenVINO_VERSION})
set(OV_CPACK_NGRAPH_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/ngraph${OpenVINO_VERSION})
set(OV_CPACK_OPENVINO_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/openvino${OpenVINO_VERSION})
set(OV_CPACK_DOCDIR ${CMAKE_INSTALL_DATADIR}/doc/openvino-${OpenVINO_VERSION})
set(OV_CPACK_PYTHONDIR lib/python3/dist-packages)
# non-native stuff
set(OV_CPACK_SHAREDIR ${CMAKE_INSTALL_DATADIR}/openvino) # internal
set(OV_CPACK_SAMPLESDIR ${OV_CPACK_SHAREDIR}/samples)
set(OV_CPACK_DEVREQDIR ${OV_CPACK_SHAREDIR})
unset(OV_CPACK_SHAREDIR)
# skipped during debian packaging
set(OV_CPACK_WHEELSDIR "tools")
# for BW compatibility
set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR})
set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR})
set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR})
endmacro()
ov_debian_cpack_set_dirs()
#
# Override CPack components name for Debian generator
# This is needed to change the granularity, i.e. merge several components
# into a single one
#
macro(ov_override_component_names)
# merge C++ and C runtimes
set(OV_CPACK_COMP_CORE_C "${OV_CPACK_COMP_CORE}")
set(OV_CPACK_COMP_CORE_C_DEV "${OV_CPACK_COMP_CORE_DEV}")
# merge all pythons into a single component
set(OV_CPACK_COMP_PYTHON_OPENVINO "pyopenvino")
set(OV_CPACK_COMP_PYTHON_IE_API "${OV_CPACK_COMP_PYTHON_OPENVINO}")
set(OV_CPACK_COMP_PYTHON_NGRAPH "${OV_CPACK_COMP_PYTHON_OPENVINO}")
# merge all C / C++ samples as a single samples component
set(OV_CPACK_COMP_CPP_SAMPLES "samples")
set(OV_CPACK_COMP_C_SAMPLES "${OV_CPACK_COMP_CPP_SAMPLES}")
# move requirements.txt to core-dev
set(OV_CPACK_COMP_DEV_REQ_FILES "${OV_CPACK_COMP_CORE_DEV}")
# move core_tools to core-dev
set(OV_CPACK_COMP_CORE_TOOLS "${OV_CPACK_COMP_CORE_DEV}")
endmacro()
ov_override_component_names()
#
# Common Debian specific settings
#
macro(ov_debian_specific_settings)
# multiple packages are generated
set(CPACK_DEB_COMPONENT_INSTALL ON)
# automatically find dependencies for binaries
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
# enable dependencies between components
set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS ON)
# control file permissions
set(CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION OFF)
# homepage
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://docs.openvino.ai/")
# use lintian to check packages in post-build step
set(CPACK_POST_BUILD_SCRIPTS "${IEDevScripts_DIR}/packaging/debian_post_build.cmake")
# enable for debug cpack run
if(NOT DEFINED CPACK_DEBIAN_PACKAGE_DEBUG)
set(CPACK_DEBIAN_PACKAGE_DEBUG OFF)
endif()
# WA: dpkg-shlibdeps requires folder with libraries
# proper way is to use -l (path to libs) and -L (path to shlibs) for other already installed components
# but it requires CMake source code changes
# with current WA automatic deps detection via dpkg-shlibdeps for "our libraries"
# is ignored; but dependencies between our components are here because of
# CPACK_COMPONENT_<UCOMP>_DEPENDS variables
if(DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
else()
message(FATAL_ERROR "CMAKE_LIBRARY_OUTPUT_DIRECTORY is empty")
endif()
# automatic dependencies discovering between openvino and user packages
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON)
# OpenVINO does not have backward and forward compatibility
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY "=")
# naming convention for debian package files
set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
# need to update this version once we rebuild the same package with additional fixes
# set(CPACK_DEBIAN_PACKAGE_RELEASE "1")
# enable this if someday we change the version scheme
# set(CPACK_DEBIAN_PACKAGE_EPOCH "2")
# temporary WA for debian package architecture for cross-compilation
# proper solution: to force cmake auto-detect this
if(CMAKE_CROSSCOMPILING)
if(AARCH64)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE arm64)
elseif(ARM)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE armhf)
elseif(x86)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
endif()
endif()
endmacro()
ov_debian_specific_settings()
# needed to override cmake auto generated files
set(def_postinst "${OpenVINO_BINARY_DIR}/_CPack_Packages/postinst")
set(def_postrm "${OpenVINO_BINARY_DIR}/_CPack_Packages/postrm")
set(def_triggers "${OpenVINO_BINARY_DIR}/_CPack_Packages/triggers")
set(triggers_content "activate-noawait ldconfig\n\n")
set(post_content "#!/bin/sh\n\nset -e;\nset -e\n\n")
file(REMOVE ${def_postinst} ${def_postrm} ${def_triggers})
file(WRITE "${def_postinst}" "${post_content}")
file(WRITE "${def_postrm}" "${post_content}")
file(WRITE "${def_triggers}" "${triggers_content}")
#
# Functions helpful for packaging your modules with Debian cpack
#
#
# ov_debian_add_changelog_and_copyright(<comp name>)
#
function(ov_debian_add_changelog_and_copyright comp)
string(TOUPPER "${comp}" ucomp)
if(NOT DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
else()
set(package_name "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
endif()
set(package_name "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
# copyright
install(FILES "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/copyright"
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/${package_name}/
COMPONENT ${comp})
# create changelog.gz
find_host_program(gzip_PROGRAM NAMES gzip DOC "Path to gzip tool")
if(NOT gzip_PROGRAM)
message(FATAL_ERROR "Failed to find gzip tool")
endif()
set(changelog_src "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/changelog")
set(package_bin_dir "${OpenVINO_BINARY_DIR}/_CPack_Packages/${package_name}")
set(changelog_output "${package_bin_dir}/changelog")
file(REMOVE "${changelog_output}")
file(REMOVE "${changelog_output}.gz")
file(MAKE_DIRECTORY "${package_bin_dir}")
configure_file("${changelog_src}" "${changelog_output}" COPYONLY)
execute_process(COMMAND gzip -n -9 "${changelog_output}"
WORKING_DIRECTORY "${package_bin_dir}"
OUTPUT_VARIABLE output_message
ERROR_VARIABLE error_message
RESULT_VARIABLE exit_code
OUTPUT_STRIP_TRAILING_WHITESPACE)
# install changelog.gz
install(FILES "${changelog_output}.gz"
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/${package_name}/
COMPONENT ${comp})
endfunction()
#
# ov_debian_add_lintian_suppression(<comp name> <suppression1, suppression2, ...>)
#
function(ov_debian_add_lintian_suppression comp)
set(lines ${ARGN})
string(TOUPPER "${comp}" ucomp)
if(NOT DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
else()
set(package_name "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
endif()
foreach(line IN LISTS lines)
set(line "${package_name} binary: ${line}")
if(content)
set(content "${content}\n${line}")
else()
set(content "${line}")
endif()
endforeach()
set(lintian_override_file "${OpenVINO_BINARY_DIR}/_CPack_Packages/lintian/${package_name}")
file(REMOVE ${lintian_override_file})
file(WRITE ${lintian_override_file} ${content})
install(FILES ${lintian_override_file}
DESTINATION ${CMAKE_INSTALL_DATADIR}/lintian/overrides/
COMPONENT ${comp})
endfunction()
#
# ov_debian_generate_conflicts(<comp name>)
#
function(ov_debian_generate_conflicts comp)
set(cpack_name_versions ${ARGN})
string(TOUPPER "${comp}" ucomp)
# sanity check
if(NOT DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
else()
if(NOT DEFINED cpack_name_ver)
message(FATAL_ERROR "Internal variable 'cpack_name_ver' is not defined")
endif()
string(REPLACE "${cpack_name_ver}" "" package_name_base "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
endif()
foreach(cpack_name_version IN LISTS cpack_name_versions)
if(package_names)
set(package_names "${package_names}, ${package_name_base}${cpack_name_version}")
else()
set(package_names "${package_name_base}${cpack_name_version}")
endif()
endforeach()
set(CPACK_DEBIAN_${ucomp}_PACKAGE_CONFLICTS "${package_names}" PARENT_SCOPE)
endfunction()
#
# ov_debian_add_latest_component(<comp>)
#
# Adds latest component for `comp`, but without a version
# Description and other stuff (arch) is taken from the main component
#
macro(ov_debian_add_latest_component comp)
string(TOUPPER "${comp}" ucomp)
set(comp_name "${comp}_latest")
set(upper_case "${ucomp}_LATEST")
set(CPACK_COMPONENT_${upper_case}_DESCRIPTION "${CPACK_COMPONENT_${ucomp}_DESCRIPTION}")
set(CPACK_COMPONENT_${upper_case}_ARCHITECTURE "all")
set(CPACK_COMPONENT_${upper_case}_DEPENDS "${comp}")
# take package name
if(DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
string(REPLACE "-${cpack_name_ver}" ""
CPACK_DEBIAN_${upper_case}_PACKAGE_NAME
"${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
else()
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
endif()
ov_debian_add_lintian_suppression(${comp_name}
# it's umbrella package
"empty-binary-package")
# add latest to a list of debian packages
list(APPEND CPACK_COMPONENTS_ALL ${comp_name})
endmacro()
@@ -0,0 +1,41 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
find_program(lintian_PROGRAM NAMES lintian DOC "Path to lintian tool")
if(NOT lintian_PROGRAM)
message(WARNING "Failed to find 'lintian' tool, use 'sudo apt-get install lintian' to install it")
return()
endif()
execute_process(COMMAND "${lintian_PROGRAM}" --version
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
RESULT_VARIABLE lintian_code
OUTPUT_VARIABLE lintian_version)
if(NOT lintian_code EQUAL 0)
message(FATAL_ERROR "Internal error: Failed to determine lintian version")
else()
message(STATUS "${lintian_version}")
endif()
set(lintian_passed ON)
foreach(deb_file IN LISTS CPACK_PACKAGE_FILES)
execute_process(COMMAND "${lintian_PROGRAM}" ${deb_file}
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
RESULT_VARIABLE lintian_exit_code
OUTPUT_VARIABLE lintian_output)
get_filename_component(deb_name "${deb_file}" NAME)
if(NOT lintian_exit_code EQUAL 0)
message("Package ${deb_name}:")
message("${lintian_output}")
set(lintian_passed OFF)
endif()
endforeach()
if(NOT lintian_passed)
message(FATAL_ERROR "Lintian has found some mistakes")
endif()
@@ -0,0 +1,41 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
# installation directory
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Intel")
# TODO: provide icons
# set(CPACK_NSIS_MUI_ICON "")
# set(CPACK_NSIS_MUI_UNIICON "${CPACK_NSIS_MUI_ICON}")
# set(CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP "")
# set(CPACK_NSIS_MUI_UNWELCOMEFINISHPAGE_BITMAP "")
# set(CPACK_NSIS_MUI_HEADERIMAGE "")
# we allow to install several packages at once
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL OFF)
set(CPACK_NSIS_MODIFY_PATH OFF)
set(CPACK_NSIS_DISPLAY_NAME "Intel(R) OpenVINO(TM) ${OpenVINO_VERSION}")
set(CPACK_NSIS_PACKAGE_NAME "Intel(R) OpenVINO(TM) ToolKit, v. ${OpenVINO_VERSION}.${OpenVINO_PATCH_VERSION}")
# contact
set(CPACK_NSIS_CONTACT "CPACK_NSIS_CONTACT")
# links in menu
set(CPACK_NSIS_MENU_LINKS
"https://docs.openvinoo.ai" "OpenVINO Documentation")
# welcome and finish titles
set(CPACK_NSIS_WELCOME_TITLE "Welcome to Intel(R) Distribution of OpenVINO(TM) Toolkit installation")
set(CPACK_NSIS_FINISH_TITLE "")
# autoresize?
set(CPACK_NSIS_MANIFEST_DPI_AWARE ON)
# branding text
set(CPACK_NSIS_BRANDING_TEXT "Intel(R) Corp.")
set(CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION RIGHT)
# don't set this variable since we need a user to agree with a lincense
# set(CPACK_NSIS_IGNORE_LICENSE_PAGE OFF)
@@ -0,0 +1,237 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
include(CPackComponent)
#
# ov_get_pyversion()
#
function(ov_get_pyversion pyversion)
find_package(PythonInterp 3 QUIET)
if(PYTHONINTERP_FOUND)
set(${pyversion} "python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" PARENT_SCOPE)
else()
set(${pyversion} "NOT-FOUND" PARENT_SCOPE)
endif()
endfunction()
#
# ov_cpack_set_dirs()
#
# Set directories for cpack
#
macro(ov_cpack_set_dirs)
# common IRC package locations
# TODO: move current variables to OpenVINO specific locations
set(OV_CPACK_INCLUDEDIR runtime/include)
set(OV_CPACK_IE_CMAKEDIR runtime/cmake)
set(OV_CPACK_NGRAPH_CMAKEDIR runtime/cmake)
set(OV_CPACK_OPENVINO_CMAKEDIR runtime/cmake)
set(OV_CPACK_DOCDIR docs)
set(OV_CPACK_SAMPLESDIR samples)
set(OV_CPACK_WHEELSDIR tools)
set(OV_CPACK_TOOLSDIR tools)
set(OV_CPACK_DEVREQDIR tools)
ov_get_pyversion(pyversion)
if(pyversion)
set(OV_CPACK_PYTHONDIR python/${pyversion})
endif()
if(WIN32)
set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}/$<CONFIG>)
set(OV_CPACK_RUNTIMEDIR runtime/bin/${ARCH_FOLDER}/$<CONFIG>)
set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/$<CONFIG>)
set(OV_WHEEL_RUNTIMEDIR runtime/bin/${ARCH_FOLDER}/Release)
elseif(APPLE)
set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}/$<CONFIG>)
set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/$<CONFIG>)
set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/$<CONFIG>)
set(OV_WHEEL_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/Release)
else()
set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER})
set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER})
set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER})
set(OV_WHEEL_RUNTIMEDIR ${OV_CPACK_RUNTIMEDIR})
endif()
set(OV_CPACK_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR})
# for BW compatibility
set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR})
set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR})
set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR})
endmacro()
ov_cpack_set_dirs()
#
# ie_cpack_add_component(NAME ...)
#
# Wraps original `cpack_add_component` and adds component to internal IE list
#
function(ie_cpack_add_component name)
if(NOT ${name} IN_LIST IE_CPACK_COMPONENTS_ALL)
cpack_add_component(${name} ${ARGN})
# need to store informarion about cpack_add_component arguments in CMakeCache.txt
# to restore it later
set(_${name}_cpack_component_args "${ARGN}" CACHE INTERNAL "Argument for cpack_add_component for ${name} cpack component" FORCE)
list(APPEND IE_CPACK_COMPONENTS_ALL ${name})
set(IE_CPACK_COMPONENTS_ALL "${IE_CPACK_COMPONENTS_ALL}" CACHE INTERNAL "" FORCE)
endif()
endfunction()
foreach(comp IN LISTS IE_CPACK_COMPONENTS_ALL)
unset(_${comp}_cpack_component_args)
endforeach()
unset(IE_CPACK_COMPONENTS_ALL CACHE)
# create `tests` component
if(ENABLE_TESTS)
cpack_add_component(tests HIDDEN)
endif()
#
# ov_install_with_name(<FILE> <COMPONENT>)
#
# if <FILE> is a symlink, we resolve it, but install file with a name of symlink
#
function(ov_install_with_name file component)
if((APPLE AND file MATCHES "^[^\.]+\.[0-9]+${CMAKE_SHARED_LIBRARY_SUFFIX}$") OR
(file MATCHES "^.*\.${CMAKE_SHARED_LIBRARY_SUFFIX}\.[0-9]+$"))
if(IS_SYMLINK "${file}")
get_filename_component(actual_name "${file}" NAME)
get_filename_component(file "${file}" REALPATH)
set(install_rename RENAME "${actual_name}")
endif()
install(FILES "${file}"
DESTINATION runtime/3rdparty/${component}/lib
COMPONENT ${component}
EXCLUDE_FROM_ALL
${install_rename})
set("${component}_INSTALLED" ON PARENT_SCOPE)
endif()
endfunction()
#
# List of public OpenVINO components
#
macro(ov_define_component_names)
# core components
set(OV_CPACK_COMP_CORE "core")
set(OV_CPACK_COMP_CORE_C "core_c")
set(OV_CPACK_COMP_CORE_DEV "core_dev")
set(OV_CPACK_COMP_CORE_C_DEV "core_c_dev")
# licensing
set(OV_CPACK_COMP_LICENSING "licensing")
# samples
set(OV_CPACK_COMP_CPP_SAMPLES "cpp_samples")
set(OV_CPACK_COMP_C_SAMPLES "c_samples")
set(OV_CPACK_COMP_PYTHON_SAMPLES "python_samples")
# python
set(OV_CPACK_COMP_PYTHON_IE_API "pyie")
set(OV_CPACK_COMP_PYTHON_NGRAPH "pyngraph")
set(OV_CPACK_COMP_PYTHON_OPENVINO "pyopenvino")
set(OV_CPACK_COMP_PYTHON_WHEELS "python_wheels")
# tools
set(OV_CPACK_COMP_CORE_TOOLS "core_tools")
set(OV_CPACK_COMP_DEV_REQ_FILES "openvino_dev_req_files")
set(OV_CPACK_COMP_DEPLOYMENT_MANAGER "deployment_manager")
# scripts
set(OV_CPACK_COMP_INSTALL_DEPENDENCIES "install_dependencies")
set(OV_CPACK_COMP_SETUPVARS "setupvars")
endmacro()
ov_define_component_names()
# Include Debian specific configuration file:
# - overrides directories set by ov_debian_cpack_set_dirs()
# - merges some components using ov_override_component_names()
# - sets ov_debian_specific_settings() with DEB generator variables
# - defines the following helper functions:
# - ov_add_lintian_suppression()
# - ov_add_latest_component()
if(CPACK_GENERATOR STREQUAL "DEB")
include(packaging/debian)
elseif(CPACK_GENERATOR STREQUAL "RPM")
include(packaging/rpm)
elseif(CPACK_GENERATOR STREQUAL "NSIS")
include(packaging/nsis)
elseif(CPACK_GENERATOR MATCHES "^(CONDA-FORGE|BREW)$")
include(packaging/common-libraries)
endif()
macro(ie_cpack)
if(NOT DEFINED CPACK_GENERATOR)
set(CPACK_GENERATOR "TGZ")
endif()
set(CPACK_SOURCE_GENERATOR "") # not used
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenVINO™ Toolkit for Deep Learning Inference")
set(CPACK_COMPONENT_UNSPECIFIED_REQUIRED OFF)
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
set(CPACK_PACKAGE_VENDOR "Intel Corporation")
set(CPACK_PACKAGE_CONTACT "OpenVINO Developers <openvino@intel.com>")
set(CPACK_VERBATIM_VARIABLES ON)
set(CPACK_COMPONENTS_ALL ${ARGN})
# TODO: set proper license file for Windows installer
set(CPACK_RESOURCE_FILE_LICENSE "${OpenVINO_SOURCE_DIR}/LICENSE")
# default permissions for directories creation
set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE OWNER_EXECUTE
WORLD_READ WORLD_EXECUTE)
# archive operations can be run in parallel since CMake 3.20
set(CPACK_THREADS 8)
if(NOT DEFINED CPACK_STRIP_FILES)
set(CPACK_STRIP_FILES ON)
endif()
# TODO: replace with openvino
if(WIN32)
set(CPACK_PACKAGE_NAME inference-engine_${CMAKE_BUILD_TYPE})
else()
set(CPACK_PACKAGE_NAME inference-engine)
endif()
set(CPACK_PACKAGE_VERSION "${OpenVINO_VERSION}")
if(NOT OpenVINO_VERSION_BUILD STREQUAL "000")
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}.${OpenVINO_VERSION_BUILD}")
endif()
foreach(ver MAJOR MINOR PATCH)
if(DEFINED OpenVINO_VERSION_${ver})
set(CPACK_PACKAGE_VERSION_${ver} ${OpenVINO_VERSION_${ver}})
else()
message(FATAL_ERROR "Internal: OpenVINO_VERSION_${ver} variable is not defined")
endif()
endforeach()
if(OS_FOLDER)
set(CPACK_SYSTEM_NAME "${OS_FOLDER}")
endif()
# include GENERATOR dedicated per-component configuration file
# NOTE: private modules need to define ov_cpack_settings macro
# for custom packages configuration
if(COMMAND ov_cpack_settings)
ov_cpack_settings()
endif()
# generator specific variables
if(CPACK_GENERATOR MATCHES "^(7Z|TBZ2|TGZ|TXZ|TZ|ZIP)$")
# New in version 3.18
set(CPACK_ARCHIVE_THREADS 8)
# multiple packages are generated
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
endif()
include(CPack)
endmacro()
+232
View File
@@ -0,0 +1,232 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
include(GNUInstallDirs)
#
# ov_rpm_cpack_set_dirs()
#
# Set directories for cpack
#
macro(ov_rpm_cpack_set_dirs)
# override default locations for RPM
set(OV_CPACK_TOOLSDIR ${CMAKE_INSTALL_BINDIR}) # only C++ tools are here
set(OV_CPACK_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR})
set(OV_CPACK_LIBRARYDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_CPACK_RUNTIMEDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_WHEEL_RUNTIMEDIR ${OV_CPACK_RUNTIMEDIR})
set(OV_CPACK_ARCHIVEDIR ${CMAKE_INSTALL_LIBDIR})
set(OV_CPACK_PLUGINSDIR ${CMAKE_INSTALL_LIBDIR}/openvino-${OpenVINO_VERSION})
set(OV_CPACK_IE_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/inferenceengine${OpenVINO_VERSION})
set(OV_CPACK_NGRAPH_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/ngraph${OpenVINO_VERSION})
set(OV_CPACK_OPENVINO_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/openvino${OpenVINO_VERSION})
set(OV_CPACK_DOCDIR ${CMAKE_INSTALL_DATADIR}/doc/openvino-${OpenVINO_VERSION})
ov_get_pyversion(pyversion)
if(pyversion)
set(OV_CPACK_PYTHONDIR ${CMAKE_INSTALL_LIBDIR}/${pyversion}/site-packages)
endif()
# non-native stuff
set(OV_CPACK_SHAREDIR ${CMAKE_INSTALL_DATADIR}/openvino-${OpenVINO_VERSION}) # internal
set(OV_CPACK_SAMPLESDIR ${OV_CPACK_SHAREDIR}/samples)
set(OV_CPACK_DEVREQDIR ${OV_CPACK_SHAREDIR})
unset(OV_CPACK_SHAREDIR)
# skipped during rpm packaging
set(OV_CPACK_WHEELSDIR "tools")
# for BW compatibility
set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR})
set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR})
set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR})
endmacro()
ov_rpm_cpack_set_dirs()
#
# Override CPack components name for RPM generator
# This is needed to change the granularity, i.e. merge several components
# into a single one
#
macro(ov_override_component_names)
# merge C++ and C runtimes
set(OV_CPACK_COMP_CORE_C "${OV_CPACK_COMP_CORE}")
set(OV_CPACK_COMP_CORE_C_DEV "${OV_CPACK_COMP_CORE_DEV}")
# merge all pythons into a single component
set(OV_CPACK_COMP_PYTHON_OPENVINO "pyopenvino")
set(OV_CPACK_COMP_PYTHON_IE_API "${OV_CPACK_COMP_PYTHON_OPENVINO}")
set(OV_CPACK_COMP_PYTHON_NGRAPH "${OV_CPACK_COMP_PYTHON_OPENVINO}")
# merge all C / C++ samples as a single samples component
set(OV_CPACK_COMP_CPP_SAMPLES "samples")
set(OV_CPACK_COMP_C_SAMPLES "${OV_CPACK_COMP_CPP_SAMPLES}")
# set(OV_CPACK_COMP_PYTHON_SAMPLES "${OV_CPACK_COMP_CPP_SAMPLES}")
# move requirements.txt to core-dev
set(OV_CPACK_COMP_DEV_REQ_FILES "${OV_CPACK_COMP_CORE_DEV}")
# move core_tools to core-dev
set(OV_CPACK_COMP_CORE_TOOLS "${OV_CPACK_COMP_CORE_DEV}")
endmacro()
ov_override_component_names()
#
# Common RPM specific settings
#
macro(ov_rpm_specific_settings)
# multiple packages are generated
set(CPACK_RPM_COMPONENT_INSTALL ON)
# automatically find dependencies for binaries
set(CPACK_RPM_PACKAGE_AUTOREQPROV ON)
# enable dependencies between components
set(CPACK_RPM_ENABLE_COMPONENT_DEPENDS ON)
# homepage
set(CPACK_RPM_PACKAGE_URL "https://docs.openvino.ai/")
# ASL 2.0 # Apache Software License 2.0
set(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0")
# group
set(CPACK_RPM_PACKAGE_GROUP "Development/Libraries")
# changelog file
# TODO: fix "error: bad date in %changelog"
# set(CPACK_RPM_CHANGELOG_FILE "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/changelog-rpm")
# use rpmlint to check packages in post-build step
set(CPACK_POST_BUILD_SCRIPTS "${IEDevScripts_DIR}/packaging/rpm_post_build.cmake")
# enable for debug cpack run
if(NOT DEFINED CPACK_RPM_PACKAGE_DEBUG)
set(CPACK_RPM_PACKAGE_DEBUG OFF)
endif()
# naming convention for rpm package files
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
# need to update this version once we rebuild the same package with additional fixes
# set(CPACK_RPM_PACKAGE_RELEASE "1")
# enable this if someday we change the version scheme
# set(CPACK_RPM_PACKAGE_EPOCH "2")
endmacro()
ov_rpm_specific_settings()
# needed to add triggers for packages with libraries
set(def_triggers "${OpenVINO_BINARY_DIR}/_CPack_Packages/triggers")
set(triggers_content "activate-noawait ldconfig\n\n")
file(WRITE "${def_triggers}" "${triggers_content}")
#
# Functions helpful for packaging your modules with RPM cpack
#
#
# ov_rpm_copyright(<comp name>)
#
function(ov_rpm_copyright comp)
string(TOUPPER "${comp}" ucomp)
if(NOT DEFINED CPACK_RPM_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_RPM_${ucomp}_PACKAGE_NAME is not defined")
else()
set(package_name "${CPACK_RPM_${ucomp}_PACKAGE_NAME}")
endif()
set(package_name "${CPACK_RPM_${ucomp}_PACKAGE_NAME}")
# copyright
install(FILES "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/copyright"
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/${package_name}/
COMPONENT ${comp})
endfunction()
#
# ov_rpm_add_rpmlint_suppression(<comp name> <suppression1, suppression2, ...>)
#
function(ov_rpm_add_rpmlint_suppression comp)
set(lines ${ARGN})
string(TOUPPER "${comp}" ucomp)
if(NOT DEFINED CPACK_RPM_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_RPM_${ucomp}_PACKAGE_NAME is not defined")
else()
set(package_name "${CPACK_RPM_${ucomp}_PACKAGE_NAME}")
endif()
foreach(line IN LISTS lines)
set(line "addFilter(\"${line}\")")
if(content)
set(content "${content}\n${line}")
else()
set(content "${line}")
endif()
endforeach()
if(DEFINED CPACK_RPM_${ucomp}_PACKAGE_ARCHITECTURE)
set(arch "${CPACK_RPM_${ucomp}_PACKAGE_ARCHITECTURE}")
elseif(X86_64)
set(arch "x86_64")
elseif(X86)
set(arch "i686")
else()
message(FATAL_ERROR "RPM: Unsupported architecture ${CMAKE_SYSTEM_PROCESSOR}")
endif()
set(package_file_name "${package_name}-${OpenVINO_VERSION}-1.${arch}.rpm")
set(rpmlint_override_file "${OpenVINO_BINARY_DIR}/_CPack_Packages/rpmlint/${package_file_name}.rpmlintrc")
file(REMOVE ${rpmlint_override_file})
file(WRITE ${rpmlint_override_file} ${content})
endfunction()
#
# ov_rpm_generate_conflicts(<comp name>)
#
function(ov_rpm_generate_conflicts comp)
set(cpack_name_versions ${ARGN})
string(TOUPPER "${comp}" ucomp)
# sanity check
if(NOT DEFINED CPACK_RPM_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_RPM_${ucomp}_PACKAGE_NAME is not defined")
else()
if(NOT DEFINED cpack_name_ver)
message(FATAL_ERROR "Internal variable 'cpack_name_ver' is not defined")
endif()
string(REPLACE "${cpack_name_ver}" "" package_name_base "${CPACK_RPM_${ucomp}_PACKAGE_NAME}")
endif()
foreach(cpack_name_version IN LISTS cpack_name_versions)
if(package_names)
set(package_names "${package_names}, ${package_name_base}${cpack_name_version}")
else()
set(package_names "${package_name_base}${cpack_name_version}")
endif()
endforeach()
set(CPACK_RPM_${ucomp}_PACKAGE_CONFLICTS "${package_names}" PARENT_SCOPE)
endfunction()
#
# ov_rpm_add_latest_component(<comp>)
#
# Adds latest component for `comp`, but without a version
# Description and other stuff (arch) is taken from the main component
#
macro(ov_rpm_add_latest_component comp)
string(TOUPPER "${comp}" ucomp)
set(comp_name "${comp}_latest")
set(upper_case "${ucomp}_LATEST")
set(CPACK_COMPONENT_${upper_case}_DESCRIPTION "${CPACK_COMPONENT_${ucomp}_DESCRIPTION}")
set(CPACK_COMPONENT_${upper_case}_DEPENDS "${comp}")
set(CPACK_RPM_${upper_case}_PACKAGE_ARCHITECTURE "noarch")
# take package name
if(DEFINED CPACK_RPM_${ucomp}_PACKAGE_NAME)
string(REPLACE "-${cpack_name_ver}" ""
CPACK_RPM_${upper_case}_PACKAGE_NAME
"${CPACK_RPM_${ucomp}_PACKAGE_NAME}")
else()
message(FATAL_ERROR "CPACK_RPM_${ucomp}_PACKAGE_NAME is not defined")
endif()
# add latest to a list of rpm packages
list(APPEND CPACK_COMPONENTS_ALL ${comp_name})
endmacro()
@@ -0,0 +1,36 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
find_program(rpmlint_PROGRAM NAMES rpmlint DOC "Path to rpmlint tool")
if(NOT rpmlint_PROGRAM)
message(WARNING "Failed to find 'rpmlint' tool, use 'sudo dnf / yum install rpmlint' to install it")
return()
endif()
set(rpmlint_passed ON)
foreach(rpm_file IN LISTS CPACK_PACKAGE_FILES)
get_filename_component(rpm_name "${rpm_file}" NAME)
get_filename_component(dir_name "${rpm_file}" DIRECTORY)
get_filename_component(dir_name "${dir_name}/../../../../rpmlint" ABSOLUTE)
set(rpmlint_overrides "${dir_name}/${rpm_name}.rpmlintrc")
if(EXISTS "${rpmlint_overrides}")
set(file_option --file "${rpmlint_overrides}")
endif()
execute_process(COMMAND "${rpmlint_PROGRAM}" ${file_option} ${rpm_file}
RESULT_VARIABLE rpmlint_exit_code
OUTPUT_VARIABLE rpmlint_output)
if(NOT rpmlint_exit_code EQUAL 0)
message("Package ${rpm_name}:")
message("${rpmlint_output}")
set(rpmlint_passed OFF)
endif()
endforeach()
if(NOT rpmlint_passed)
message(FATAL_ERROR "rpmlint has found some mistakes. You can get more info regarding issues on site https://fedoraproject.org/wiki/Common_Rpmlint_issues")
endif()
@@ -36,7 +36,8 @@ IE_DEFINE_EXTENSION_CREATE_FUNCTION_DECLARATION(${_IE_CREATE_EXTENSION_FUNC});")
# definitions
set(dev_config "{")
if(${mapped_dev_name}_CONFIG)
foreach(props IN LISTS ${mapped_dev_name}_CONFIG)
string(REPLACE "@" ";" dev_config_parced "${${mapped_dev_name}_CONFIG}")
foreach(props IN LISTS dev_config_parced)
string(REPLACE ":" ";" props "${props}")
list(GET props 0 key)
+57 -49
View File
@@ -13,13 +13,14 @@ function(ie_plugin_get_file_name target_name library_name)
set("${library_name}" "${LIB_PREFIX}${target_name}${LIB_SUFFIX}" PARENT_SCOPE)
endfunction()
if(NOT TARGET ie_plugins)
add_custom_target(ie_plugins)
if(NOT TARGET ov_plugins)
add_custom_target(ov_plugins)
endif()
#
# ie_add_plugin(NAME <targetName>
# DEVICE_NAME <deviceName>
# [PSEUDO_DEVICE]
# [PSEUDO_PLUGIN_FOR <actual_device>]
# [AS_EXTENSION]
# [DEFAULT_CONFIG <key:value;...>]
@@ -27,11 +28,12 @@ endif()
# [OBJECT_LIBRARIES <object_libs>]
# [VERSION_DEFINES_FOR <source>]
# [SKIP_INSTALL]
# [SKIP_REGISTRATION] Skip creation of <device>.xml
# [ADD_CLANG_FORMAT]
# )
#
function(ie_add_plugin)
set(options SKIP_INSTALL ADD_CLANG_FORMAT AS_EXTENSION)
set(options SKIP_INSTALL PSEUDO_DEVICE ADD_CLANG_FORMAT AS_EXTENSION SKIP_REGISTRATION)
set(oneValueArgs NAME DEVICE_NAME VERSION_DEFINES_FOR PSEUDO_PLUGIN_FOR)
set(multiValueArgs DEFAULT_CONFIG SOURCES OBJECT_LIBRARIES CPPLINT_FILTERS)
cmake_parse_arguments(IE_PLUGIN "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
@@ -78,7 +80,7 @@ function(ie_add_plugin)
endif()
ie_add_vs_version_file(NAME ${IE_PLUGIN_NAME}
FILEDESCRIPTION "Inference Engine ${IE_PLUGIN_DEVICE_NAME} device plugin library")
FILEDESCRIPTION "OpenVINO Runtime ${IE_PLUGIN_DEVICE_NAME} device plugin library")
target_link_libraries(${IE_PLUGIN_NAME} PRIVATE openvino::runtime openvino::runtime::dev)
@@ -101,30 +103,13 @@ function(ie_add_plugin)
add_cpplint_target(${IE_PLUGIN_NAME}_cpplint FOR_TARGETS ${IE_PLUGIN_NAME} CUSTOM_FILTERS ${custom_filter})
endif()
add_dependencies(ie_plugins ${IE_PLUGIN_NAME})
if(TARGET openvino_gapi_preproc)
if(BUILD_SHARED_LIBS)
add_dependencies(${IE_PLUGIN_NAME} openvino_gapi_preproc)
else()
target_link_libraries(${IE_PLUGIN_NAME} PRIVATE openvino_gapi_preproc)
endif()
endif()
add_dependencies(ov_plugins ${IE_PLUGIN_NAME})
# fake dependencies to build in the following order:
# IE -> IE readers -> IE inference plugins -> IE-based apps
# OV -> OV frontends -> OV inference plugins -> OV-based apps
if(BUILD_SHARED_LIBS)
if(TARGET openvino_ir_frontend)
add_dependencies(${IE_PLUGIN_NAME} openvino_ir_frontend)
endif()
if(TARGET openvino_onnx_frontend)
add_dependencies(${IE_PLUGIN_NAME} openvino_onnx_frontend)
endif()
if(TARGET openvino_paddle_frontend)
add_dependencies(${IE_PLUGIN_NAME} openvino_paddle_frontend)
endif()
if(TARGET openvino_tensorflow_frontend)
add_dependencies(${IE_PLUGIN_NAME} openvino_tensorflow_frontend)
endif()
add_dependencies(${IE_PLUGIN_NAME} ov_frontends)
# TODO: remove with legacy CNNNLayer API / IR v7
if(TARGET inference_engine_ir_v7_reader)
add_dependencies(${IE_PLUGIN_NAME} inference_engine_ir_v7_reader)
@@ -134,11 +119,22 @@ function(ie_add_plugin)
# install rules
if(NOT IE_PLUGIN_SKIP_INSTALL OR NOT BUILD_SHARED_LIBS)
string(TOLOWER "${IE_PLUGIN_DEVICE_NAME}" install_component)
ie_cpack_add_component(${install_component} REQUIRED DEPENDS core)
if(IE_PLUGIN_PSEUDO_DEVICE)
set(plugin_hidden HIDDEN)
endif()
ie_cpack_add_component(${install_component}
DISPLAY_NAME "${IE_PLUGIN_DEVICE_NAME} runtime"
DESCRIPTION "${IE_PLUGIN_DEVICE_NAME} runtime"
${plugin_hidden}
DEPENDS ${OV_CPACK_COMP_CORE})
if(BUILD_SHARED_LIBS)
install(TARGETS ${IE_PLUGIN_NAME}
LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH}
LIBRARY DESTINATION ${OV_CPACK_PLUGINSDIR}
COMPONENT ${install_component})
install(TARGETS ${IE_PLUGIN_NAME}
LIBRARY DESTINATION ${OV_CPACK_PLUGINSDIR}
COMPONENT ${install_component})
else()
ov_install_static_lib(${IE_PLUGIN_NAME} ${install_component})
@@ -146,25 +142,27 @@ function(ie_add_plugin)
endif()
endif()
# check that plugin with such name is not registered
# Enable for static build to generate correct plugins.hpp
if(NOT IE_PLUGIN_SKIP_REGISTRATION OR NOT BUILD_SHARED_LIBS)
# check that plugin with such name is not registered
foreach(plugin_entry IN LISTS PLUGIN_FILES)
string(REPLACE ":" ";" plugin_entry "${plugin_entry}")
list(GET plugin_entry -1 library_name)
list(GET plugin_entry 0 plugin_name)
if(plugin_name STREQUAL "${IE_PLUGIN_DEVICE_NAME}" AND
NOT library_name STREQUAL ${IE_PLUGIN_NAME})
message(FATAL_ERROR "${IE_PLUGIN_NAME} and ${library_name} are both registered as ${plugin_name}")
endif()
endforeach()
foreach(plugin_entry IN LISTS PLUGIN_FILES)
string(REPLACE ":" ";" plugin_entry "${plugin_entry}")
list(GET plugin_entry -1 library_name)
list(GET plugin_entry 0 plugin_name)
if(plugin_name STREQUAL "${IE_PLUGIN_DEVICE_NAME}" AND
NOT library_name STREQUAL ${IE_PLUGIN_NAME})
message(FATAL_ERROR "${IE_PLUGIN_NAME} and ${library_name} are both registered as ${plugin_name}")
endif()
endforeach()
# append plugin to the list to register
# append plugin to the list to register
list(APPEND PLUGIN_FILES "${IE_PLUGIN_DEVICE_NAME}:${IE_PLUGIN_NAME}")
set(PLUGIN_FILES "${PLUGIN_FILES}" CACHE INTERNAL "" FORCE)
set(${IE_PLUGIN_DEVICE_NAME}_CONFIG "${IE_PLUGIN_DEFAULT_CONFIG}" CACHE INTERNAL "" FORCE)
set(${IE_PLUGIN_DEVICE_NAME}_PSEUDO_PLUGIN_FOR "${IE_PLUGIN_PSEUDO_PLUGIN_FOR}" CACHE INTERNAL "" FORCE)
set(${IE_PLUGIN_DEVICE_NAME}_AS_EXTENSION "${IE_PLUGIN_AS_EXTENSION}" CACHE INTERNAL "" FORCE)
list(APPEND PLUGIN_FILES "${IE_PLUGIN_DEVICE_NAME}:${IE_PLUGIN_NAME}")
set(PLUGIN_FILES "${PLUGIN_FILES}" CACHE INTERNAL "" FORCE)
set(${IE_PLUGIN_DEVICE_NAME}_CONFIG "${IE_PLUGIN_DEFAULT_CONFIG}" CACHE INTERNAL "" FORCE)
set(${IE_PLUGIN_DEVICE_NAME}_PSEUDO_PLUGIN_FOR "${IE_PLUGIN_PSEUDO_PLUGIN_FOR}" CACHE INTERNAL "" FORCE)
set(${IE_PLUGIN_DEVICE_NAME}_AS_EXTENSION "${IE_PLUGIN_AS_EXTENSION}" CACHE INTERNAL "" FORCE)
endif()
endfunction()
function(ov_add_plugin)
@@ -172,13 +170,12 @@ function(ov_add_plugin)
endfunction()
#
# ie_register_plugins_dynamic(MAIN_TARGET <main target name>
# POSSIBLE_PLUGINS <list of plugins which can be build by this repo>)
# ie_register_plugins_dynamic(MAIN_TARGET <main target name>)
#
macro(ie_register_plugins_dynamic)
set(options)
set(oneValueArgs MAIN_TARGET)
set(multiValueArgs POSSIBLE_PLUGINS)
set(multiValueArgs)
cmake_parse_arguments(IE_REGISTER "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
if(NOT IE_REGISTER_MAIN_TARGET)
@@ -261,6 +258,15 @@ macro(ie_register_plugins)
endif()
endmacro()
#
# ov_register_plugins()
#
macro(ov_register_plugins)
if(BUILD_SHARED_LIBS)
ie_register_plugins_dynamic(${ARGN})
endif()
endmacro()
#
# ie_target_link_plugins(<TARGET_NAME>)
#
@@ -315,7 +321,9 @@ function(ie_generate_plugins_hpp)
# add default plugin config options
if(${device_name}_CONFIG)
list(APPEND device_configs -D "${device_name}_CONFIG=${${device_name}_CONFIG}")
# Replace ; to @ in order to have list inside list
string(REPLACE ";" "@" config "${${device_name}_CONFIG}")
list(APPEND device_configs -D "${device_name}_CONFIG=${config}")
endif()
endforeach()
@@ -347,7 +355,7 @@ function(ie_generate_plugins_hpp)
# for some reason dependency on source files does not work
# so, we have to use explicit target and make it dependency for inference_engine
add_custom_target(_ie_plugins_hpp DEPENDS ${ie_plugins_hpp})
add_dependencies(inference_engine _ie_plugins_hpp)
add_dependencies(inference_engine_obj _ie_plugins_hpp)
# add dependency for object files
get_target_property(sources inference_engine_obj SOURCES)
@@ -0,0 +1,112 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
#
# ov_check_pip_package(REQUIREMENT <single requirement>
# RESULT_VAR <result var name>
# [WARNING_MESSAGE <message>]
# [MESSAGE_MODE <WARNING | FATAL_ERROR | TRACE>])
#
function(ov_check_pip_package)
find_host_package(PythonInterp 3 QUIET)
set(oneValueOptionalArgs
MESSAGE_MODE # Set the type of message: { FATAL_ERROR | WARNING | ... }
WARNING_MESSAGE # callback message
)
set(oneValueRequiredArgs
REQUIREMENT # Requirement-specifier to check
RESULT_VAR # Result varibale to set return code {ON | OFF}
)
set(multiValueArgs)
cmake_parse_arguments(ARG "" "${oneValueRequiredArgs};${oneValueOptionalArgs}" "${multiValueArgs}" ${ARGN})
foreach(argName ${oneValueRequiredArgs})
if (NOT ARG_${argName})
message(SEND_ERROR "Argument '${argName}' is required.")
endif()
endforeach()
if(NOT ARG_MESSAGE_MODE)
set(ARG_MESSAGE_MODE WARNING)
elseif(CMAKE_VERSION VERSION_LESS 3.15 AND ARG_MESSAGE_MODE STREQUAL "TRACE")
set(ARG_MESSAGE_MODE WARNING)
endif()
if(ARG_UNPARSED_ARGUMENTS)
message(SEND_ERROR "Unexpected parameters have passed to the function: ${ARG_UNPARSED_ARGUMENTS}")
endif()
# quote '3.x' with \'3.x\'
string(REPLACE "'" "\\'" REQ "${ARG_REQUIREMENT}")
if(PYTHONINTERP_FOUND)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import pkg_resources ; pkg_resources.require('${REQ}')"
RESULT_VARIABLE EXIT_CODE
OUTPUT_VARIABLE OUTPUT_TEXT
ERROR_VARIABLE ERROR_TEXT)
endif()
if(NOT EXIT_CODE EQUAL 0)
set(${ARG_RESULT_VAR} OFF PARENT_SCOPE)
message(${ARG_MESSAGE_MODE} "Python module '${REQ}' is missed, ${ARG_WARNING_MESSAGE}")
else()
set(${ARG_RESULT_VAR} ON PARENT_SCOPE)
endif()
endfunction()
#
# ov_check_pip_packages(REQUIREMENTS_FILE <requirements.txt file>
# RESULT_VAR <result var name>
# [WARNING_MESSAGE <message>]
# [MESSAGE_MODE <WARNING | FATAL_ERROR | TRACE>])
#
function(ov_check_pip_packages)
find_host_package(PythonInterp 3 QUIET)
set(oneValueOptionalArgs
MESSAGE_MODE # Set the type of message: { FATAL_ERROR | WARNING | ... }
WARNING_MESSAGE # callback message
)
set(oneValueRequiredArgs
REQUIREMENTS_FILE # File with requirement-specifiers to check
RESULT_VAR # Result varibale to set return code {ON | OFF}
)
set(multiValueArgs)
cmake_parse_arguments(ARG "" "${oneValueOptionalArgs};${oneValueRequiredArgs}" "${multiValueArgs}" ${ARGN})
foreach(argName ${oneValueRequiredArgs})
if (NOT ARG_${argName})
message(SEND_ERROR "Argument '${argName}' is required.")
endif()
endforeach()
if(NOT ARG_MESSAGE_MODE)
set(ARG_MESSAGE_MODE WARNING)
elseif(CMAKE_VERSION VERSION_LESS 3.15 AND ARG_MESSAGE_MODE STREQUAL "TRACE")
set(ARG_MESSAGE_MODE WARNING)
endif()
if(ARG_UNPARSED_ARGUMENTS)
message(SEND_ERROR "Unexpected parameters have passed to the function: ${ARG_UNPARSED_ARGUMENTS}")
endif()
if(PYTHONINTERP_FOUND)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import pkg_resources ; pkg_resources.require(open('${ARG_REQUIREMENTS_FILE}', mode='r'))"
RESULT_VARIABLE EXIT_CODE
OUTPUT_VARIABLE OUTPUT_TEXT
ERROR_VARIABLE ERROR_TEXT)
endif()
if(NOT EXIT_CODE EQUAL 0)
set(${ARG_RESULT_VAR} OFF PARENT_SCOPE)
message(${ARG_MESSAGE_MODE} "Python requirement file ${ARG_REQUIREMENTS_FILE} is not installed, ${ARG_WARNING_MESSAGE}")
else()
set(${ARG_RESULT_VAR} ON PARENT_SCOPE)
endif()
endfunction()
@@ -6,6 +6,17 @@ include(CMakeParseArguments)
find_host_program(shellcheck_PROGRAM NAMES shellcheck DOC "Path to shellcheck tool")
if(shellcheck_PROGRAM)
execute_process(COMMAND "${shellcheck_PROGRAM}" --version
RESULT_VARIABLE shellcheck_EXIT_CODE
OUTPUT_VARIABLE shellcheck_VERSION_STRING)
if(shellcheck_EXIT_CODE EQUAL 0)
if(shellcheck_VERSION_STRING MATCHES "version: ([0-9]+)\.([0-9]+).([0-9]+)")
set(shellcheck_VERSION "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}.${CMAKE_MATCH_3}" CACHE INTERNAL "shellcheck version")
endif()
endif()
endif()
function(ie_shellcheck_process)
if(NOT shellcheck_PROGRAM)
message(WARNING "shellcheck tool is not found")
@@ -33,7 +44,7 @@ function(ie_shellcheck_process)
set(output_file "${output_file}.txt")
get_filename_component(script_name "${script}" NAME)
add_custom_command(OUTPUT ${output_file}
add_custom_command(OUTPUT ${output_file}
COMMAND ${CMAKE_COMMAND}
-D IE_SHELLCHECK_PROGRAM=${shellcheck_PROGRAM}
-D IE_SHELL_SCRIPT=${script}
+26 -7
View File
@@ -35,6 +35,16 @@ if(MSVC64 OR MINGW64)
_ie_process_msvc_generator_platform(X86_64)
elseif(MINGW OR (MSVC AND NOT CMAKE_CROSSCOMPILING))
_ie_process_msvc_generator_platform(X86)
elseif(CMAKE_OSX_ARCHITECTURES AND APPLE)
if(CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
set(AARCH64 ON)
elseif(CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
set(X86_64 ON)
elseif(CMAKE_OSX_ARCHITECTURES MATCHES ".*x86_64.*" AND CMAKE_OSX_ARCHITECTURES MATCHES ".*arm64.*")
set(UNIVERSAL2 ON)
else()
message(FATAL_ERROR "Unsupported value: CMAKE_OSX_ARCHITECTURES = ${CMAKE_OSX_ARCHITECTURES}")
endif()
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
set(X86_64 ON)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*|amd64.*|AMD64.*")
@@ -45,21 +55,30 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*)")
set(ARM ON)
endif()
# in case of cross-compilation (or -m32) CMAKE_SYSTEM_PROCESSOR is equal to
# CMAKE_HOST_SYSTEM_PROCESSOR which is X86_64; patch this until a better solution
if(CMAKE_SIZEOF_VOID_P EQUAL 4 AND X86_64)
unset(X86_64)
set(X86 ON)
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
set(HOST_X86_64 ON)
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*|amd64.*|AMD64.*")
set(HOST_X86 ON)
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^(arm64.*|aarch64.*|AARCH64.*)")
set(HOST_AARCH64 ON)
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*)")
set(HOST_ARM ON)
endif()
if(UNIX AND NOT APPLE)
set(LINUX ON)
endif()
if(ENV{OECORE_NATIVE_SYSROOT} AND AARCH64)
set(YOCTO_AARCH64 ON)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
set(OV_COMPILER_IS_CLANG ON)
else()
set(OV_COMPILER_IS_CLANG OFF)
endif()
if(CMAKE_CXX_COMPILER MATCHES ".*conda.*")
set(OV_COMPILER_IS_CONDA ON)
endif()
get_property(OV_GENERATOR_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
@@ -23,13 +23,14 @@ else()
unset(IE_OWN_TBB_CONFIG)
endif()
unset(TBB_DIR)
unset(TBB_DIR CACHE)
find_package(TBB
2017.0
CONFIG
PATHS ${TBBROOT}/cmake
${TBBROOT}/lib/cmake/TBB # oneTBB case
${IEDevScripts_DIR}/${IE_OWN_TBB_CONFIG}
NO_CMAKE_FIND_ROOT_PATH
PATHS "${IEDevScripts_DIR}/${IE_OWN_TBB_CONFIG}"
NO_DEFAULT_PATH
)
NO_CMAKE_FIND_ROOT_PATH)
find_package_handle_standard_args(TBB CONFIG_MODE)
@@ -0,0 +1,45 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
if (NOT TBBROOT)
if(DEFINED ENV{TBBROOT})
set (TBBROOT $ENV{TBBROOT})
endif()
endif()
set(_tbb_root ${TBBROOT})
# detect version
find_file(_tbb_def_header tbb_stddef.h HINTS "${_tbb_root}/include/tbb")
if (_tbb_def_header)
file(READ "${_tbb_def_header}" _tbb_def_content)
string(REGEX MATCH "TBB_VERSION_MAJOR[ ]*[0-9]*" _tbb_version_major ${_tbb_def_content})
string(REGEX MATCH "[0-9][0-9]*" _tbb_version_major ${_tbb_version_major})
string(REGEX MATCH "TBB_VERSION_MINOR[ ]*[0-9]" _tbb_version_minor ${_tbb_def_content})
string(REGEX MATCH "[0-9][0-9]*" _tbb_version_minor ${_tbb_version_minor})
set(PACKAGE_VERSION_MAJOR ${_tbb_version_major})
set(PACKAGE_VERSION_MINOR ${_tbb_version_minor})
set(PACKAGE_VERSION_PATCH 0)
else()
set(PACKAGE_VERSION_MAJOR 0)
set(PACKAGE_VERSION_MINOR 0)
set(PACKAGE_VERSION_PATCH 0)
endif()
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_VERSION_EXACT False)
set(PACKAGE_VERSION_COMPATIBLE False)
if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
set(PACKAGE_VERSION_EXACT True)
set(PACKAGE_VERSION_COMPATIBLE True)
endif()
if(PACKAGE_FIND_VERSION_MAJOR VERSION_LESS_EQUAL PACKAGE_VERSION_MAJOR)
set(PACKAGE_VERSION_COMPATIBLE True)
endif()
@@ -172,6 +172,10 @@ if (NOT _lib_exists AND TBB_FIND_REQUIRED AND TBB_FIND_REQUIRED_${_tbb_component
message(FATAL_ERROR "Missed required Intel TBB component: ${_tbb_component}")
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TBB
REQUIRED_VARS _lib_exists)
unset(_tbb_x32_subdir)
unset(_tbb_x64_subdir)
unset(_tbb_arch_subdir)
@@ -0,0 +1,45 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
if (NOT TBBROOT)
if(DEFINED ENV{TBBROOT})
set (TBBROOT $ENV{TBBROOT})
endif()
endif()
set(_tbb_root ${TBBROOT})
# detect version
find_file(_tbb_def_header tbb_stddef.h HINTS "${_tbb_root}/include/tbb")
if (_tbb_def_header)
file(READ "${_tbb_def_header}" _tbb_def_content)
string(REGEX MATCH "TBB_VERSION_MAJOR[ ]*[0-9]*" _tbb_version_major ${_tbb_def_content})
string(REGEX MATCH "[0-9][0-9]*" _tbb_version_major ${_tbb_version_major})
string(REGEX MATCH "TBB_VERSION_MINOR[ ]*[0-9]" _tbb_version_minor ${_tbb_def_content})
string(REGEX MATCH "[0-9][0-9]*" _tbb_version_minor ${_tbb_version_minor})
set(PACKAGE_VERSION_MAJOR ${_tbb_version_major})
set(PACKAGE_VERSION_MINOR ${_tbb_version_minor})
set(PACKAGE_VERSION_PATCH 0)
else()
set(PACKAGE_VERSION_MAJOR 0)
set(PACKAGE_VERSION_MINOR 0)
set(PACKAGE_VERSION_PATCH 0)
endif()
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_VERSION_EXACT False)
set(PACKAGE_VERSION_COMPATIBLE False)
if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
set(PACKAGE_VERSION_EXACT True)
set(PACKAGE_VERSION_COMPATIBLE True)
endif()
if(PACKAGE_FIND_VERSION_MAJOR VERSION_LESS_EQUAL PACKAGE_VERSION_MAJOR)
set(PACKAGE_VERSION_COMPATIBLE True)
endif()
@@ -91,6 +91,10 @@ foreach (_tbb_component ${TBB_FIND_COMPONENTS})
endif()
endforeach()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TBB
REQUIRED_VARS TBB_tbb_FOUND)
unset(_tbb_x32_subdir)
unset(_tbb_x64_subdir)
unset(_tbb_arch_subdir)
@@ -0,0 +1,45 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
if (NOT TBBROOT)
if(DEFINED ENV{TBBROOT})
set (TBBROOT $ENV{TBBROOT})
endif()
endif()
set(_tbb_root ${TBBROOT})
# detect version
find_file(_tbb_def_header tbb_stddef.h HINTS "${_tbb_root}/include/tbb")
if (_tbb_def_header)
file(READ "${_tbb_def_header}" _tbb_def_content)
string(REGEX MATCH "TBB_VERSION_MAJOR[ ]*[0-9]*" _tbb_version_major ${_tbb_def_content})
string(REGEX MATCH "[0-9][0-9]*" _tbb_version_major ${_tbb_version_major})
string(REGEX MATCH "TBB_VERSION_MINOR[ ]*[0-9]" _tbb_version_minor ${_tbb_def_content})
string(REGEX MATCH "[0-9][0-9]*" _tbb_version_minor ${_tbb_version_minor})
set(PACKAGE_VERSION_MAJOR ${_tbb_version_major})
set(PACKAGE_VERSION_MINOR ${_tbb_version_minor})
set(PACKAGE_VERSION_PATCH 0)
else()
set(PACKAGE_VERSION_MAJOR 0)
set(PACKAGE_VERSION_MINOR 0)
set(PACKAGE_VERSION_PATCH 0)
endif()
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_VERSION_EXACT False)
set(PACKAGE_VERSION_COMPATIBLE False)
if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
set(PACKAGE_VERSION_EXACT True)
set(PACKAGE_VERSION_COMPATIBLE True)
endif()
if(PACKAGE_FIND_VERSION_MAJOR VERSION_LESS_EQUAL PACKAGE_VERSION_MAJOR)
set(PACKAGE_VERSION_COMPATIBLE True)
endif()
@@ -117,6 +117,10 @@ foreach (_tbb_component ${TBB_FIND_COMPONENTS})
endif()
endforeach()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TBB
REQUIRED_VARS TBB_tbb_FOUND)
unset(_tbb_x32_subdir)
unset(_tbb_x64_subdir)
unset(_tbb_arch_subdir)
+70 -30
View File
@@ -19,27 +19,35 @@ function (commitHash VAR)
message(FATAL_ERROR "repo_root is not defined")
endif()
execute_process(
COMMAND git rev-parse HEAD
COMMAND git rev-parse --short=11 HEAD
WORKING_DIRECTORY ${repo_root}
OUTPUT_VARIABLE GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE)
set (${VAR} ${GIT_COMMIT_HASH} PARENT_SCOPE)
endfunction()
macro(ie_parse_ci_build_number)
set(IE_VERSION_BUILD 000)
macro(ov_parse_ci_build_number)
set(OpenVINO_VERSION_BUILD 000)
if(CI_BUILD_NUMBER MATCHES "^([0-9]+)\.([0-9]+)\.([0-9]+)\-([0-9]+)\-.*")
set(IE_VERSION_MAJOR ${CMAKE_MATCH_1})
set(IE_VERSION_MINOR ${CMAKE_MATCH_2})
set(IE_VERSION_PATCH ${CMAKE_MATCH_3})
set(IE_VERSION_BUILD ${CMAKE_MATCH_4})
set(OpenVINO_VERSION_MAJOR ${CMAKE_MATCH_1})
set(OpenVINO_VERSION_MINOR ${CMAKE_MATCH_2})
set(OpenVINO_VERSION_PATCH ${CMAKE_MATCH_3})
set(OpenVINO_VERSION_BUILD ${CMAKE_MATCH_4})
set(the_whole_version_is_defined_by_ci ON)
elseif(CI_BUILD_NUMBER MATCHES "^[0-9]+$")
set(OpenVINO_VERSION_BUILD ${CI_BUILD_NUMBER})
# only build number is defined by CI
set(the_whole_version_is_defined_by_ci OFF)
elseif(CI_BUILD_NUMBER)
message(FATAL_ERROR "Failed to parse CI_BUILD_NUMBER which is ${CI_BUILD_NUMBER}")
endif()
if(NOT DEFINED repo_root)
message(FATAL_ERROR "repo_root is not defined")
endif()
macro(ie_get_hpp_version)
macro(ov_get_hpp_version)
if(NOT DEFINED OpenVINO_SOURCE_DIR)
return()
endif()
@@ -59,11 +67,12 @@ macro(ie_parse_ci_build_number)
foreach(suffix MAJOR MINOR PATCH)
set(ie_version_name "IE_VERSION_${suffix}")
set(ov_version_name "OPENVINO_VERSION_${suffix}")
set(ov_version_name "OpenVINO_VERSION_${suffix}")
set(ov_version_name_hpp "OPENVINO_VERSION_${suffix}")
string(REGEX REPLACE ".+${ie_version_name}[ ]+([0-9]+).*" "\\1"
${ie_version_name}_HPP "${IE_VERSION_PARTS}")
string(REGEX REPLACE ".+${ov_version_name}[ ]+([0-9]+).*" "\\1"
string(REGEX REPLACE ".+${ov_version_name_hpp}[ ]+([0-9]+).*" "\\1"
${ov_version_name}_HPP "${OV_VERSION_PARTS}")
if(NOT ${ie_version_name}_HPP EQUAL ${ov_version_name}_HPP)
@@ -72,42 +81,61 @@ macro(ie_parse_ci_build_number)
endif()
endforeach()
set(ie_hpp_version_is_found ON)
set(ov_hpp_version_is_found ON)
endmacro()
# detect OpenVINO version via ie_version.hpp
ie_get_hpp_version()
# detect OpenVINO version via openvino/core/version.hpp and ie_version.hpp
ov_get_hpp_version()
if(ie_hpp_version_is_found)
foreach(var IE_VERSION_MAJOR IE_VERSION_MINOR IE_VERSION_PATCH)
if(ov_hpp_version_is_found)
foreach(var OpenVINO_VERSION_MAJOR OpenVINO_VERSION_MINOR OpenVINO_VERSION_PATCH)
if(DEFINED ${var} AND NOT ${var} EQUAL ${var}_HPP)
message(FATAL_ERROR "${var} parsed from CI_BUILD_NUMBER (${${var}}) \
and from ie_version.hpp (${${var}_HPP}) are different")
and from openvino/core/version.hpp (${${var}_HPP}) are different")
else()
# CI_BUILD_NUMBER is not defined well, take info from ie_verison.hpp as a baseline
# CI_BUILD_NUMBER is not defined well, take info from openvino/core/version.hpp as a baseline
set(${var} ${${var}_HPP})
endif()
endforeach()
endif()
set(IE_VERSION "${IE_VERSION_MAJOR}.${IE_VERSION_MINOR}.${IE_VERSION_PATCH}")
message(STATUS "OpenVINO version is ${IE_VERSION}")
set(OpenVINO_SOVERSION "${OpenVINO_VERSION_MAJOR}${OpenVINO_VERSION_MINOR}${OpenVINO_VERSION_PATCH}")
string(REGEX REPLACE "^20" "" OpenVINO_SOVERSION "${OpenVINO_SOVERSION}")
set(OpenVINO_VERSION "${OpenVINO_VERSION_MAJOR}.${OpenVINO_VERSION_MINOR}.${OpenVINO_VERSION_PATCH}")
if(ENABLE_LIBRARY_VERSIONING)
set(OpenVINO_VERSION_SUFFIX ".${OpenVINO_SOVERSION}")
else()
set(OpenVINO_VERSION_SUFFIX "")
endif()
message(STATUS "OpenVINO version is ${OpenVINO_VERSION} (Build ${OpenVINO_VERSION_BUILD})")
if(NOT the_whole_version_is_defined_by_ci)
# create CI_BUILD_NUMBER
branchName(GIT_BRANCH)
commitHash(GIT_COMMIT_HASH)
if(NOT GIT_BRANCH STREQUAL "master")
set(GIT_BRANCH_POSTFIX "-${GIT_BRANCH}")
endif()
set(CI_BUILD_NUMBER "${OpenVINO_VERSION}-${OpenVINO_VERSION_BUILD}-${GIT_COMMIT_HASH}${GIT_BRANCH_POSTFIX}")
unset(GIT_BRANCH_POSTFIX)
unset(GIT_BRANCH)
unset(GIT_COMMIT_HASH)
else()
unset(the_whole_version_is_defined_by_ci)
endif()
endmacro()
# provides OpenVINO version
# 1. If CI_BUILD_NUMBER is defined, parses this information
# 2. Otherwise, parses openvino/core/version.hpp
if (DEFINED ENV{CI_BUILD_NUMBER})
set(CI_BUILD_NUMBER $ENV{CI_BUILD_NUMBER})
else()
branchName(GIT_BRANCH)
commitHash(GIT_COMMIT_HASH)
set(custom_build "custom_${GIT_BRANCH}_${GIT_COMMIT_HASH}")
set(CI_BUILD_NUMBER "${custom_build}")
endif()
# provides Inference Engine version
# 1. If CI_BUILD_NUMBER is defined, parses this information
# 2. Otherwise, parses ie_version.hpp
ie_parse_ci_build_number()
ov_parse_ci_build_number()
macro (addVersionDefines FILE)
set(__version_file ${FILE})
@@ -128,3 +156,15 @@ macro (addVersionDefines FILE)
endforeach()
unset(__version_file)
endmacro()
function(ov_add_library_version library)
if(NOT DEFINED OpenVINO_SOVERSION)
message(FATAL_ERROR "Internal error: OpenVINO_SOVERSION is not defined")
endif()
if(ENABLE_LIBRARY_VERSIONING)
set_target_properties(${library} PROPERTIES
SOVERSION ${OpenVINO_SOVERSION}
VERSION ${OpenVINO_VERSION})
endif()
endfunction()
@@ -2,9 +2,9 @@
# SPDX-License-Identifier: Apache-2.0
#
set(IE_VS_VER_FILEVERSION_QUAD "${IE_VERSION_MAJOR},${IE_VERSION_MINOR},${IE_VERSION_PATCH},0")
set(IE_VS_VER_PRODUCTVERSION_QUAD "${IE_VERSION_MAJOR},${IE_VERSION_MINOR},${IE_VERSION_PATCH},0")
set(IE_VS_VER_FILEVERSION_STR "${IE_VERSION_MAJOR}.${IE_VERSION_MINOR}.${IE_VERSION_PATCH}.0")
set(IE_VS_VER_FILEVERSION_QUAD "${OpenVINO_VERSION_MAJOR},${OpenVINO_VERSION_MINOR},${OpenVINO_VERSION_PATCH},${OpenVINO_VERSION_BUILD}")
set(IE_VS_VER_PRODUCTVERSION_QUAD "${OpenVINO_VERSION_MAJOR},${OpenVINO_VERSION_MINOR},${OpenVINO_VERSION_PATCH},${OpenVINO_VERSION_BUILD}")
set(IE_VS_VER_FILEVERSION_STR "${OpenVINO_VERSION_MAJOR}.${OpenVINO_VERSION_MINOR}.${OpenVINO_VERSION_PATCH}.${OpenVINO_VERSION_BUILD}")
set(IE_VS_VER_COMPANY_NAME_STR "Intel Corporation")
set(IE_VS_VER_PRODUCTVERSION_STR "${CI_BUILD_NUMBER}")
+40 -31
View File
@@ -6,15 +6,19 @@ function(ie_generate_dev_package_config)
# dummy check that OpenCV is here
find_package(OpenCV QUIET)
set(all_dev_targets gflags ov_runtime_libraries)
foreach(component IN LISTS openvino_export_components)
# export all targets with prefix and use them during extra modules build
export(TARGETS ${${component}} NAMESPACE IE::
APPEND FILE "${CMAKE_BINARY_DIR}/${component}_dev_targets.cmake")
APPEND FILE "${CMAKE_BINARY_DIR}/${component}_dev_targets.cmake")
list(APPEND all_dev_targets ${${component}})
endforeach()
add_custom_target(ie_dev_targets DEPENDS ${all_dev_targets})
# if we've found system gflags
if(gflags_DIR)
set(gflags_BINARY_DIR "${gflags_DIR}")
endif()
configure_package_config_file("${OpenVINO_SOURCE_DIR}/cmake/templates/InferenceEngineDeveloperPackageConfig.cmake.in"
"${CMAKE_BINARY_DIR}/InferenceEngineDeveloperPackageConfig.cmake"
INSTALL_DESTINATION share # not used
@@ -30,18 +34,24 @@ function(ov_generate_dev_package_config)
# dummy check that OpenCV is here
find_package(OpenCV QUIET)
set(all_dev_targets gflags ov_runtime_libraries)
foreach(component IN LISTS openvino_export_components)
string(FIND "${component}" "_legacy" index)
if (index EQUAL -1)
# export all targets with prefix and use them during extra modules build
export(TARGETS ${${component}} NAMESPACE openvino::
APPEND FILE "${CMAKE_BINARY_DIR}/ov_${component}_dev_targets.cmake")
list(APPEND all_dev_targets ${${component}})
endif()
# TODO: remove legacy targets from tests
# string(FIND "${component}" "_legacy" index)
# if(index EQUAL -1)
# export all targets with prefix and use them during extra modules build
export(TARGETS ${${component}} NAMESPACE openvino::
APPEND FILE "${CMAKE_BINARY_DIR}/ov_${component}_dev_targets.cmake")
list(APPEND all_dev_targets ${${component}})
# endif()
endforeach()
add_custom_target(ov_dev_targets DEPENDS ${all_dev_targets})
# if we've found system gflags
if(gflags_DIR)
set(gflags_BINARY_DIR "${gflags_DIR}")
endif()
configure_package_config_file("${OpenVINO_SOURCE_DIR}/cmake/templates/OpenVINODeveloperPackageConfig.cmake.in"
"${CMAKE_BINARY_DIR}/OpenVINODeveloperPackageConfig.cmake"
INSTALL_DESTINATION share # not used
@@ -59,14 +69,15 @@ endfunction()
function(register_extra_modules)
# post export
openvino_developer_export_targets(COMPONENT core TARGETS inference_engine)
openvino_developer_export_targets(COMPONENT core TARGETS ngraph)
openvino_developer_export_targets(COMPONENT core_legacy TARGETS inference_engine)
openvino_developer_export_targets(COMPONENT core_legacy TARGETS ngraph)
set(InferenceEngineDeveloperPackage_DIR "${CMAKE_CURRENT_BINARY_DIR}/runtime")
set(OpenVINODeveloperPackage_DIR "${CMAKE_BINARY_DIR}/runtime")
set(InferenceEngineDeveloperPackage_DIR "${CMAKE_CURRENT_BINARY_DIR}/build-modules")
set(OpenVINODeveloperPackage_DIR "${CMAKE_BINARY_DIR}/build-modules")
set(OpenVINO_DIR "${CMAKE_BINARY_DIR}")
function(generate_fake_dev_package NS)
if (NS STREQUAL "openvino")
if(NS STREQUAL "openvino")
set(devconfig_file "${OpenVINODeveloperPackage_DIR}/OpenVINODeveloperPackageConfig.cmake")
else()
set(devconfig_file "${InferenceEngineDeveloperPackage_DIR}/InferenceEngineDeveloperPackageConfig.cmake")
@@ -78,28 +89,20 @@ function(register_extra_modules)
foreach(target IN LISTS ${openvino_export_components})
if(target)
file(APPEND "${devconfig_file}" "add_library(${NS}::${target} ALIAS ${target})\n")
file(APPEND "${devconfig_file}" "if(NOT TARGET ${NS}::${target})
add_library(${NS}::${target} ALIAS ${target})
endif()\n")
endif()
endforeach()
if ("${NS}" STREQUAL "openvino")
file(APPEND "${devconfig_file}" "add_library(${NS}::runtime ALIAS openvino)\n")
file(APPEND "${devconfig_file}" "add_library(${NS}::runtime::dev ALIAS openvino_dev)\n")
endif()
endfunction()
generate_fake_dev_package("openvino")
generate_fake_dev_package("IE")
# automatically import plugins from the 'runtime/plugins' folder
file(GLOB local_extra_modules "runtime/plugins/*")
# add template plugin
if(ENABLE_TEMPLATE)
list(APPEND local_extra_modules "${OpenVINO_SOURCE_DIR}/docs/template_plugin")
endif()
# detect where IE_EXTRA_MODULES contains folders with CMakeLists.txt
# detect where OPENVINO_EXTRA_MODULES contains folders with CMakeLists.txt
# other folders are supposed to have sub-folders with CMakeLists.txt
foreach(module_path IN LISTS IE_EXTRA_MODULES)
foreach(module_path IN LISTS OPENVINO_EXTRA_MODULES IE_EXTRA_MODULES)
get_filename_component(module_path "${module_path}" ABSOLUTE)
if(EXISTS "${module_path}/CMakeLists.txt")
list(APPEND extra_modules "${module_path}")
elseif(module_path)
@@ -107,8 +110,14 @@ function(register_extra_modules)
endif()
endforeach()
# add template plugin
if(ENABLE_TEMPLATE)
list(APPEND extra_modules "${OpenVINO_SOURCE_DIR}/src/plugins/template")
endif()
list(APPEND extra_modules "${OpenVINO_SOURCE_DIR}/src/core/template_extension")
# add each extra module
foreach(module_path IN LISTS extra_modules local_extra_modules)
foreach(module_path IN LISTS extra_modules)
if(module_path)
get_filename_component(module_name "${module_path}" NAME)
set(build_module ON)
@@ -137,7 +146,7 @@ ie_generate_dev_package_config()
ov_generate_dev_package_config()
# extra modules must be registered after inference_engine library
# and all other IE common libraries (ov_runtime_libraries) are creared
# and all other OpenVINO Core libraries are creared
# because 'register_extra_modules' creates fake InferenceEngineDeveloperPackageConfig.cmake
# with all imported developer targets
register_extra_modules()
+49 -37
View File
@@ -24,7 +24,7 @@ else()
set(ENABLE_ONEDNN_FOR_GPU_DEFAULT ON)
endif()
ie_dependent_option (ENABLE_ONEDNN_FOR_GPU "Enable oneDNN with GPU support" ON "ENABLE_ONEDNN_FOR_GPU_DEFAULT" OFF)
ie_option (ENABLE_ONEDNN_FOR_GPU "Enable oneDNN with GPU support" ${ENABLE_ONEDNN_FOR_GPU_DEFAULT})
ie_option (ENABLE_PROFILING_ITT "Build with ITT tracing. Optionally configure pre-built ittnotify library though INTEL_VTUNE_DIR variable." OFF)
@@ -41,38 +41,26 @@ In case SELECTIVE_BUILD is enabled, the SELECTIVE_BUILD_STAT variable should con
Usage: -DSELECTIVE_BUILD=ON -DSELECTIVE_BUILD_STAT=/path/*.csv" OFF
ALLOWED_VALUES ON OFF COLLECT)
ie_option(ENABLE_ERROR_HIGHLIGHT "Highlight errors and warnings during compile time" OFF)
ie_option(ENABLE_ERROR_HIGHLIGHT "Highlight errors and warnings during compile time" ON)
# Try to find python3
find_package(PythonLibs 3 QUIET)
ie_dependent_option (ENABLE_PYTHON "enables ie python bridge build" OFF "PYTHONLIBS_FOUND" OFF)
ie_option (ENABLE_DOCS "Build docs using Doxygen" OFF)
find_package(PythonInterp 3 QUIET)
ie_dependent_option (ENABLE_DOCS "Build docs using Doxygen" OFF "PYTHONINTERP_FOUND" OFF)
# this option should not be a part of InferenceEngineDeveloperPackage
# since wheels can be built only together with main OV build
cmake_dependent_option (ENABLE_WHEEL "Build wheel packages for PyPi" OFF
"PYTHONINTERP_FOUND;CMAKE_SOURCE_DIR STREQUAL OpenVINO_SOURCE_DIR" OFF)
find_package(PkgConfig QUIET)
ie_dependent_option (ENABLE_PKGCONFIG_GEN "Enable openvino.pc pkg-config file generation" ON "LINUX OR APPLE;PkgConfig_FOUND;BUILD_SHARED_LIBS" OFF)
#
# Inference Engine specific options
#
# "MKL-DNN library based on OMP or TBB or Sequential implementation: TBB|OMP|SEQ"
if(X86 OR ARM OR (MSVC AND (ARM OR AARCH64)) )
set(THREADING_DEFAULT "SEQ")
else()
set(THREADING_DEFAULT "TBB")
endif()
set(THREADING "${THREADING_DEFAULT}" CACHE STRING "Threading")
# "OneDNN library based on OMP or TBB or Sequential implementation: TBB|OMP|SEQ"
set(THREADING "TBB" CACHE STRING "Threading")
set_property(CACHE THREADING PROPERTY STRINGS "TBB" "TBB_AUTO" "OMP" "SEQ")
list (APPEND IE_OPTIONS THREADING)
if (NOT THREADING STREQUAL "TBB" AND
NOT THREADING STREQUAL "TBB_AUTO" AND
NOT THREADING STREQUAL "OMP" AND
NOT THREADING STREQUAL "SEQ")
message(FATAL_ERROR "THREADING should be set to TBB, TBB_AUTO, OMP or SEQ. Default option is ${THREADING_DEFAULT}")
message(FATAL_ERROR "THREADING should be set to TBB (default), TBB_AUTO, OMP or SEQ")
endif()
if((THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO") AND
@@ -82,7 +70,7 @@ else()
set(ENABLE_TBBBIND_2_5_DEFAULT OFF)
endif()
ie_dependent_option (ENABLE_TBBBIND_2_5 "Enable TBBBind_2_5 static usage in OpenVINO runtime" ON "ENABLE_TBBBIND_2_5_DEFAULT" OFF)
ie_dependent_option (ENABLE_TBBBIND_2_5 "Enable TBBBind_2_5 static usage in OpenVINO runtime" ${ENABLE_TBBBIND_2_5_DEFAULT} "THREADING MATCHES TBB" OFF)
ie_dependent_option (ENABLE_INTEL_GNA "GNA support for inference engine" ON
"NOT APPLE;NOT ANDROID;X86_64;CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.4" OFF)
@@ -108,7 +96,13 @@ ie_option (ENABLE_TEMPLATE "Enable template plugin" ON)
ie_dependent_option (ENABLE_INTEL_MYRIAD_COMMON "common part of myriad plugin" ON "NOT WINDOWS_PHONE;NOT WINDOWS_STORE" OFF)
ie_dependent_option (ENABLE_INTEL_MYRIAD "myriad targeted plugin for inference engine" ON "ENABLE_INTEL_MYRIAD_COMMON" OFF)
if(UNIVERSAL2)
set(ENABLE_INTEL_MYRIAD_DEFAULT OFF)
else()
set(ENABLE_INTEL_MYRIAD_DEFAULT ON)
endif()
ie_dependent_option (ENABLE_INTEL_MYRIAD "myriad targeted plugin for inference engine" ${ENABLE_INTEL_MYRIAD_DEFAULT} "ENABLE_INTEL_MYRIAD_COMMON" OFF)
ie_dependent_option (ENABLE_MYRIAD_NO_BOOT "myriad plugin will skip device boot" OFF "ENABLE_INTEL_MYRIAD" OFF)
@@ -120,21 +114,42 @@ ie_dependent_option (ENABLE_MYRIAD_MVNC_TESTS "functional and behavior tests for
ie_dependent_option (ENABLE_DATA "fetch models from testdata repo" ON "ENABLE_FUNCTIONAL_TESTS;NOT ANDROID" OFF)
ie_dependent_option (ENABLE_BEH_TESTS "tests oriented to check inference engine API corecteness" ON "ENABLE_TESTS" OFF)
ie_dependent_option (ENABLE_BEH_TESTS "tests oriented to check inference engine API correctness" ON "ENABLE_TESTS" OFF)
ie_dependent_option (ENABLE_FUNCTIONAL_TESTS "functional tests" ON "ENABLE_TESTS" OFF)
ie_dependent_option (ENABLE_SAMPLES "console samples are part of inference engine package" ON "NOT MINGW" OFF)
ie_option (ENABLE_SAMPLES "console samples are part of inference engine package" ON)
ie_option (ENABLE_OPENCV "enables OpenCV" ON)
ie_option (ENABLE_OPENCV "enables custom OpenCV download" OFF)
ie_option (ENABLE_V7_SERIALIZE "enables serialization to IR v7" OFF)
set(IE_EXTRA_MODULES "" CACHE STRING "Extra paths for extra modules to include into OpenVINO build")
set(OPENVINO_EXTRA_MODULES "" CACHE STRING "Extra paths for extra modules to include into OpenVINO build")
ie_dependent_option(ENABLE_TBB_RELEASE_ONLY "Only Release TBB libraries are linked to the Inference Engine binaries" ON "THREADING MATCHES TBB;LINUX" OFF)
ie_dependent_option (ENABLE_SYSTEM_PUGIXML "use the system copy of pugixml" OFF "BUILD_SHARED_LIBS" OFF)
if(LINUX)
# Debian packages are enabled on Ubuntu systems
# so, system TBB / pugixml can be tried for usage
set(ENABLE_SYSTEM_LIBS_DEFAULT ON)
else()
set(ENABLE_SYSTEM_LIBS_DEFAULT OFF)
endif()
if(APPLE AND AARCH64)
set(ENABLE_SYSTEM_TBB_DEFAULT ON)
else()
set(ENABLE_SYSTEM_TBB_DEFAULT ${ENABLE_SYSTEM_LIBS_DEFAULT})
endif()
if(DEFINED ENV{TBBROOT} OR DEFINED ENV{TBB_DIR} OR DEFINED TBB_DIR OR DEFINED TBBROOT)
set(ENABLE_SYSTEM_TBB_DEFAULT OFF)
endif()
# for static libraries case libpugixml.a must be compiled with -fPIC
ie_dependent_option (ENABLE_SYSTEM_PUGIXML "use the system copy of pugixml" ${ENABLE_SYSTEM_LIBS_DEFAULT} "BUILD_SHARED_LIBS" OFF)
ie_dependent_option (ENABLE_SYSTEM_TBB "use the system version of TBB" ${ENABLE_SYSTEM_TBB_DEFAULT} "THREADING MATCHES TBB" OFF)
ie_option (ENABLE_DEBUG_CAPS "enable OpenVINO debug capabilities at runtime" OFF)
@@ -148,17 +163,17 @@ else()
set(protoc_available ON)
endif()
ie_dependent_option(ENABLE_OV_ONNX_FRONTEND "Enable ONNX FrontEnd" ON "protoc_available" OFF)
ie_dependent_option(ENABLE_OV_PADDLE_FRONTEND "Enable PaddlePaddle FrontEnd" ON "protoc_available" OFF)
find_host_package(PythonInterp 3 QUIET)
ie_option(ENABLE_OV_ONNX_FRONTEND "Enable ONNX FrontEnd" ${PYTHONINTERP_FOUND})
ie_option(ENABLE_OV_PADDLE_FRONTEND "Enable PaddlePaddle FrontEnd" ON)
ie_option(ENABLE_OV_IR_FRONTEND "Enable IR FrontEnd" ON)
ie_dependent_option(ENABLE_OV_TF_FRONTEND "Enable TensorFlow FrontEnd" ON "protoc_available" OFF)
ie_option(ENABLE_OV_TF_FRONTEND "Enable TensorFlow FrontEnd" ON)
ie_dependent_option(ENABLE_SYSTEM_PROTOBUF "Use system protobuf" OFF
"ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_TF_FRONTEND;BUILD_SHARED_LIBS" OFF)
ie_dependent_option(ENABLE_OV_CORE_UNIT_TESTS "Enables OpenVINO core unit tests" ON "ENABLE_TESTS;NOT ANDROID" OFF)
ie_dependent_option(ENABLE_OV_CORE_BACKEND_UNIT_TESTS "Control the building of unit tests using backends" ON
"ENABLE_OV_CORE_UNIT_TESTS" OFF)
ie_dependent_option(ENABLE_OV_CORE_UNIT_TESTS "Enables OpenVINO core unit tests" ON "ENABLE_TESTS" OFF)
ie_option(ENABLE_OPENVINO_DEBUG "Enable output for OPENVINO_DEBUG statements" OFF)
ie_option(ENABLE_REQUIREMENTS_INSTALL "Dynamic dependencies install" ON)
ie_dependent_option(ENABLE_REQUIREMENTS_INSTALL "Dynamic dependencies install" ON "ENABLE_TESTS;NOT CMAKE_CROSSCOMPILING" OFF)
if(NOT BUILD_SHARED_LIBS AND ENABLE_OV_TF_FRONTEND)
set(FORCE_FRONTENDS_USE_PROTOBUF ON)
@@ -166,9 +181,6 @@ else()
set(FORCE_FRONTENDS_USE_PROTOBUF OFF)
endif()
# WA for ngraph python build on Windows debug
list(REMOVE_ITEM IE_OPTIONS ENABLE_OV_CORE_UNIT_TESTS ENABLE_OV_CORE_BACKEND_UNIT_TESTS)
#
# Process featues
#
+40
View File
@@ -0,0 +1,40 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
#
# OpenVINO Core components including frontends, plugins, etc
#
macro(ov_cpack_settings)
# fill a list of components which are part of conda
set(cpack_components_all ${CPACK_COMPONENTS_ALL})
unset(CPACK_COMPONENTS_ALL)
foreach(item IN LISTS cpack_components_all)
# filter out some components, which are not needed to be wrapped to conda-forge
if(# python wheels are not needed to be wrapped by conda | brew packages
NOT item STREQUAL OV_CPACK_COMP_PYTHON_WHEELS AND
# skip C / C++ / Python samples
NOT item STREQUAL OV_CPACK_COMP_CPP_SAMPLES AND
NOT item STREQUAL OV_CPACK_COMP_C_SAMPLES AND
NOT item STREQUAL OV_CPACK_COMP_PYTHON_SAMPLES AND
# even for case of system TBB we have installation rules for wheels packages
# so, need to skip this explicitly since they are installed in `host` section
NOT item MATCHES "^tbb(_dev)?$" AND
# the same for pugixml
NOT item STREQUAL "pugixml" AND
# TF component is not released
NOT item STREQUAL "tensorflow" AND
# we have `license_file` field in conda meta.yml
NOT item STREQUAL OV_CPACK_COMP_LICENSING AND
# not appropriate components
NOT item STREQUAL OV_CPACK_COMP_DEPLOYMENT_MANAGER AND
NOT item STREQUAL OV_CPACK_COMP_INSTALL_DEPENDENCIES AND
NOT item STREQUAL OV_CPACK_COMP_SETUPVARS)
list(APPEND CPACK_COMPONENTS_ALL ${item})
endif()
endforeach()
list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL)
# override generator
set(CPACK_GENERATOR "TGZ")
endmacro()
+390
View File
@@ -0,0 +1,390 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
#
# OpenVINO Core components including frontends, plugins, etc
#
function(_ov_add_plugin comp is_pseudo)
string(TOUPPER "${comp}" ucomp)
if(NOT DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
else()
set(package_name "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
endif()
if(NOT DEFINED cpack_full_ver)
message(FATAL_ERROR "Internal variable 'cpack_full_ver' is not defined")
endif()
if(is_pseudo)
if(pseudo_plugins_recommends)
set(pseudo_plugins_recommends "${pseudo_plugins_recommends}, ${package_name} (= ${cpack_full_ver})")
else()
set(pseudo_plugins_recommends "${package_name} (= ${cpack_full_ver})")
endif()
endif()
if(all_plugins_suggest)
set(all_plugins_suggest "${all_plugins_suggest}, ${package_name} (= ${cpack_full_ver})")
else()
set(all_plugins_suggest "${package_name} (= ${cpack_full_ver})")
endif()
list(APPEND installed_plugins ${comp})
set(pseudo_plugins_recommends "${pseudo_plugins_recommends}" PARENT_SCOPE)
set(all_plugins_suggest "${all_plugins_suggest}" PARENT_SCOPE)
set(installed_plugins "${installed_plugins}" PARENT_SCOPE)
endfunction()
macro(ov_cpack_settings)
# fill a list of components which are part of debian
set(cpack_components_all ${CPACK_COMPONENTS_ALL})
unset(CPACK_COMPONENTS_ALL)
foreach(item IN LISTS cpack_components_all)
# filter out some components, which are not needed to be wrapped to .deb package
if(# skip OpenVINO Pyhon API and samples
NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO}_python.*" AND
NOT item STREQUAL OV_CPACK_COMP_PYTHON_SAMPLES AND
# python wheels are not needed to be wrapped by debian packages
NOT item STREQUAL OV_CPACK_COMP_PYTHON_WHEELS AND
# see ticket # 82605
NOT item STREQUAL "gna" AND
# even for case of system TBB we have installation rules for wheels packages
# so, need to skip this explicitly
NOT item MATCHES "^tbb(_dev)?$" AND
# the same for pugixml
NOT item STREQUAL "pugixml" AND
# TF component is not released
NOT item STREQUAL "tensorflow" AND
# we have copyright file for debian package
NOT item STREQUAL OV_CPACK_COMP_LICENSING AND
# not appropriate components
NOT item STREQUAL OV_CPACK_COMP_DEPLOYMENT_MANAGER AND
NOT item STREQUAL OV_CPACK_COMP_INSTALL_DEPENDENCIES AND
NOT item STREQUAL OV_CPACK_COMP_SETUPVARS)
list(APPEND CPACK_COMPONENTS_ALL ${item})
endif()
endforeach()
list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL)
# version with 3 components
set(cpack_name_ver "${OpenVINO_VERSION}")
# full version with epoch and release components
set(cpack_full_ver "${CPACK_PACKAGE_VERSION}")
# take release version into account
if(DEFINED CPACK_DEBIAN_PACKAGE_RELEASE)
set(cpack_full_ver "${cpack_full_ver}-${CPACK_DEBIAN_PACKAGE_RELEASE}")
endif()
# take epoch version into account
if(DEFINED CPACK_DEBIAN_PACKAGE_EPOCH)
set(cpack_full_ver "${CPACK_DEBIAN_PACKAGE_EPOCH}:${cpack_full_ver}")
endif()
# a list of conflicting package versions
set(conflicting_versions
# 2022 release series
# - 2022.1.0 is the last public release with debian packages from Intel install team
# - 2022.1.1, 2022.2 do not have debian packages enabled, distributed only as archives
# - 2022.3 is the first release where RPM updated packages are introduced
2022.1.0)
#
# core: base dependency for each component
#
# core
set(CPACK_COMPONENT_CORE_DESCRIPTION "OpenVINO C / C++ Runtime libraries")
set(CPACK_DEBIAN_CORE_PACKAGE_NAME "libopenvino-${cpack_name_ver}")
# we need triggers to run ldconfig for openvino
set(CPACK_DEBIAN_CORE_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm};${def_triggers}")
ov_debian_add_lintian_suppression("${OV_CPACK_COMP_CORE}"
# package-name-doesnt-match-sonames libopenvino202230 libopenvino-c20223
"package-name-doesnt-match-sonames")
#
# Plugins
#
# hetero
if(ENABLE_HETERO)
set(CPACK_COMPONENT_HETERO_DESCRIPTION "OpenVINO Hetero plugin")
set(CPACK_COMPONENT_HETERO_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_HETERO_PACKAGE_NAME "libopenvino-hetero-plugin-${cpack_name_ver}")
set(CPACK_DEBIAN_HETERO_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
_ov_add_plugin(hetero ON)
endif()
# auto batch
if(ENABLE_AUTO_BATCH)
set(CPACK_COMPONENT_BATCH_DESCRIPTION "OpenVINO Automatic Batching plugin")
set(CPACK_COMPONENT_BATCH_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_BATCH_PACKAGE_NAME "libopenvino-auto-batch-plugin-${cpack_name_ver}")
set(CPACK_DEBIAN_BATCH_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
_ov_add_plugin(batch ON)
endif()
# multi / auto plugins
if(ENABLE_MULTI)
if(ENABLE_AUTO)
set(CPACK_COMPONENT_MULTI_DESCRIPTION "OpenVINO Auto / Multi plugin")
else()
set(CPACK_COMPONENT_MULTI_DESCRIPTION "OpenVINO Multi plugin")
endif()
set(CPACK_COMPONENT_MULTI_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_MULTI_PACKAGE_NAME "libopenvino-auto-plugin-${cpack_name_ver}")
set(CPACK_DEBIAN_MULTI_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
_ov_add_plugin(multi ON)
elseif(ENABLE_AUTO)
set(CPACK_COMPONENT_AUTO_DESCRIPTION "OpenVINO Auto plugin")
set(CPACK_COMPONENT_AUTO_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_AUTO_PACKAGE_NAME "libopenvino-auto-plugin-${cpack_name_ver}")
set(CPACK_DEBIAN_AUTO_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
_ov_add_plugin(auto ON)
endif()
# intel-cpu
if(ENABLE_INTEL_CPU OR DEFINED openvino_arm_cpu_plugin_SOURCE_DIR)
if(ENABLE_INTEL_CPU)
set(CPACK_COMPONENT_CPU_DESCRIPTION "Intel® CPU plugin")
else()
set(CPACK_COMPONENT_CPU_DESCRIPTION "ARM CPU")
endif()
set(CPACK_COMPONENT_CPU_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_CPU_PACKAGE_NAME "libopenvino-intel-cpu-plugin-${cpack_name_ver}")
set(CPACK_DEBIAN_CPU_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
_ov_add_plugin(cpu OFF)
endif()
# intel-gpu
if(ENABLE_INTEL_GPU)
set(CPACK_COMPONENT_GPU_DESCRIPTION "Intel® Processor Graphics plugin")
set(CPACK_COMPONENT_GPU_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_GPU_PACKAGE_NAME "libopenvino-intel-gpu-plugin-${cpack_name_ver}")
set(CPACK_DEBIAN_GPU_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
# auto batch exhances GPU
# set(CPACK_DEBIAN_BATCH_PACKAGE_ENHANCES "${CPACK_DEBIAN_GPU_PACKAGE_NAME} = (${cpack_full_ver})")
_ov_add_plugin(gpu OFF)
endif()
# intel-myriad
if(ENABLE_INTEL_MYRIAD)
set(CPACK_COMPONENT_MYRIAD_DESCRIPTION "Intel® Movidius™ VPU plugin")
set(CPACK_COMPONENT_MYRIAD_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_MYRIAD_PACKAGE_NAME "libopenvino-intel-vpu-plugin-${cpack_name_ver}")
set(CPACK_DEBIAN_MYRIAD_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
_ov_add_plugin(myriad OFF)
endif()
# intel-gna
if(ENABLE_INTEL_GNA AND "gna" IN_LIST CPACK_COMPONENTS_ALL)
set(CPACK_COMPONENT_GNA_DESCRIPTION "Intel® Gaussian Neural Accelerator")
set(CPACK_COMPONENT_GNA_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_GNA_PACKAGE_NAME "libopenvino-intel-gna-plugin-${cpack_name_ver}")
# since we have libgna.so we need to call ldconfig and have `def_triggers` here
set(CPACK_DEBIAN_GNA_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm};${def_triggers}")
ov_debian_add_lintian_suppression(gna
# package name matches libopenvino_intel_gna_plugin.so
# but lintian looks at libgna.so.2 since it's a versioned library
"package-name-doesnt-match-sonames")
_ov_add_plugin(gna OFF)
endif()
# # add pseudo plugins are recommended to core component
# if(pseudo_plugins_recommends)
# # see https://superuser.com/questions/70031/what-is-the-difference-between-recommended-and-suggested-packages-ubuntu.
# # we suppose that pseudo plugins are needed for core
# set(CPACK_DEBIAN_CORE_PACKAGE_RECOMMENDS "${pseudo_plugins_recommends}")
# endif()
#
# Frontends
#
if(ENABLE_OV_IR_FRONTEND)
set(CPACK_COMPONENT_IR_DESCRIPTION "OpenVINO IR Frontend")
set(CPACK_COMPONENT_IR_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_IR_PACKAGE_NAME "libopenvino-ir-frontend-${cpack_name_ver}")
set(CPACK_DEBIAN_IR_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
ov_debian_add_lintian_suppression(ir
# we have different package name strategy; it suggests libopenvino-ir-frontend202230
"package-name-doesnt-match-sonames"
# IR FE should not linked directly by end users
"package-must-activate-ldconfig-trigger")
list(APPEND frontends ir)
endif()
if(ENABLE_OV_ONNX_FRONTEND)
set(CPACK_COMPONENT_ONNX_DESCRIPTION "OpenVINO ONNX Frontend")
set(CPACK_COMPONENT_ONNX_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_ONNX_PACKAGE_NAME "libopenvino-onnx-frontend-${cpack_name_ver}")
# since we ONNX FE is linkable target, we need to call ldconfig (i.e. `def_triggers`)
set(CPACK_DEBIAN_ONNX_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm};${def_triggers}")
ov_debian_add_lintian_suppression(onnx
# we have different package name strategy; it suggests libopenvino-onnx-frontend202230
"package-name-doesnt-match-sonames")
list(APPEND frontends onnx)
endif()
if(ENABLE_OV_TF_FRONTEND AND "tensorflow" IN_LIST CPACK_COMPONENTS_ALL)
set(CPACK_COMPONENT_TENSORFLOW_DESCRIPTION "OpenVINO TensorFlow Frontend")
set(CPACK_COMPONENT_TENSORFLOW_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_TENSORFLOW_PACKAGE_NAME "libopenvino-tensorflow-frontend-${cpack_name_ver}")
# since we TF FE is linkable target, we need to call ldconfig (i.e. `def_triggers`)
set(CPACK_DEBIAN_TENSORFLOW_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm};${def_triggers}")
ov_debian_add_lintian_suppression(tensorflow
# we have different package name strategy; it suggests libopenvino-tensorflow-frontend202230
"package-name-doesnt-match-sonames")
list(APPEND frontends tensorflow)
endif()
if(ENABLE_OV_PADDLE_FRONTEND)
set(CPACK_COMPONENT_PADDLE_DESCRIPTION "OpenVINO Paddle Frontend")
set(CPACK_COMPONENT_PADDLE_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_DEBIAN_PADDLE_PACKAGE_NAME "libopenvino-paddle-frontend-${cpack_name_ver}")
# since we PADDLE FE is linkable target, we need to call ldconfig (i.e. `def_triggers`)
set(CPACK_DEBIAN_PADDLE_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm};${def_triggers}")
ov_debian_add_lintian_suppression(paddle
# we have different package name strategy; it suggests libopenvino-paddle-frontend202230
"package-name-doesnt-match-sonames")
list(APPEND frontends paddle)
endif()
#
# core_dev: depends on core and frontends (since frontends don't want to provide its own dev packages)
#
set(CPACK_COMPONENT_CORE_DEV_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit C / C++ Development files")
set(CPACK_COMPONENT_CORE_DEV_DEPENDS "${OV_CPACK_COMP_CORE};${frontends}")
set(CPACK_DEBIAN_CORE_DEV_PACKAGE_NAME "libopenvino-dev-${cpack_name_ver}")
# TODO: update once compile_tool is excluded from the package
# set(CPACK_DEBIAN_CORE_DEV_PACKAGE_ARCHITECTURE "all")
ov_debian_generate_conflicts("${OV_CPACK_COMP_CORE_DEV}" ${conflicting_versions})
ov_debian_add_lintian_suppression("${OV_CPACK_COMP_CORE_DEV}"
# CVS-79409: create man page for compile_tool
"binary-without-manpage")
#
# Python bindings
#
if(ENABLE_PYTHON)
ov_get_pyversion(pyversion)
set(python_component "${OV_CPACK_COMP_PYTHON_OPENVINO}_${pyversion}")
string(TOUPPER "${pyversion}" pyversion)
set(CPACK_COMPONENT_PYOPENVINO_${pyversion}_DESCRIPTION "OpenVINO Python bindings")
set(CPACK_COMPONENT_PYOPENVINO_${pyversion}_DEPENDS "${OV_CPACK_COMP_CORE}")
list(APPEND CPACK_COMPONENT_PYOPENVINO_${pyversion}_DEPENDS ${installed_plugins})
list(APPEND CPACK_COMPONENT_PYOPENVINO_${pyversion}_DEPENDS ${frontends})
set(CPACK_DEBIAN_PYOPENVINO_${pyversion}_PACKAGE_NAME "libopenvino-python-${cpack_name_ver}")
set(CPACK_DEBIAN_PYOPENVINO_${pyversion}_PACKAGE_CONTROL_EXTRA "${def_postinst};${def_postrm}")
set(CPACK_DEBIAN_PYOPENVINO_${pyversion}_PACKAGE_DEPENDS "python3")
# TODO: fix all the warnings
ov_debian_add_lintian_suppression(${python_component}
# usr/lib/python3/dist-packages/requirements.txt
"unknown-file-in-python-module-directory"
# usr/lib/python3/dist-packages/openvino/inference_engine/__init__.py
"executable-not-elf-or-script"
# all directories
"non-standard-dir-perm"
# all python files
"non-standard-file-perm")
endif()
#
# Samples
#
set(samples_build_deps "cmake, g++, gcc, libc6-dev, make")
set(samples_build_deps_suggest "libopencv-core-dev, libopencv-imgproc-dev, libopencv-imgcodecs-dev")
# c_samples / cpp_samples
set(CPACK_COMPONENT_SAMPLES_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit C / C++ Samples")
set(CPACK_COMPONENT_SAMPLES_DEPENDS "${OV_CPACK_COMP_CORE_DEV}")
set(CPACK_DEBIAN_SAMPLES_PACKAGE_NAME "openvino-samples-${cpack_name_ver}")
set(CPACK_DEBIAN_SAMPLES_PACKAGE_SUGGESTS "${samples_build_deps_suggest}, ${all_plugins_suggest}")
set(CPACK_DEBIAN_SAMPLES_PACKAGE_DEPENDS "libgflags-dev, nlohmann-json3-dev, zlib1g-dev")
# can be skipped with --no-install-recommends
set(CPACK_DEBIAN_SAMPLES_PACKAGE_RECOMMENDS "${samples_build_deps}")
set(CPACK_DEBIAN_SAMPLES_PACKAGE_ARCHITECTURE "all")
# python_samples
if(ENABLE_PYTHON)
set(CPACK_COMPONENT_PYTHON_SAMPLES_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit Python Samples")
set(CPACK_COMPONENT_PYTHON_SAMPLES_DEPENDS "${python_component}")
set(CPACK_DEBIAN_PYTHON_SAMPLES_PACKAGE_NAME "openvino-samples-python-${cpack_name_ver}")
set(CPACK_DEBIAN_PYTHON_SAMPLES_PACKAGE_DEPENDS "python3")
set(CPACK_DEBIAN_PYTHON_SAMPLES_PACKAGE_ARCHITECTURE "all")
endif()
#
# Add umbrella packages
#
# all libraries
set(CPACK_COMPONENT_LIBRARIES_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit Libraries")
if(installed_plugins)
set(CPACK_COMPONENT_LIBRARIES_DEPENDS "${installed_plugins}")
else()
set(CPACK_COMPONENT_LIBRARIES_DEPENDS "${OV_CPACK_COMP_CORE}")
endif()
set(CPACK_DEBIAN_LIBRARIES_PACKAGE_NAME "openvino-libraries-${cpack_name_ver}")
set(CPACK_DEBIAN_LIBRARIES_PACKAGE_ARCHITECTURE "all")
# all libraries-dev
set(CPACK_COMPONENT_LIBRARIES_DEV_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit Libraries and Development files")
set(CPACK_COMPONENT_LIBRARIES_DEV_DEPENDS "${OV_CPACK_COMP_CORE_DEV};libraries")
set(CPACK_DEBIAN_LIBRARIES_DEV_PACKAGE_NAME "openvino-libraries-dev-${cpack_name_ver}")
set(CPACK_DEBIAN_LIBRARIES_DEV_PACKAGE_ARCHITECTURE "all")
ov_debian_generate_conflicts(libraries_dev ${conflicting_versions})
# all openvino
set(CPACK_COMPONENT_OPENVINO_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit Libraries and Development files")
set(CPACK_COMPONENT_OPENVINO_DEPENDS "libraries_dev;${OV_CPACK_COMP_CPP_SAMPLES}")
set(CPACK_DEBIAN_OPENVINO_PACKAGE_NAME "openvino-${cpack_name_ver}")
set(CPACK_DEBIAN_OPENVINO_PACKAGE_ARCHITECTURE "all")
ov_debian_generate_conflicts(openvino ${conflicting_versions})
ov_debian_add_lintian_suppression(openvino
# reproduced only on ubu18
"description-starts-with-package-name")
list(APPEND CPACK_COMPONENTS_ALL "libraries;libraries_dev;openvino")
#
# Install latest symlink packages
#
# NOTE: we expicitly don't add runtime latest packages
# since a user needs to depend on specific VERSIONED runtime package
# with fixed SONAMEs, while latest package can be updated multiple times
# ov_debian_add_latest_component(libraries)
ov_debian_add_latest_component(libraries_dev)
ov_debian_add_latest_component(openvino)
ov_debian_add_lintian_suppression(openvino_latest
# reproduced only on ubu18
"description-starts-with-package-name")
# users can manually install specific version of package
# e.g. sudo apt-get install openvino=2022.1.0
# even if we have latest package version 2022.2.0
#
# install debian common files
#
foreach(comp IN LISTS CPACK_COMPONENTS_ALL)
ov_debian_add_changelog_and_copyright("${comp}")
endforeach()
endmacro()
+27
View File
@@ -0,0 +1,27 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
# Components
macro(ov_cpack_settings)
# fill a list of components which are part of NSIS or other GUI installer
set(cpack_components_all ${CPACK_COMPONENTS_ALL})
unset(CPACK_COMPONENTS_ALL)
foreach(item IN LISTS cpack_components_all)
# filter out some components, which are not needed to be wrapped to Windows package
if(# python wheels are not needed to be wrapped by NSIS installer
NOT item STREQUAL OV_CPACK_COMP_PYTHON_WHEELS)
list(APPEND CPACK_COMPONENTS_ALL ${item})
endif()
endforeach()
# restore the components settings
foreach(comp IN LISTS CPACK_COMPONENTS_ALL)
cpack_add_component(${comp} ${_${comp}_cpack_component_args})
endforeach()
# override package file name
set(CPACK_PACKAGE_FILE_NAME "w_openvino_toolkit_p_${OpenVINO_VERSION}.${OpenVINO_VERSION_BUILD}_offline")
endmacro()
+13
View File
@@ -0,0 +1,13 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
if(CPACK_GENERATOR STREQUAL "DEB")
include(cmake/packaging/debian.cmake)
elseif(CPACK_GENERATOR STREQUAL "RPM")
include(cmake/packaging/rpm.cmake)
elseif(CPACK_GENERATOR MATCHES "^(CONDA-FORGE|BREW)$")
include(cmake/packaging/common-libraries.cmake)
elseif(CPACK_GENERATOR STREQUAL "NSIS")
include(cmake/packaging/nsis.cmake)
endif()
+366
View File
@@ -0,0 +1,366 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
#
# OpenVINO Core components including frontends, plugins, etc
#
function(_ov_add_plugin comp is_pseudo)
string(TOUPPER "${comp}" ucomp)
if(NOT DEFINED CPACK_RPM_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_RPM_${ucomp}_PACKAGE_NAME is not defined")
else()
set(package_name "${CPACK_RPM_${ucomp}_PACKAGE_NAME}")
endif()
if(NOT DEFINED cpack_full_ver)
message(FATAL_ERROR "Internal variable 'cpack_full_ver' is not defined")
endif()
if(is_pseudo)
if(pseudo_plugins_recommends)
set(pseudo_plugins_recommends "${pseudo_plugins_recommends}, ${package_name} (= ${cpack_full_ver})")
else()
set(pseudo_plugins_recommends "${package_name} (= ${cpack_full_ver})")
endif()
endif()
if(all_plugins_suggest)
set(all_plugins_suggest "${all_plugins_suggest}, ${package_name} (= ${cpack_full_ver})")
else()
set(all_plugins_suggest "${package_name} (= ${cpack_full_ver})")
endif()
list(APPEND installed_plugins ${comp})
set(pseudo_plugins_recommends "${pseudo_plugins_recommends}" PARENT_SCOPE)
set(all_plugins_suggest "${all_plugins_suggest}" PARENT_SCOPE)
set(installed_plugins "${installed_plugins}" PARENT_SCOPE)
endfunction()
macro(ov_cpack_settings)
# fill a list of components which are part of rpm
set(cpack_components_all ${CPACK_COMPONENTS_ALL})
unset(CPACK_COMPONENTS_ALL)
foreach(item IN LISTS cpack_components_all)
# filter out some components, which are not needed to be wrapped to .deb package
if(# skip OpenVINO Pyhon API and samples
NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO}_python.*" AND
NOT item STREQUAL OV_CPACK_COMP_PYTHON_SAMPLES AND
# python wheels are not needed to be wrapped by rpm packages
NOT item STREQUAL OV_CPACK_COMP_PYTHON_WHEELS AND
# see ticket # 82605
NOT item STREQUAL "gna" AND
# even for case of system TBB we have installation rules for wheels packages
# so, need to skip this explicitly
NOT item MATCHES "^tbb(_dev)?$" AND
# the same for pugixml
NOT item STREQUAL "pugixml" AND
# TF component is not released
NOT item STREQUAL "tensorflow" AND
# we have copyright file for rpm package
NOT item STREQUAL OV_CPACK_COMP_LICENSING AND
# not appropriate components
NOT item STREQUAL OV_CPACK_COMP_DEPLOYMENT_MANAGER AND
NOT item STREQUAL OV_CPACK_COMP_INSTALL_DEPENDENCIES AND
NOT item STREQUAL OV_CPACK_COMP_SETUPVARS)
list(APPEND CPACK_COMPONENTS_ALL ${item})
endif()
endforeach()
list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL)
# version with 3 components
set(cpack_name_ver "${OpenVINO_VERSION}")
# full version with epoch and release components
set(cpack_full_ver "${CPACK_PACKAGE_VERSION}")
# take release version into account
if(DEFINED CPACK_RPM_PACKAGE_RELEASE)
set(cpack_full_ver "${cpack_full_ver}-${CPACK_RPM_PACKAGE_RELEASE}")
endif()
# take epoch version into account
if(DEFINED CPACK_RPM_PACKAGE_EPOCH)
set(cpack_full_ver "${CPACK_RPM_PACKAGE_EPOCH}:${cpack_full_ver}")
endif()
# a list of conflicting package versions
set(conflicting_versions
# 2022 release series
# - 2022.1.0 is the last public release with rpm packages from Intel install team
# - 2022.1.1, 2022.2 do not have rpm packages enabled, distributed only as archives
# - 2022.3 is the first release where RPM updated packages are introduced
2022.1.0)
find_host_program(rpmlint_PROGRAM NAMES rpmlint DOC "Path to rpmlint")
if(rpmlint_PROGRAM)
execute_process(COMMAND "${rpmlint_PROGRAM}" --version
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
RESULT_VARIABLE rpmlint_code
OUTPUT_VARIABLE rpmlint_version)
if(NOT rpmlint_code EQUAL 0)
message(FATAL_ERROR "Internal error: Failed to determine rpmlint version")
else()
if(rpmlint_version MATCHES ".*version ([0-9]+\.[0-9]+) Copyright.*")
set(rpmlint_version "${CMAKE_MATCH_1}")
else()
message(WARNING "Failed to extract rpmlint version from '${rpmlint_version}'")
endif()
endif()
else()
message(WARNING "Failed to find 'rpmlint' tool, use 'sudo yum / dnf install rpmlint' to install it")
endif()
#
# core: base dependency for all components
#
set(CPACK_COMPONENT_CORE_DESCRIPTION "OpenVINO C / C++ Runtime libraries")
set(CPACK_RPM_CORE_PACKAGE_NAME "libopenvino-${cpack_name_ver}")
set(CPACK_RPM_CORE_POST_INSTALL_SCRIPT_FILE "${def_triggers}")
set(CPACK_RPM_CORE_POST_UNINSTALL_SCRIPT_FILE "${def_triggers}")
#
# Plugins
#
# hetero
if(ENABLE_HETERO)
set(CPACK_COMPONENT_HETERO_DESCRIPTION "OpenVINO Hetero plugin")
set(CPACK_COMPONENT_HETERO_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_HETERO_PACKAGE_NAME "libopenvino-hetero-plugin-${cpack_name_ver}")
_ov_add_plugin(hetero ON)
endif()
# auto batch
if(ENABLE_AUTO_BATCH)
set(CPACK_COMPONENT_BATCH_DESCRIPTION "OpenVINO Automatic Batching plugin")
set(CPACK_COMPONENT_BATCH_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_BATCH_PACKAGE_NAME "libopenvino-auto-batch-plugin-${cpack_name_ver}")
_ov_add_plugin(batch ON)
endif()
# multi / auto plugins
if(ENABLE_MULTI)
if(ENABLE_AUTO)
set(CPACK_COMPONENT_MULTI_DESCRIPTION "OpenVINO Auto / Multi plugin")
else()
set(CPACK_COMPONENT_MULTI_DESCRIPTION "OpenVINO Multi plugin")
endif()
set(CPACK_COMPONENT_MULTI_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_MULTI_PACKAGE_NAME "libopenvino-auto-plugin-${cpack_name_ver}")
_ov_add_plugin(multi ON)
elseif(ENABLE_AUTO)
set(CPACK_COMPONENT_AUTO_DESCRIPTION "OpenVINO Auto plugin")
set(CPACK_COMPONENT_AUTO_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_AUTO_PACKAGE_NAME "libopenvino-auto-plugin-${cpack_name_ver}")
_ov_add_plugin(auto ON)
endif()
# intel-cpu
if(ENABLE_INTEL_CPU OR DEFINED openvino_arm_cpu_plugin_SOURCE_DIR)
if(ENABLE_INTEL_CPU)
set(CPACK_COMPONENT_CPU_DESCRIPTION "Intel® CPU")
else()
set(CPACK_COMPONENT_CPU_DESCRIPTION "ARM CPU")
endif()
set(CPACK_COMPONENT_CPU_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_CPU_PACKAGE_NAME "libopenvino-intel-cpu-plugin-${cpack_name_ver}")
_ov_add_plugin(cpu OFF)
endif()
# intel-gpu
if(ENABLE_INTEL_GPU)
set(CPACK_COMPONENT_GPU_DESCRIPTION "Intel® Processor Graphics")
set(CPACK_COMPONENT_GPU_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_GPU_PACKAGE_NAME "libopenvino-intel-gpu-plugin-${cpack_name_ver}")
# auto batch exhances GPU
# set(CPACK_RPM_BATCH_PACKAGE_ENHANCES "${CPACK_RPM_GPU_PACKAGE_NAME} = (${cpack_full_ver})")
_ov_add_plugin(gpu OFF)
endif()
# intel-myriad
if(ENABLE_INTEL_MYRIAD)
set(CPACK_COMPONENT_MYRIAD_DESCRIPTION "Intel® Movidius™ VPU")
set(CPACK_COMPONENT_MYRIAD_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_MYRIAD_PACKAGE_NAME "libopenvino-intel-vpu-plugin-${cpack_name_ver}")
_ov_add_plugin(myriad OFF)
endif()
# intel-gna
if(ENABLE_INTEL_GNA AND "gna" IN_LIST CPACK_COMPONENTS_ALL)
set(CPACK_COMPONENT_GNA_DESCRIPTION "Intel® Gaussian Neural Accelerator")
set(CPACK_COMPONENT_GNA_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_GNA_PACKAGE_NAME "libopenvino-intel-gna-plugin-${cpack_name_ver}")
_ov_add_plugin(gna OFF)
endif()
#
# Frontends
#
if(ENABLE_OV_IR_FRONTEND)
set(CPACK_COMPONENT_IR_DESCRIPTION "OpenVINO IR Frontend")
set(CPACK_COMPONENT_IR_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_IR_PACKAGE_NAME "libopenvino-ir-frontend-${cpack_name_ver}")
set(CPACK_RPM_IR_POST_INSTALL_SCRIPT_FILE "${def_triggers}")
set(CPACK_RPM_IR_POST_UNINSTALL_SCRIPT_FILE "${def_triggers}")
list(APPEND frontends ir)
endif()
if(ENABLE_OV_ONNX_FRONTEND)
set(CPACK_COMPONENT_ONNX_DESCRIPTION "OpenVINO ONNX Frontend")
set(CPACK_COMPONENT_ONNX_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_ONNX_PACKAGE_NAME "libopenvino-onnx-frontend-${cpack_name_ver}")
set(CPACK_RPM_ONNX_POST_INSTALL_SCRIPT_FILE "${def_triggers}")
set(CPACK_RPM_ONNX_POST_UNINSTALL_SCRIPT_FILE "${def_triggers}")
list(APPEND frontends onnx)
endif()
if(ENABLE_OV_TF_FRONTEND AND "tensorflow" IN_LIST CPACK_COMPONENTS_ALL)
set(CPACK_COMPONENT_TENSORFLOW_DESCRIPTION "OpenVINO TensorFlow Frontend")
set(CPACK_COMPONENT_TENSORFLOW_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_TENSORFLOW_PACKAGE_NAME "libopenvino-tensorflow-frontend-${cpack_name_ver}")
set(CPACK_RPM_TENSORFLOW_POST_INSTALL_SCRIPT_FILE "${def_triggers}")
set(CPACK_RPM_TENSORFLOW_POST_UNINSTALL_SCRIPT_FILE "${def_triggers}")
list(APPEND frontends tensorflow)
endif()
if(ENABLE_OV_PADDLE_FRONTEND)
set(CPACK_COMPONENT_PADDLE_DESCRIPTION "OpenVINO Paddle Frontend")
set(CPACK_COMPONENT_PADDLE_DEPENDS "${OV_CPACK_COMP_CORE}")
set(CPACK_RPM_PADDLE_PACKAGE_NAME "libopenvino-paddle-frontend-${cpack_name_ver}")
set(CPACK_RPM_PADDLE_POST_INSTALL_SCRIPT_FILE "${def_triggers}")
set(CPACK_RPM_PADDLE_POST_UNINSTALL_SCRIPT_FILE "${def_triggers}")
list(APPEND frontends paddle)
endif()
#
# core_dev: depends on core and frontends (since frontends don't want to provide its own dev packages)
#
set(CPACK_COMPONENT_CORE_DEV_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit C / C++ Development files")
set(CPACK_COMPONENT_CORE_DEV_DEPENDS "${OV_CPACK_COMP_CORE};${frontends}")
set(CPACK_RPM_CORE_DEV_PACKAGE_NAME "libopenvino-devel-${cpack_name_ver}")
# TODO: update once compile_tool is excluded from the package
# set(CPACK_RPM_CORE_DEV_PACKAGE_ARCHITECTURE "noarch")
ov_rpm_generate_conflicts("${OV_CPACK_COMP_CORE_DEV}" ${conflicting_versions})
ov_rpm_add_rpmlint_suppression("${OV_CPACK_COMP_CORE_DEV}"
# contains samples source codes
"devel-file-in-non-devel-package /usr/${OV_CPACK_INCLUDEDIR}/ngraph"
"devel-file-in-non-devel-package /usr/${OV_CPACK_INCLUDEDIR}/ie"
"devel-file-in-non-devel-package /usr/${OV_CPACK_INCLUDEDIR}/openvino"
"devel-file-in-non-devel-package /usr/${OV_CPACK_RUNTIMEDIR}/libopenvino*"
"devel-file-in-non-devel-package /usr/${OV_CPACK_RUNTIMEDIR}/pkgconfig/openvino.pc"
# CVS-79409: create man page for compile_tool, remove together with compile_tool
"no-manual-page-for-binary compile_tool")
#
# Python bindings
#
if(ENABLE_PYTHON)
ov_get_pyversion(pyversion)
set(python_component "${OV_CPACK_COMP_PYTHON_OPENVINO}_${pyversion}")
string(TOUPPER "${pyversion}" pyversion)
set(CPACK_COMPONENT_PYOPENVINO_${pyversion}_DESCRIPTION "OpenVINO Python bindings")
set(CPACK_COMPONENT_PYOPENVINO_${pyversion}_DEPENDS "${OV_CPACK_COMP_CORE}")
list(APPEND CPACK_COMPONENT_PYOPENVINO_${pyversion}_DEPENDS ${installed_plugins})
list(APPEND CPACK_COMPONENT_PYOPENVINO_${pyversion}_DEPENDS ${frontends})
set(CPACK_RPM_PYOPENVINO_${pyversion}_PACKAGE_REQUIRES "python3")
set(CPACK_RPM_PYOPENVINO_${pyversion}_PACKAGE_NAME "libopenvino-python-${cpack_name_ver}")
endif()
#
# Samples
#
# TODO: provide different packages in two lines below
set(samples_build_deps "cmake3, gcc-c++, gcc, glibc-devel, make")
set(samples_build_deps_suggest "opencv-devel (>= 3.0)")
# c_samples / cpp_samples
set(CPACK_COMPONENT_SAMPLES_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit C / C++ Samples")
set(CPACK_COMPONENT_SAMPLES_DEPENDS "core_dev")
set(CPACK_RPM_SAMPLES_PACKAGE_NAME "openvino-samples-${cpack_name_ver}")
# SUGGESTS may be unsupported, it's part of RPM 4.12.0 (Sep 16th 2014) only
# see https://rpm.org/timeline.html
set(CPACK_RPM_SAMPLES_PACKAGE_SUGGESTS "${samples_build_deps_suggest}, ${all_plugins_suggest}")
set(CPACK_RPM_SAMPLES_PACKAGE_REQUIRES "gflags-devel, zlib-devel")
set(CPACK_RPM_SAMPLES_PACKAGE_ARCHITECTURE "noarch")
ov_rpm_add_rpmlint_suppression("${OV_CPACK_COMP_CPP_SAMPLES}"
# contains samples source codes
"devel-file-in-non-devel-package /usr/${OV_CPACK_SAMPLESDIR}/cpp/*"
"devel-file-in-non-devel-package /usr/${OV_CPACK_SAMPLESDIR}/c/*"
# depends on gflags-devel
"devel-dependency gflags-devel")
# python_samples
if(ENABLE_PYTHON)
set(CPACK_COMPONENT_PYTHON_SAMPLES_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit Python Samples")
set(CPACK_COMPONENT_PYTHON_SAMPLES_DEPENDS "${python_component}")
set(CPACK_RPM_PYTHON_SAMPLES_PACKAGE_NAME "openvino-samples-python-${cpack_name_ver}")
set(CPACK_RPM_PYTHON_SAMPLES_PACKAGE_REQUIRES "python3")
set(CPACK_RPM_PYTHON_SAMPLES_PACKAGE_ARCHITECTURE "noarch")
endif()
#
# Add umbrella packages
#
# all libraries
set(CPACK_COMPONENT_LIBRARIES_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit Libraries")
if(installed_plugins)
set(CPACK_COMPONENT_LIBRARIES_DEPENDS "${installed_plugins}")
else()
set(CPACK_COMPONENT_LIBRARIES_DEPENDS "${OV_CPACK_COMP_CORE}")
endif()
set(CPACK_RPM_LIBRARIES_PACKAGE_NAME "openvino-libraries-${cpack_name_ver}")
set(CPACK_RPM_LIBRARIES_PACKAGE_ARCHITECTURE "noarch")
# all libraries-dev
set(CPACK_COMPONENT_LIBRARIES_DEV_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit Libraries and Development files")
set(CPACK_COMPONENT_LIBRARIES_DEV_DEPENDS "core_dev;libraries")
set(CPACK_RPM_LIBRARIES_DEV_PACKAGE_NAME "openvino-libraries-devel-${cpack_name_ver}")
set(CPACK_RPM_LIBRARIES_DEV_PACKAGE_ARCHITECTURE "noarch")
ov_rpm_generate_conflicts(libraries_dev ${conflicting_versions})
# all openvino
set(CPACK_COMPONENT_OPENVINO_DESCRIPTION "Intel(R) Distribution of OpenVINO(TM) Toolkit Libraries and Development files")
set(CPACK_COMPONENT_OPENVINO_DEPENDS "libraries_dev;samples")
set(CPACK_RPM_OPENVINO_PACKAGE_NAME "openvino-${cpack_name_ver}")
set(CPACK_RPM_OPENVINO_PACKAGE_ARCHITECTURE "noarch")
ov_rpm_generate_conflicts(openvino ${conflicting_versions})
list(APPEND CPACK_COMPONENTS_ALL "libraries;libraries_dev;openvino")
#
# Install latest symlink packages
#
# NOTE: we expicitly don't add runtime latest packages
# since a user needs to depend on specific VERSIONED runtime package
# with fixed SONAMEs, while latest package can be updated multiple times
# ov_rpm_add_latest_component(libraries)
ov_rpm_add_latest_component(libraries_dev)
ov_rpm_add_latest_component(openvino)
# users can manually install specific version of package
# e.g. sudo yum install openvino=2022.1.0
# even if we have latest package version 2022.2.0
#
# install common files
#
foreach(comp IN LISTS CPACK_COMPONENTS_ALL)
ov_rpm_copyright("${comp}")
endforeach()
endmacro()
@@ -2,9 +2,9 @@
# SPDX-License-Identifier: Apache-2.0
#
set(PACKAGE_VERSION_MAJOR @IE_VERSION_MAJOR@)
set(PACKAGE_VERSION_MINOR @IE_VERSION_MINOR@)
set(PACKAGE_VERSION_PATCH @IE_VERSION_PATCH@)
set(PACKAGE_VERSION_MAJOR @OpenVINO_VERSION_MAJOR@)
set(PACKAGE_VERSION_MINOR @OpenVINO_VERSION_MINOR@)
set(PACKAGE_VERSION_PATCH @OpenVINO_VERSION_PATCH@)
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_VERSION_EXACT False)
@@ -12,23 +12,31 @@ set_and_check(OpenVINO_MAIN_SOURCE_DIR "@OpenVINO_SOURCE_DIR@") # KMB
# Variables to export in plugin's projects
set(ie_options "@IE_OPTIONS@;CMAKE_BUILD_TYPE;CMAKE_SKIP_RPATH")
list(APPEND ie_options CMAKE_CXX_COMPILER_LAUNCHER CMAKE_C_COMPILER_LAUNCHER)
set(ie_options "@IE_OPTIONS@")
list(APPEND ie_options CMAKE_CXX_COMPILER_LAUNCHER CMAKE_C_COMPILER_LAUNCHER
CMAKE_CXX_LINKER_LAUNCHER CMAKE_C_LINKER_LAUNCHER
CMAKE_BUILD_TYPE CMAKE_SKIP_RPATH CMAKE_INSTALL_PREFIX
CMAKE_OSX_ARCHITECTURES CMAKE_OSX_DEPLOYMENT_TARGET)
file(TO_CMAKE_PATH "${CMAKE_CURRENT_LIST_DIR}" cache_path)
message(STATUS "The following CMake options are exported from Inference Engine Developer package")
message("")
message(" ")
foreach(option IN LISTS ie_options)
if(NOT DEFINED "${option}")
load_cache("${cache_path}" READ_WITH_PREFIX "" ${option})
endif()
message(" ${option}: ${${option}}")
endforeach()
message("")
message(" ")
# for samples in 3rd party projects
set_and_check(gflags_DIR "@gflags_BINARY_DIR@")
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# Disable warning as error for private components
set(CMAKE_COMPILE_WARNING_AS_ERROR OFF)
endif()
#
# Content
#
@@ -48,11 +56,6 @@ find_dependency(ngraph
NO_CMAKE_FIND_ROOT_PATH
NO_DEFAULT_PATH)
find_dependency(OpenVINODeveloperPackage
PATHS "${CMAKE_CURRENT_LIST_DIR}"
NO_CMAKE_FIND_ROOT_PATH
NO_DEFAULT_PATH)
if(TARGET openvino::runtime AND NOT TARGET IE::runtime)
add_library(IE::runtime INTERFACE IMPORTED)
set_target_properties(IE::runtime PROPERTIES
@@ -66,14 +69,62 @@ if(TARGET ngraph::ngraph AND NOT TARGET IE::ngraph)
set_target_properties(IE::ngraph PROPERTIES INTERFACE_LINK_LIBRARIES ngraph::ngraph)
endif()
_ov_find_tbb()
foreach(component @openvino_export_components@)
include("${CMAKE_CURRENT_LIST_DIR}/${component}_dev_targets.cmake")
endforeach()
if(TARGET IE::ov_core_dev AND NOT TARGET openvino::core::dev)
add_library(openvino::core::dev INTERFACE IMPORTED)
set_target_properties(openvino::core::dev PROPERTIES
INTERFACE_LINK_LIBRARIES IE::ov_core_dev)
endif()
if(TARGET IE::runtime::dev AND NOT TARGET openvino::runtime::dev)
add_library(openvino::runtime::dev INTERFACE IMPORTED)
set_target_properties(openvino::runtime::dev PROPERTIES
INTERFACE_LINK_LIBRARIES IE::runtime::dev)
endif()
if(ENABLE_SYSTEM_PUGIXML)
find_dependency(PugiXML)
set_property(TARGET pugixml PROPERTY IMPORTED_GLOBAL TRUE)
add_library(IE::pugixml ALIAS pugixml)
set(_ov_pugixml_pkgconfig_interface "@pugixml_FOUND@")
if(_ov_pugixml_pkgconfig_interface)
find_dependency(PkgConfig)
else()
find_dependency(PugiXML)
endif()
if(PugiXML_FOUND)
set_property(TARGET pugixml PROPERTY IMPORTED_GLOBAL TRUE)
add_library(IE::pugixml ALIAS pugixml)
elseif(PkgConfig_FOUND)
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
set(pkg_config_quiet_arg QUIET)
endif()
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED)
set(pkg_config_required_arg REQUIRED)
endif()
pkg_search_module(pugixml
${pkg_config_quiet_arg}
${pkg_config_required_arg}
IMPORTED_TARGET GLOBAL
pugixml)
unset(pkg_config_quiet_arg)
unset(pkg_config_required_arg)
if(pugixml_FOUND)
add_library(IE::pugixml ALIAS PkgConfig::pugixml)
# PATCH: on Ubuntu 18.04 pugixml.pc contains incorrect include directories
get_target_property(interface_include_dir PkgConfig::pugixml INTERFACE_INCLUDE_DIRECTORIES)
if(interface_include_dir AND NOT EXISTS "${interface_include_dir}")
set_target_properties(PkgConfig::pugixml PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "")
endif()
endif()
endif()
endif()
# inherit OpenCV from main IE project if enabled
@@ -86,13 +137,11 @@ endif()
# Extra Compile Flags
#
if(NOT MSVC)
if(CMAKE_COMPILER_IS_GNUCXX)
ie_add_compiler_flags(-Wno-error=unused-variable)
if(CMAKE_COMPILER_IS_GNUCXX)
ie_add_compiler_flags(-Wno-error=unused-but-set-variable)
if(SUGGEST_OVERRIDE_SUPPORTED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override")
endif()
ie_add_compiler_flags(-Wno-error=unused-but-set-variable)
if(SUGGEST_OVERRIDE_SUPPORTED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override")
endif()
endif()
@@ -2,9 +2,9 @@
# SPDX-License-Identifier: Apache-2.0
#
set(PACKAGE_VERSION_MAJOR @IE_VERSION_MAJOR@)
set(PACKAGE_VERSION_MINOR @IE_VERSION_MINOR@)
set(PACKAGE_VERSION_PATCH @IE_VERSION_PATCH@)
set(PACKAGE_VERSION_MAJOR @OpenVINO_VERSION_MAJOR@)
set(PACKAGE_VERSION_MINOR @OpenVINO_VERSION_MINOR@)
set(PACKAGE_VERSION_PATCH @OpenVINO_VERSION_PATCH@)
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_VERSION_EXACT False)

Some files were not shown because too many files have changed in this diff Show More