Compare commits

...

653 Commits

Author SHA1 Message Date
Eddy Kim
8e464e992e using calloc instead of malloc for deterministic hashing (#16326) 2023-03-20 19:50:14 +04:00
Ilya Lavrenov
d1a7b0e3c0 Releases/2022/3 (#16409)
* Docs: Update the doc on default hint and execution devices property (#14836)

* Docs: Update to LATENCY as default hint
* Docs: Update the doc on execution devices property
* Update auto_device_selection.md

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

* 22.3: remove tbb version check for using tbbbind static library (#15700)

* update symbolic link on uninstall page (#15720)

* Update deployment_simplified.svg (#15681)

* [NormalizeL2] normalization of reduction axes (#15841) (#15879)

* Add test for negative axes, preliminary solution to solve uncorrect
results

* Normalize axes in operation NormalizeL2

* Add test for negative axes

* Add EOF

* [67541] - face-detection-0205, 0206 issues fixed (incorrect dimensions error) (#14687)

* [CVS-67541] - face-detection-0205, 0206 issues fixed (incorrect dimensions error)
* [CVS-67541] - face-detection-0205, 0206 issues fixed

* Conversion fail for ov::hint::performance_mode with UNDEFINED value (#15903)

* Update ov::hint::performance_hint UNDEFINED value from empty string to "UNDEFINED".
Update benchmark Python version.
Update the description about hint setting within benchmark APP README and help message.

* Drop the reduntant changes.

* Supported OpenSUSE 15.3 (#15897) (#15907)

* [DOCS] Structure change for 'AUTO Device Selection' article - post merge fix (#15752)

* aligning with 14750

* Fixed samples build on Debian 10 with cmake 3.13 (#15939)

* Fixed samples build on Debian 10 with cmake 3.13

* Use 2022/3 branches

* Limit setuptools version

* Fixed issues in setupvars.sh (#15884) (#15952)

* Fixed issues with setupvar.sh

* Fixes setupvars realpath error

---------

Co-authored-by: Otoka, Tomasz <tomasz.otoka@intel.com>

* Apivalidator (#15951)

* Improved API validator logic (#15942)

* Fix for apiValidator when more than 1 target needs to be checked (#15950)

* Prevent infinite recursion

* [Snippets] Added matcher_name in ConvertConstantsToScalars pass (#15977)

* Install libtbb2 instead of libtbb12 on U22.04 (#15993)

* Apply Apivalidator to extra TBB libs (#15998)

* [GNA] Changed max layer limit tests to avoid SEH exceptions (#15015) (#15460)

* splitted test model

* Changed test config

* Set SF for all inputs

* [Transformations] Enable missing runtime info check (#15796) (#15972)

* Add rt info propagation to StridesOptimization

* Enable rt info check for pruning tests

* Fixed clang-format for C API (#16025)

* Port to 2022.3 from master (#16049)

* notebooks update (#16091)

20230302220806

* Update Customize_Model_Optimizer.md (#15687)

Recreating #14062

* fix benchmark_app python to support YES and NO values for -pin parameter (#16042)

* support YES and NO for -pin

* add if property_name == 'AFFINITY'

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>

* [Docs] nv12 changes port to 22.3 (#16115)

Port:
#15370
#16004

add single-plane input information
create single-plane cpp snippet
menu fix
update formatting for sphinx directives
additional snippet fixes
---------
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com>

* [DOCS] Port  Frontend Extensions and OTX page (#16135)

* [DOCS] Add OTX page to Ecosystem  (#16118)

* add otx page

* change ecosystem page

* add ote img

* move ote page to rst

* fix path

* add path

* img test

* otx page

* add docs to ecosystem page

* [DOCS] Fix Frontend Extensions snippets (#16120)

* move fe to rst

* fix code snippets

* add more line breaks

* fix tabsets

* fix link

* fix anchor

* test

* fixing link

* change tab directive

* fix tabs

* align code tabs

* fix link

* fix snippets

* add dlwb to ecosystem

* change ecosystem menu

* exclude fe page

* Port to 2022.3 (#16174)

* Remove setuptools upperbound (#16054)

* Added missed licenses to openvino-dev (#16057)

* Fixed OpenMP + debian package code-path (#16058)

* [CPU] Prevent out of bounds read inside Graph::InferDynamic (#16067)

* Fixed compilation on Debian 11 with gcc 12.2 (#16096)

* Fix for OpenCL

---------

Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com>
Co-authored-by: Maksim Kutakov <maksim.kutakov@intel.com>

* Docs benchmarks page update port 22.3 (#16187)

changes to benchmarks page to align with theme

* Andreib/2022.3 myriad plugin obs (#16079)

* Changed to OBS firmware

* Changed dependencies settings for new FW

---------

Co-authored-by: Daria Mityagina <daria.mityagina@intel.com>

* port-16085 (#16210)

* 234 update (#16212)

Adding notebook 234-encodec-audio-compression

* [DOCS] Adding 'Scrollbox' - new sphinx directive (#15307)

port https://github.com/openvinotoolkit/openvino/pull/15305

* [DOCS] Updating 'Prerequisites' section in `Configurations for GNA` article - for 22.3 (#16237)

* issue-15090
Add command for installation of prerequisites on Linux.

* DOCS-image-fix port22.3 (#16341)

(#16324)
(#16308)

* Clearing of CustomReplacementRegistry.registry in convert_model() (#15893) (#16347)

* Clearing of CustomReplacementRegistry.registry.

* Added test.

* Fixed clearing of pipeline config params and TF session in convert_model() (#16191) (#16346)

* Fixed pipeline config params clearing.

* Added clearing of TF session. Added tests.

---------

Co-authored-by: Wang Wangwang <wangwang.wang@intel.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Fang Xu <fang.xu@intel.com>
Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
Co-authored-by: Artur Kulikowski <artur.kulikowski@intel.com>
Co-authored-by: Daria Mityagina <daria.mityagina@intel.com>
Co-authored-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>
Co-authored-by: Otoka, Tomasz <tomasz.otoka@intel.com>
Co-authored-by: Alexandra Sidorova <alexandra.sidorova@intel.com>
Co-authored-by: Vitaliy Urusovskij <vitaliy.urusovskij@intel.com>
Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>
Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
Co-authored-by: Haiqi Pan <haiqi.pan@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com>
Co-authored-by: Maksim Kutakov <maksim.kutakov@intel.com>
Co-authored-by: Andrei-George Boji <andrei-george.boji@intel.com>
Co-authored-by: Anastasiia Pnevskaia <anastasia.popova@intel.com>
2023-03-20 19:47:11 +04:00
Xuejun Zhai
b692afc764 Xuejun/port cache model api (#15637)
* Add new compile model api to support hash model memory (#14543)

* Add new compile_model api for ONNX RUNTIME OV EP

Allow compile_model() accept model/weight data.

* Update minor place

* Cache model if possible

* Compute hash based on model_xml and model_weight

* Update typo

* Change hash key computation for model's weights

* Resolve test case issue

* Use tensor replace blob for hash computation

* Fix hash computation isssue and add more test cases

* Fix a build issue caused by data format

* Add ov::loaded_from_cache checking for CompileModelLoadFromMemoryTest (#15030)

* Add ov::loaded_from_cache checking for CompileModelLoadFromMemoryTestBase

* Skip gna in skip_tests_config

* Ignore empty tensor for hash calculation (#15282)

* Ignore empty tensor for hash calculation

* Added test

* Fix conflict

* Trigger ci run test for customer_A branch

---------

Co-authored-by: River Li <river.li@intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2023-02-13 15:29:30 +04:00
Ilya Churaev
4c81ede32e Port #15516 (#15541)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-02-09 15:43:43 +04:00
Ilya Lavrenov
ccd9cadb14 Port to 2022.3 LTS (#15506)
* scripts/install_dependencies/install_NEO_OCL_driver.sh: code style (#15484)

* scripts/install_dependencies/install_NEO_OCL_driver.sh: code style

* scripts/install_dependencies/install_NEO_OCL_driver.sh: code style warnings

* scripts/install_dependencies/install_NEO_OCL_driver.sh: add missing !

* [PyOV] Fix UserWarning in setup.py (#15334)

* [Tools] Support NumPy 1.24 (#14728)

* [Tools] Avoid use of NumPy deprecated types

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

* Revert "[Tools] Avoid use of NumPy deprecated types"

This reverts commit 21ffc167d1.

* Move to 1.24 Numpy

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

* [PyOV] Change default opset9->opset10 (#15238)

* Meiyang/paddle 2.4 (#15177)

* PaddlePaddle 2.4.1 support

* Update src/frontends/paddle/tests/requirements.txt

lowering PDPD version

* update paddlepaddle to 2.4.0

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

* Update README.md (#15504)

Just a small typo.

* Throw an exceptions in case of incorrect pointers in Model creation (#15492)

* [C++] Fix coverity issues (#15348)

* [C++] Fix coverity issues

* Merge master with this branch

* [C++] Reapply changes that got eaten during merge

* Update samples/cpp/benchmark_app/main.cpp

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

* [C++] Add missing const keyword

---------

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

* [Tests] Fix rest of NumPy deprecated types (#15245)

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

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

* Bump paddlepaddle from 2.4.0 to 2.4.1 in /src/frontends/paddle/tests (#15190)

Bumps [paddlepaddle](https://github.com/paddlepaddle/paddle) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/paddlepaddle/paddle/releases)
- [Changelog](https://github.com/PaddlePaddle/Paddle/blob/develop/RELEASE.md)
- [Commits](https://github.com/paddlepaddle/paddle/compare/v2.4.0...v2.4.1)

---
updated-dependencies:
- dependency-name: paddlepaddle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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>

* [nGraph]: fix fused names for ShuffleChannelsFusion transformation (#15150)

* [nGraph]: fix fused names for ShuffleChannelsFusion transformation

* Review comments

* [MO] Activate pylint checker in CI (#15012)

* Fixed mo workflow

* Update pylint config with import os

* Update .github/workflows/mo.yml

* Install extras for pylint checker

* Fix pylint reported errors

* Add torch to the environment

* Add torch into whitelist

* Ignore torch

* Localize torch code

* Fix syntax error

* Remove MO unit-test from Pylint flow

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

* [PyOV] Allow `numpy` patch releases (#15265)

* Update reqs

* test, minor change

* [LPT] clang merge warning fix (#15502)

* Trying to fix debian packages (#15508)

* Trying to fix debian packages

* Added conflicts for samples for RPM

* updated mo/requirements.txt

* updated python/requirements.txt

* updated compatibility/requirements.txt

* Ipdated more places

* Revert "scripts/install_dependencies/install_NEO_OCL_driver.sh: code style (#15484)"

This reverts commit 36106d9c45.

* Apply suggestions from code review

* Added policy

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
Co-authored-by: mei, yang <yang.mei@intel.com>
Co-authored-by: kyo <113977534+kyo-takano@users.noreply.github.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
Co-authored-by: Piotr Krzemiński <piotr.krzeminski@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nadezhda Ageeva <nadezhda.ageeva@intel.com>
Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com>
Co-authored-by: Edward Shogulin <edward.shogulin@intel.com>
2023-02-09 15:34:18 +04:00
Mingyu Kim
494d688d7c [GPU] Show num_ccs for RANGE_FOR_STREAMS (#15593) 2023-02-09 11:55:24 +01:00
Ilya Lavrenov
833c2865c3 Generalized OpenCL handling (#15253) (#15507)
* Generalized OpenCL handling (#15253)

* Squashed commit of the following:

commit 62c992f6a0bc3a2f559faac6912be9c5632a359f
Author: Ilya Lavrenov <ilya.lavrenov@intel.com>
Date:   Sun Jan 22 11:38:18 2023 +0400

    Generalized OpenCL handling

* Updates

* Fixes

* Update thirdparty/CMakeLists.txt

test

* Fixed build with CL/cl2.hpp

* Fixes

* Fixes

* Fixed compilation flags

* Fixed build with target OpenCL 120

* Don't use cache

* Added policy

* Fixed with build_interface
2023-02-09 14:52:25 +04:00
Artur Kulikowski
7b2273362e Port relative path 2022.3 (#15523)
* Add test to verify add_extension with relative path (#15212)

* Add test to verify add_extension with relative path

* Fix code style

* Use std::string::find instead of std::regex

* Remove unnecessary include

* Add comments about generating relative path

* Don't add empty tokens when splitting path

* Resolve relative path to the extension

* Method available independent of build_type
2023-02-08 18:46:23 +01:00
Nikolay Shchegolev
8967b4de50 [CPU] MEMC loading failed RuntimeError: There should be only one inst… (#15380) (#15464)
* [CPU] MEMC loading failed RuntimeError: There should be only one instance of RegistersPool per thread.

* Fixes as per comments.
2023-02-08 15:26:58 +04:00
Sebastian Golebiewski
f0fa2184e6 [DOCS] Supported Layers update - for 22.3 (#15360)
* LessEqual Not Supported

* port #13997

Update support "Sign" layer to not supported.
Update support "Floor" layer to limited support.
Tickets: 88871 and 88693

* port #13995

Add "Floor" in Known Layers Limitations section.
Add "ConvTranspose" in Known Layers Limitations section.
Add "GatherElements" in Known Layers Limitations section.

Tickets: 88871 and 75208 and 88690
2023-02-08 10:44:16 +01:00
Iosif Dirlea
dddec34f35 Fix void function returns value kw issue (#15520)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-02-08 12:40:21 +04:00
Xiake Sun
46843777fa [Docs] Port fix convert tf crnn model docs for release 22.3 (#15469)
* Port fix convert tf crnn model for release 22.3
2023-02-08 08:48:17 +01:00
Adrian Varlan
7bb043287a Fix Myriad plugin wait for inference on multiple devices (#14072)
Co-authored-by: Chen Peter <peter.chen@intel.com>
2023-02-07 19:44:13 +01:00
Artyom Anokhov
bb02a94d4a install_NEO_OCL_driver: Fixed ShellCheck errors (#15533)
* install_NEO_OCL_driver: Fixed ShellCheck errors

* install_NEO_OCL_driver: Fixed after remarks

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-02-07 21:46:07 +04:00
Daria Mityagina
3e0474ac2f [HDDL] - Update path (#15536)
* [HDDL] - update submodule path

* [HDDL] - update submodule path - do not match hddl2

* [HDDL] - update submodule path - edit REGEX
2023-02-07 10:08:39 +04:00
Sebastian Golebiewski
cd28f2e4f8 [DOCS] Fixing links in 'Install Openvino on Windows from Archive' article - for 22.3 (#15357)
* fix links

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

* Update docs/install_guides/installing-openvino-from-archive-windows.md
2023-02-06 15:26:51 +08:00
Zlobin Vladimir
550b127b87 Parallelize build_samples_msvc.bat (#14828) (#15480)
Close https://github.com/openvinotoolkit/openvino/issues/14825
2023-02-04 12:05:18 +04:00
Karol Blaszczak
1c562982df Docs formatting for models article port (#15486)
* [DOCS] add to additional resources and change button formatting
2023-02-03 12:19:31 +01:00
Dalibor Segan
eff35123de Fix OpenVINO 2022.3.0 Chrome OS compilation (#15475)
This patch fixes two issues:
 * Typo in clang pragma directive
 * Reverse the order of the arguments in OPENVINO_ASSERT() in
   constant.hpp so this assert works for ov::bfloat16 and
   ov::float16 types which have impelemented binary comparison
   operators as the memeber functions
2023-02-03 13:29:26 +04:00
Artyom Anokhov
fd33cc3b49 properties.hpp: Undef DEBUG macro for log level property (#15473) 2023-02-02 23:47:21 +04:00
Artyom Anokhov
358efd2d06 Updated copyrights with 2023 year (#15148)
* Updated copyrights with 2023 year.

* Updated more files
2023-02-02 16:48:28 +01:00
Ilya Lavrenov
a11ae5b690 Setup minimum supported version for pybind11 (#15405) 2023-02-02 16:04:10 +04:00
Yuan Xu
580eebbc33 Add a disclaimer about CentOS for YUM install (#15453)
* update step 3

* fix formatting

* fix formatting

* fix formatting

* test formatting

* change code to use sphinx directives

* fix formatting

* test formatting

* test formatting

* rewording

* test formatting

* test formatting

* test formatting

* move content to troubleshooting guide

* fix formatting

* fixes

* remove troubleshooting item and add a disclaimer

* add centos 7
2023-02-02 18:40:58 +08:00
Karol Blaszczak
b0277c865b Docs ov 2022 3 Added results for Sapphire Rapids 6448Y. OV bench results and system config description (#15418) (#15443)
fixes the FP32 and FP16 swap of results.

* SPR-6448Y updated results

Updated all files with data for SPR 6448Y. New results in benchmark-data.csv, benchmark-performance-data.xls, benchmark-info-detailed.xls and platform-list_22.3.pdf

authored-by: Michael Frank Hansen <michael.f.hansen@intel.com>
2023-02-01 20:56:55 +01:00
Artyom Anokhov
eb8b47002d install_NEO_OCL_driver: Unlock possibility to install GPU driver on ubu22 (#15440) 2023-02-01 23:24:50 +04:00
Sebastian Golebiewski
9e1329fd61 tocsection css burger svg (#15414) 2023-02-01 19:48:01 +01:00
Iosif Dirlea
b3f2187a17 Fixed possible overflows to clean KW scan (#15431)
Co-authored-by: Anastasiya Pronina <anastasiya.pronina@intel.com>
2023-02-01 14:50:32 +04:00
Artyom Anokhov
e52e6e6547 Updated instructions for Linux* with setup udev usb rules for NCS2 (#15115)
* configurations-for-ncs2: Updated instructions for Linux* with setup 97-myriad-usbboot.rules

* removed install_NCS_udev_rules script.

configurations-for-ncs2: Updated doc after review

* Removed installation on NCS2 script

* install_NCS_udev_rules: return script back

* install_NCS_udev_rules: Added executive permission

* install_NCS_udev_rules: Added newline to the end of file

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-31 14:39:51 +01:00
Artyom Anokhov
c28f91d031 Return install OCL driver script for LTS (#15395)
* Return back install_NEO_OCL_driver for LTS release

* install_NEO_OCL_driver: Added executive permission
2023-01-30 16:57:37 +04:00
Sebastian Golebiewski
1b1c9eff70 sphinx_design (#15306)
Adding new sphinx extension for designing responsive web components.
2023-01-30 10:06:20 +01:00
Anastasia Kuporosova
3e70387903 [PyOV] Update futureWarning in offline_transformations (#15319) (#15342) 2023-01-28 13:01:28 +04:00
Sebastian Golebiewski
8c85a3b8d3 architecture (#15337) 2023-01-28 15:07:36 +08:00
Artyom Anokhov
96f79b64cd Updated instruction for installing GPU driver on Linux*. (#15160)
* configurations-for-intel-gpu: Updated instruction for GPU on Linux*.

removed install_NEO_OCL_driver script

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

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

* Update configurations-for-intel-gpu.md

Proposed to remove extra lines for Windows

* Updated with remarks

* Updated wording and some links

* Update wording for the note

* scripts/CMakeLists: removed install_NEO_OCL_driver from installing

removed duplication of MD-file gpu-setup-guide
Updated DM config

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

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

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

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

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

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

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

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

* Updated instructions with prerequisites for RH8

---------

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Pavel Durandin <pavel.durandin@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2023-01-27 18:54:46 +01:00
Tatiana Savina
aa330736cc [DOCS] Delete DL WB note 22.3 (#15283)
* delete DL WB tips

* remove space

* fixed a link
2023-01-27 16:12:39 +01:00
Ilya Churaev
4211cc38b8 Port 15303 (#15354)
* Try to fix fuzzer tests

* Try to fix test
2023-01-27 12:58:47 +04:00
Gorokhov Dmitriy
5770daf303 [CORE] Fixed VEX/NonVEX performance penalty inside Convert evalute impl (#15355) 2023-01-27 12:54:48 +04:00
Ilya Lavrenov
3c8ec29423 Migrate SVG files under LFS (#15322) 2023-01-26 16:22:51 +04:00
Sergey Shlyapnikov
ae52cb3e48 [GPU] Fix eltwise fusions in case of LT_ALIGNED_READ and vec_size>1 (#15261) 2023-01-25 13:27:58 +04:00
Sebastian Golebiewski
da5eb6843c DOCS: Update doxygen version - port to 22.3 (#15278)
* fixing references

* fix refs

* fix branch.hpp

* Update build_doc.yml
2023-01-24 19:39:05 +04:00
Anastasia Kuporosova
567eac4d8f [PyOV] skip dynamic test for arm (#15257) (#15271)
* [PyOV] skip dynamic test for arm

* Update src/bindings/python/tests/test_runtime/test_infer_request.py

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

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

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-23 23:33:28 +04:00
Daria Mityagina
c28bf68e30 [VPU] - Firmware update (#15260) 2023-01-23 14:57:44 +00:00
Yuan Xu
2462e6ae89 Fix installation issues for #15090 (#15105)
* add how to get install_NEO_OCL_driver.sh for Python users
* minor edits
2023-01-23 14:28:42 +01:00
Sebastian Golebiewski
7f229478ef fix headings (#15209) 2023-01-23 10:26:49 +01:00
Sebastian Golebiewski
8fbdd05782 DOCS: Update of 'Creating a YOCTO image' article - for 22.3 (#15133)
* update

Updating master branch in meta-intel repository for OpenVINO 22.3

* Update installing-openvino-yocto.md
2023-01-23 10:23:54 +01:00
Sebastian Golebiewski
d4e1694491 fix indentation (#15236) 2023-01-23 09:54:28 +01:00
Maciej Smyk
b7f4c87553 scheme3 (#14874)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-20 19:25:20 +04:00
Ilya Lavrenov
2f2c7d23ad Added SVG files to lfs (#15228) 2023-01-20 15:57:10 +04:00
Yuan Xu
be74074758 Add brew installation & update APT and YUM pages (#15141)
* create draft for brew installation

* updates

* updates

* updates

* minor updates

* fix formatting

* update with Brew uninstall and APT page

* update formatting

* fix a typo

* minor update

* update what's next & samples

* update additional resources

* update a link and YUM article

* align the beginning paragraphs

* align article structures

* fix anchors
2023-01-20 15:50:17 +04:00
Sebastian Golebiewski
8f9a4faa06 heading fix (#15226) 2023-01-20 15:11:37 +04:00
Maciej Smyk
977ad1b093 default_quantization_flow (#14850) 2023-01-20 14:24:20 +04:00
Sebastian Golebiewski
d47deaaca6 fix formatting (#15174)
fix formatting and links
2023-01-20 10:26:17 +01:00
Maciej Smyk
4a893dc6de DOCS: Model Caching Overview image recreation for 22.3 (#15025)
* Model Caching Overview

* graph-background-fix
2023-01-20 08:21:36 +01:00
Maciej Smyk
46921acd37 DOCS: OpenVINO™ Security Add-on image recreation for 22.3 (#15081)
* Security Add-on

* Update ovsa_example.svg
2023-01-20 08:16:28 +01:00
Anastasia Kuporosova
c939c70f0d [PyOV] Skip tests with bool for arm (#15208) (#15214)
* [PyOV] Skip tests with bool for arm

* exec_net export test rewrite
2023-01-20 01:23:50 +04:00
Jan Iwaszkiewicz
a2dc739da4 [PyOV] Add new types to Any dispatcher (#15194) 2023-01-19 15:38:46 +04:00
Wilson Seok
e998013e2e Cherrypick PR14812 to releases/2022/3 (#15172)
* fix strided_slice_optimize for 5d new axis output, typo in strided_slice cl kernal, avoid handle_reshape when user is only one

* fix unit test of resample_eltwise_fusing_through/12
2023-01-18 19:13:37 -08:00
Albert Angles
6c9c5cb70d enable first_inference_latency (first_inference+time_to_inference) (#14805)
* add time_to_first_inference_result KPI as sum of inf latency values

* append time unit format after the value

* Revert "append time unit format after the value"

This reverts commit 4bdd82e06b.

* remove metric, to be consistent with rest ones

* added FEIL SCOPED_TIMER  (It will report the sum of all stages)

* revert add time_to_first_inference_result KPI as sum of inf latency values

* place SCOPED_REGION(first_inference_latency) inside a block { }  - tested and worked

* enable first_inference_latency for timetest_infer_API_2.0

tested and worked

* remove trailing whitespace

Co-authored-by: Daria Ilina <daria.krupnova@intel.com>
2023-01-18 18:07:46 +00:00
Sebastian Golebiewski
c6b17afa81 revert tutorials (#15165) 2023-01-18 08:32:02 +01:00
Daria Mityagina
1285443993 [VPU] - Update MyriadX firmware (#15158)
* [VPU] - Update firmware

* [VPU] - Update firmware - R20.6

* [VPU] - Update firmware - g_callCommand
2023-01-17 19:44:28 +00:00
Anastasia Kuporosova
cc2c03c95d Port skipped test (#15140)
* [PyOV] Rewriting properties tests as hardware agnostic (#14684)

* [PyOV] Mark replacement of topk in test (#15095)

* undo unwished changes

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2023-01-17 17:24:19 +04:00
Tatiana Savina
bbdedc5860 update doc footer 22.3 (#15154) 2023-01-16 19:59:35 +03:00
Eddy Kim
1552beaab2 Adding missed conversion logics between layout and string for 2022.3 (#15111)
* added missed layout to string conversion

* added an unit test for layout_from_string

* added missing spaces around =

* replaced 95 with SCALAR

* moved layout_to_string into a new file

* changed to parametrized test
2023-01-16 17:30:44 +04:00
Ilya Lavrenov
ae537310dc Don't add samples subdirectory when both samples and tests are disabled (#14817) (#15122) 2023-01-16 10:50:17 +04:00
Sebastian Golebiewski
43c8af2fce DOCS: Updating the diagram in the home page -for 22.3 (#15108)
restyling the first paragraph and updating the diagram
2023-01-14 17:32:56 +01:00
Yuan Xu
9da0800b31 Add install dependencies info for APT & YUM (#15023)
* add install dependencies info

* update according to comments

* fix formatting

* fix formatting

* small corrections

* fix formatting & issues

* minor correction
2023-01-14 13:12:43 +00:00
Anastasia Kuporosova
196d01b952 Port changes in python tests to 2022.3 (#15101)
* [PyOV] Rewriting properties tests as hardware agnostic (#14684)

* [PyOV][Tests] Fix some tests for M1 (#14555)

* [PyOV] Make graph tests hardware agnostic - part 1 (#14500)

* Halfway done

* Prepare part 1

* Minor changes

* Minor changes

* [PyOV] Make graph tests hardware agnostic - part 3 (#14639)

* [PyOV] Make graph tests hardware agnostic - part 2 (#14519)

* [PyOV] Make graph tests hardware agnostic - part 4 (#14705)

* [PyOV] Make graph tests hardware agnostic - part 5 (#14743)

* merge conflict resolve

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com>
2023-01-14 01:39:17 +04:00
Alina Kladieva
d7607a2415 Disable IB in Win Azure pipeline (#15086) (#15098) 2023-01-13 17:56:40 +04:00
Eddy Kim
810b7e198e Update calculateFileInfo for the null string case for 2022.3 (#15078)
* updated not to find absPath for null filePath

* changed to cache only std::runtime_error

* fix clang-format error
2023-01-13 17:48:01 +04:00
Julio Morero
efa7cae5a0 Change device order in MULTI python snippet (#15077) 2023-01-13 01:49:14 +04:00
Yuan Xu
5f601a5f63 fix step5 (#15065) 2023-01-12 15:41:14 +04:00
Tatiana Savina
bf8d662050 update link and extras description (#15046) 2023-01-12 12:38:43 +01:00
Sebastian Golebiewski
29d7cd87d0 DOCS: Fixing formatting in 'Install From Apt' article - for 22.3 (#15066)
* fixing-formatting-apt

Fixing indentation, faulty code-blocks, numbering.

* fix link

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

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

* fix link

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2023-01-12 16:30:51 +08:00
Karol Blaszczak
8f7af3299f adding new tutorials (#15027) (#15033)
authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>
2023-01-11 09:54:25 +01:00
Vladimir Paramuzov
aabda64bd8 [GPU] Fix shape infer for 0d broadcast (#14744) (#14971) 2023-01-08 12:59:24 +04:00
Zlobin Vladimir
f3a25e9d1b uint32->uint64 for RedHat gflags 2.1 failing at runtime (#14724)
* uint32->uint64 for RedHat gflags 2.1 failing at runtime

* tools/legacy/benchmark_app: uint32->uint64 for RedHat gflags 2.1 failing at runtime

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-06 18:13:17 +04:00
Maciej Smyk
2257dc8a53 DOCS: Libraries for Local Distribution image recreation for 22.3 (#14959)
* deployment_full

* Update deployment_full.svg
2023-01-05 23:14:15 +04:00
Sebastian Golebiewski
38911e4cb7 DOCS: Hiding Transition to API 2.0 banner - for 22.3 (#14952)
Using cookies to keep the banner hidden once the user have closed it.
2023-01-05 13:59:18 +01:00
Sebastian Golebiewski
57c2a07406 DOCS: Updating Interactive Tutorials - for 22.3 (#14946)
Adding new tutorials:
404-style-transfer-webcam
406-3D-pose-estimation-webcam
2023-01-05 13:48:07 +01:00
Maciej Smyk
418b455883 DOCS: Fixing broken links in documentation for 22.3 (#14941)
* fixing broken links
2023-01-05 13:46:19 +01:00
Maciej Smyk
563847bb76 Fix inference pipeline C++ doc: refer to the correct input blob (#14732) 2023-01-05 01:20:42 +04:00
Aleksandr Voron
e9bb5a2bb7 update pypi docs with apple m1 status (#14932) 2023-01-04 17:32:15 +04:00
Maciej Smyk
b11a977efd yolo_tiny_v1 (#14879) 2023-01-04 11:11:50 +01:00
Maciej Smyk
7c9482a3ca quantization_picture (#14870) 2023-01-04 11:07:51 +01:00
Karol Blaszczak
b260cb2f1e [DOCS] Remove System Requirements from install guides (#14808)
System Requirements removed where OS or hardware is mentioned... Docker articles not included

* include selector tool in install guide
2023-01-04 10:38:04 +01:00
Maciej Smyk
430e532a62 nncf_workflow (#14867) 2023-01-03 17:15:28 +01:00
Maciej Smyk
935059f0dc deployment_simplified (#14854) 2023-01-03 15:59:41 +01:00
Maciej Smyk
048667ca70 autoplugin_accelerate (#14839) 2023-01-03 14:55:28 +01:00
Tatiana Savina
afc7f8f3a0 updated links to 22.3 relnotes (#14917) 2023-01-03 14:54:16 +01:00
Maciej Smyk
a1245a95a4 DOCS: The LowLatency Transformation images recreation for 22.3 (#14830) 2023-01-03 14:49:23 +01:00
Sebastian Golebiewski
4b6765a50c format pre tags (#14913)
Porting: #14889

This fix addresses word wrapping in <pre> tags in the output html files of documentation.
2023-01-03 13:15:36 +01:00
Karol Blaszczak
8b4f1d9616 Update benchmark-data.csv (#14794) (#14891)
fixes the FP32 and FP16 swap of results.
authored-by: Michael Frank Hansen <michael.f.hansen@intel.com>
2023-01-03 08:55:57 +01:00
Karol Blaszczak
c6c8ac6a0d DOCS]-workflow-article-titles-tweaks (#14893) 2023-01-03 08:02:46 +01:00
Ilya Lavrenov
56ac14f276 Updated docs for Raspbian OS (#14816)
* Updated docs for Raspbian OS

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

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2023-01-03 13:35:33 +08:00
Yuan Xu
d2bd73a7e7 add ways to find samples for PyPI installation (#14658) 2022-12-26 12:58:05 +04:00
Daria Mityagina
827025f8ee Fix some tests (#14434) (#14774)
Co-authored-by: Nadezhda Ageeva <nadezhda.ageeva@intel.com>
2022-12-22 20:57:29 +04:00
Daria Mityagina
349d1f6647 [CVS-98877][MX] - NonMaxSuppression opset5 -> opset9 (#14683) 2022-12-22 20:21:40 +04:00
Tatiana Savina
61c9deb284 Release doc updates (#14784)
* apply feedback
* change POT header
* old diagram
2022-12-22 15:40:42 +01:00
Yuan Xu
9a7c0caf6c update version numbers & windows installation (#14777) 2022-12-22 10:31:59 +01:00
Yuan Xu
88166c1c61 Add CentOS back to install archive page for 22/3 (#14625) 2022-12-22 10:30:59 +01:00
Yuan Xu
0990540083 Update Raspbian OS installation for 22/3 (#14628)
* update Raspbian OS installation

* test formatting

* fix formatting

* Apply suggestions from code review

* update version number & package names
2022-12-22 12:59:03 +08:00
Yuan Xu
578e979334 Update macOS archive installation with ARM64 for 22/3 (#14656)
* update macos archive installation with arm

* update python version

* fix formatting

* fix formatting

* update

* remove note

* update package names & version number
2022-12-22 12:58:09 +08:00
Tatiana Savina
791385f140 add warnings (#14776) 2022-12-22 04:54:34 +01:00
Karol Blaszczak
0df7039fe7 DOC-final-benchmark-changes-for-release port 22.3 (#14771) 2022-12-21 18:09:49 +01:00
Tatiana Savina
a18d32a639 delete note (#14769) 2022-12-21 15:42:01 +01:00
Yuan Xu
7deb3293e7 remove a space (#14756) 2022-12-21 17:13:57 +08:00
Karol Blaszczak
d857067aae [DOCS][CPU] Added sparse weights decompression feature description (#14730) (#14749)
port https://github.com/openvinotoolkit/openvino/pull/14730

authored-by: Anton Voronov <anton.voronov@intel.com>
2022-12-21 08:18:54 +01:00
Karol Blaszczak
bd96363730 Docs minor release adjustments port22.3 (#14747)
Update benchmark-data.csv
update external files
update articles, faq included

* hide ovms benchmark
2022-12-20 23:08:09 +01:00
Tatiana Savina
d80f3afe05 DOCS: Add text for doc headers (#14671)
* add placeholder text

* try sphinx format for headers

* update resources and learn OV

* try ref linking

* try ref linking 2

* try ref linking 3

* change links to doc

* fix new line

* move TF frontend to "deployment" TOC st. 1

* move TF frontend to "deployment" TOC st. 2

* fix links for deployment section homepage

* add disclaimer on ARM support

* trying different links to api

* change API link

* Trying to hide an article in TOC

* change top arcticles content

* remove directive for tf article

* fix build error

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-12-20 22:17:34 +01:00
Roman Kazantsev
9752fafe8e [Default Install] Recover upper-bound for the default installation openvino-dev (#14734)
Use 1.23.4 to be aligned with extras installation

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

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-20 00:14:53 +01:00
Maksim Kutakov
3111e2394c [CPU][DOCS] Remove recommendation to use partially defined shapes (#14675) 2022-12-19 21:49:31 +04:00
Sebastian Golebiewski
b2feb56b22 DOCS: Homepage - openvino workflow section update - for 22.3 (#14654)
Removing raw html directive
Updating/improving css
adding new diagram
updating css
2022-12-16 19:49:32 +01:00
Aleksandr Voron
7da99de9ae Compute Library license added (#14659) 2022-12-16 22:34:07 +07:00
Anastasiia Pnevskaia
756b0de9bf Model Optimizer Python API documentaion. (#14696) 2022-12-16 15:31:03 +04:00
Aleksandr Voron
1a72966d4e Remove layers limitation section and add a link to wiki (#14613)
Co-authored-by: Aleksandr Voron <avoron@C07J20DQQ6NWmac.imu.intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-12-16 13:10:55 +03:00
Sebastian Golebiewski
4c7c9418a5 DOCS: Low Precision Transformations proofreading for 22.3 (#14511)
* Attributes
* Update lpt_attributes.md
* defines-fix
* revert principle
2022-12-16 08:19:24 +01:00
Sebastian Golebiewski
00d462b1d6 Fixing Python API links (#14498)
Porting: https://github.com/openvinotoolkit/openvino/pull/14423

Fixing the reference to Python API.
2022-12-16 08:11:13 +01:00
Sebastian Golebiewski
21ae66ad5f Fixing links to API (#14497)
Porting:
https://github.com/openvinotoolkit/openvino/pull/14253

Addressing: 96910
2022-12-16 08:09:49 +01:00
Karol Blaszczak
a5c616bc3c [Documentation]: Added description for NNCF PTQ (#14437) (#14665)
authored-by: Alexander Kozlov <alexander.kozlov@intel.com>
2022-12-15 15:05:47 +01:00
Maciej Smyk
d33d6b7a6d Stateful models (#14661) 2022-12-15 13:53:43 +01:00
Karol Blaszczak
dffe45ebd1 DOCS-menu-recreate-structure-step5 (#14637)
Shift to separating the Workflow section, including moving Run and Optimize inference inside Deploy locally

change several article and menu titles
minor additional restructuring
minor content tweaks
remove optimization introduction (may be brought back in parts later)
* several link fixes
* additional link fixes
2022-12-14 18:33:02 +01:00
Roman Kazantsev
bba7e77242 [TF FE] Add user guide about TF FE Capabilities and Limitations (#14622) (#14634)
* [TF FE] Add user guide about TF FE Capabilities and Limitations

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

* Update docs/resources/tensorflow_frontend.md

* Update docs/OV_Runtime_UG/protecting_model_guide.md

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

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

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
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-12-14 18:58:54 +04:00
Sebastian Golebiewski
5f8d05e342 DOCS: New Homepage- 22.3 (#14581)
* new homepage concept
* new diagram
2022-12-14 12:12:28 +01:00
Roman Kazantsev
b84161848e [TF FE] Add info messages in Model Optimizer (#14593)
* [TF FE] Add info messages in Model Optimizer and the preliminary user documentation

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

* Add test model with future operation

* Update docs/MO_DG/prepare_model/TensorFlow_Frontend.md

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

* Apply code-review feedback: Recover use of dict

* Fix the rest of feedback

* Remove User documentation for TF FE

* Correct tests to provide required arguments

* Handle argv without framework argument in deduce_framework function

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2022-12-13 13:24:23 +01:00
Jade Cho
7904b34679 [GPU] Fix a bug to not apply f-axis offset to oneDNN concat (#14595) 2022-12-13 20:28:53 +09:00
Sebastian Golebiewski
bda7227502 post-merge corrections (#14603)
Fixing link to python downloads
Minor grammatical error corrected
Updating software license disclaimer

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-12-13 11:49:24 +01:00
Sebastian Golebiewski
f3964bcea0 DOCS: Proofreading OpenVINO Extensibility for 22.3 (#14510) 2022-12-13 11:19:26 +01:00
Maciej Smyk
8f13a77a15 DOCS: Quantization doc rewrites - port to 22.3 (#14514)
* Update introduction.md
* header fix
* graph-fix
2022-12-13 09:51:12 +01:00
Karol Blaszczak
97ae79fe80 DOCS-menu_recreate_structure_step4 (#14584)
documentation section tweaks
create deployment section for further tweaks
API reference moved
compile tool moved
2022-12-13 08:12:41 +01:00
Maciej Smyk
ed5e237403 Target Operating Systems with Python Version fix (#14568) 2022-12-13 12:24:34 +08:00
mei, yang
7338f4b049 update paddle supported ops (#13923) (#14490)
* update paddle supported ops

* remove paddle tensor array related ops

* remove version information in paddle supported op name

* 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

* Update docs/MO_DG/prepare_model/Supported_Frameworks_Layers.md

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

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-12-13 11:53:29 +08:00
Wilson Seok
288b5326cb fix PR14422 regression for using arg_max_min opt kernel (#14487) (#14533) 2022-12-12 16:10:00 -08:00
Ilya Lavrenov
6f5edfa942 Adjusted pypi supported OS matrix (#14546) 2022-12-13 01:35:16 +04:00
Maksim Kutakov
ad0ef56665 [CPU] Fix for the convolution node dummy shapes generation (#14521) 2022-12-12 23:08:15 +04:00
Artyom Anokhov
7e1b9353d5 [Deployment Manager Configs] Updated with actual 2022.3.0 structure (#14585) 2022-12-12 22:23:11 +04:00
Pavel Esir
ece291a246 Revert "[IE] keep constants in shape subgraphs in f32 (#14204)" (#14457)
This reverts commit e648001b

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-12-12 18:10:41 +04:00
Karol Blaszczak
669d35b3e6 DOCS-menu_recreate_structure_step3 (#14574)
Adjusting the benchmarks structure
Restructure menu and adjust content for benchmarks and getting performance numbers
2022-12-12 14:55:46 +01:00
Vladimir Paramuzov
12b019e027 [GPU] Fixed invalid offset for tensor with batch padding (#14459) 2022-12-12 17:37:38 +04:00
Zlobin Vladimir
b07fea664f build_samples.sh: detect cmake3 for CentOS (#14562)
Close https://github.com/openvinotoolkit/openvino/issues/14553
2022-12-12 17:23:56 +04:00
Karol Blaszczak
4f9a8757c8 Docs menu lvl1 expand script (#14567)
* JS for expanding menu lvl1
Script by Kasia Bojarowska
2022-12-12 13:59:26 +01:00
Sebastian Golebiewski
12afd97e14 FaceNet (#14507) 2022-12-12 13:12:22 +01:00
Sebastian Golebiewski
9183d96394 lm_1b (#14506) 2022-12-12 13:10:31 +01:00
Sebastian Golebiewski
2d0f8b4f27 NCF_start images (#14505) 2022-12-12 13:07:39 +01:00
Sebastian Golebiewski
05d8648854 image-fix (#14504) 2022-12-12 13:04:44 +01:00
Sebastian Golebiewski
3914fd8aa8 DOCS: Image fix cutting models - porting #13853 to 22.3 (#14501)
* image fix
2022-12-12 11:21:39 +01:00
Vladislav Golubev
4911f80f37 [CPU] Convolution shape inference fix (#14550) 2022-12-12 13:59:14 +04:00
Roman Kazantsev
53265f0097 [ONNX FE] Support value freezing without specifying type (#14481) (#14554)
* [ONNX FE] Support value freezing without specifying type

Implement gete_element_type method for ONNX InputModel.
Implement tests with freezing integer input and float models

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

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Return only element type for model inputs and add ONNX FE tests

* Rename variable in the test

* Add syntax mark

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2022-12-12 10:53:52 +04:00
Karol Blaszczak
3dd6b50bff Docs menu recreate structure step2 (#14551)
model optimization
deploy locally
run inference
remove OVSA from security (it was duplicated)
2022-12-11 14:30:00 +01:00
Sebastian Golebiewski
9b8ab44500 DOCS: Reintroducing APT and YUM installation methods for 22.3 (#14492)
* reintroducing apt and yum

* fix indents and create tabs

fixing indent in apt
creating tabs in yum article

* Update installing-openvino-yum.md

* tabbed content

Inserting installation steps into tabs.
Correcting formatting.

* correcting indents

* correct indent

* indent fix

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

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

* removing non-cpu dev

Removing GNA, NCS2, VPU from Step 5 in YUM article.
Correcting links to Python.

* add apt and yum for installation

* revising openvino-dev installation

* removing opencv from apt

* remove opencv from yum

* removing non-cpu devs

* Update installing-model-dev-tools.md

* update disclaimer

* openvino development tools

correcting the name

* build samples sections

* add architecture

* remove install details yum

* remove install details apt

* reflink fix

* removing ncs2

* add dependencies

* install parametere

* move note

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-12-09 22:03:29 +04:00
Mateusz Bencer
7e87923f0c Added support of custom domain for OpExtension (C++/Python) and ConversionExtension (Python) (#14523) 2022-12-09 15:01:07 +01:00
Eddy Kim
083a17e89e [GPU] Updated to get lockable memories for device inputs in prepare_input() (#14532)
* updated to get ockable memory for device inputs

* gpuFuncTest to set f64 scalar tensor

* aligned type names

* updated to get lockable memory for some specific precisions
2022-12-09 17:00:32 +04:00
Anastasiya(Asya) Pronina
67bbc7361c Extended speech_sample to work on VPUX (#14508) 2022-12-09 15:27:20 +04:00
Artyom Anokhov
0121921068 Added ocl-icd for ubi8 image (#14525)
* install_openvino_dependencies: Added ocl-icd for ubi8 image

* install_openvino_dependencies.sh: Added json-devel to pkgs_dev for ubi8

* install_openvino_dependencies: Added pkgconf-pkg-config to pkgs_dev

* install_openvino_dependencies: Moved pkgconf-pkg-config to high-level pkgs_dev

* install_openvino_dependencies: Fixed with case for centos7

* Update scripts/install_dependencies/install_openvino_dependencies.sh

applied comments

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-12-09 14:11:56 +04:00
Roman Kazantsev
5cfc3cbf5d [TF FE] Break the cycle in the different way (#14480) (#14518)
* [TF FE] Break the cycle in the different way

Earlier solution was incorrect due to inproper handling of forward edges cases
(edges going from parent to grand-child) for which topological sorting
of nodes can be interrupted.

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

* Break the cycle by NextIteration inputs

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

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-09 10:28:38 +04:00
Karol Blaszczak
85506f263c Docs menu recreate structure step1 port (#14527)
* Initial TOC config

TOC depth
prev-next btn
TOC initial links

* extensibility section

header changed to section
section populated

* media processing and CV lib

header changed to section
no content in the node article... needs to be added later

* openvino security

header turned into section
intro article used as the section parent

* ecosystem

header turned to section
section populated

* menu padding adjustment

* benchmarks and release notes

benchmarks moved to resources
release notes moved to top level
case studies link

* OpenVINO IR

IR articles put in a section
the parent article will require more content
2022-12-09 08:23:09 +08:00
Ilya Lavrenov
36c6d58fb2 Added extra dependencies for debian / rpm packages (#14528) 2022-12-09 03:49:45 +04:00
Zlobin Vladimir
690a10c386 samples/cpp/build_samples_msvc.bat: don't ignore cmake error (#14499) (#14524)
Ticket 98429
2022-12-09 03:47:52 +04:00
Artemy Skrebkov
bceb7dbfe1 Fix segfault on windows with MSVC (#14517)
* MSVC compiler cannot handle copying empty AnyMap
2022-12-08 21:00:07 +04:00
Roman Kazantsev
57d8e96a30 [TF FE] Support dynamic shape Placeholder freezing and PlaceholderWithDefault (#14450) (#14482)
* [TF FE] Support dynamic shape Placeholder freezing and PlaceholderWithDefault

Also, this PR contains reorganization of python unit tests for TF FE that
covers conversion and inference of different models in pbtxt.
This mini-infrastructure will be used in the future for TF FE support.

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

* Revert debug info

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

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-08 17:43:22 +04:00
Alexandra Sidorova
2d072e8129 [CPU] Fixed segfault in Generic node creation for dynamic models (#14488) 2022-12-08 17:13:34 +04:00
Zlobin Vladimir
36ab5c2192 Update OMZ submodule (#14471)
* Update OMZ submodule

This update includes models publication for 2022.3
Tickets 95909 and 95910

* Update OMZ submodlue: remove numpy upper bound
2022-12-08 11:26:07 +00:00
Vladimir Paramuzov
afa9bdde93 [GPU] allow softmax_bf for axis=Y && X==1 case (#14461) 2022-12-08 14:10:48 +04:00
Vladimir Paramuzov
970d53b420 [GPU] Use transformed gemm shapes for layout optimizer checks (#14462) 2022-12-08 14:10:38 +04:00
Anastasiia Pnevskaia
633fe397a3 Fixed type check in convert_model(). (#14477) 2022-12-08 13:54:35 +04:00
Anastasiia Pnevskaia
5c33eff533 Fixed double printing of errors in MO. (#14474) 2022-12-08 12:46:22 +04:00
Xiping Yan
8680791ffe [CPU] Fix conditional compilation for oneDNN brgemm Convolution primitive 2022-12-08 12:06:41 +04:00
Ilya Lavrenov
edb3f3e820 Expose IE_THREAD definition to end users (#14476) 2022-12-08 12:05:42 +04:00
Karol Blaszczak
0eebb124c9 DOCS-top-menu-items_port_22.3 (#14465)
create top menu navigation
tweak css to display navigation properly
2022-12-07 19:34:42 +01:00
Karol Blaszczak
cc886509c6 Update benchmarks articles (#14438) (#14464)
Update performance_benchmarks_faq.md
Update performance_int8_vs_fp32.md
2022-12-07 11:20:43 +01:00
Karol Blaszczak
a9ad74b690 DOCS- add telemetry info page (#14463) 2022-12-07 11:15:24 +01:00
Andrey Babushkin
6947916541 Update branch to take other repos from for Azure pipelines (#14447) 2022-12-06 22:46:21 +04:00
Irina Efode
eb19a7f7ad [CONFORMANCE] Fix condition for WIN in Conformance runner (#14441) 2022-12-06 20:14:05 +04:00
Tomasz Dołbniak
6da95784c7 Unique-10 tests and improvements (#14315) 2022-12-06 19:09:30 +03:00
Luwei Zhou
79f04a704c [CPU] Extend AMX deconv int8 to support oscale+eltwise+eltwise post ops pattern (#14026)
* Extend AMX deconv int8 to support oscale+eltwise+eltwise post ops pattern.

* Add deconv AMX test cases.

* Add multi-eltwise test on deconv AMX int8.

* Applied review comments.

* Update onednn submodule.
2022-12-06 18:32:02 +04:00
Maxim Vafin
3b86f12c37 Revert "Fix squeeze shape infer to not change axis value (#13975)" (#14430)
This reverts commit 580c0c6b90.
2022-12-06 17:32:56 +04:00
Irina Efode
a27d69db75 [CONFORMANCE] FIX ISSUES FOR WIN IN CONF RUNNER (#14439) 2022-12-06 16:06:04 +03:00
Nadezhda Ageeva
23481a5403 Move ReshapePRelu to common transformation to reuse it in NV plugin (#14169) 2022-12-06 16:58:51 +04:00
Irina Efode
462176dfc4 [CONFFORMANCE] Fix hans reporting in conformance tests (#14427) 2022-12-06 16:57:19 +04:00
Irina Efode
4b1d89ba96 [CONFRORMANCE] Fix Hash script according impossible way to get_shape (#14435)
* [CONFRORMANCE] Fix Hash script according impossible way to get_shape

* add try except
2022-12-06 16:55:57 +04:00
Karol Blaszczak
e27b2cf119 rewording in supported_model_formats (#14334)
Merging with a slight rewording of the last suggestion by Andrei. We still want to retain consistency between paragraphs in structure and naming. If any further polishing needs to be done, we can create a new PR, while it can be published ASAP.
2022-12-06 13:42:33 +01:00
Trawinski, Dariusz
b914a8c71c fix syntax (#14436) 2022-12-06 16:04:46 +04:00
Luwei Zhou
da5b53e574 [CPU] Fix Deformable Convolution invalid read issue (#14326)
* Fix MACOS compiling issue when enabling CPU_DEBUG_CAPS.

* Fix Deformable Convolution segment fault caused by invalid access offset index.
2022-12-06 15:48:28 +04:00
Anastasia Kuporosova
09b24a1932 Fix XML vulnerabilities found by bandit (#14415)
* Fix vulnerabilities found by bandir

* fix vulnerabilities in tests dir

* fix for mo

* some changes
2022-12-06 11:46:26 +01:00
Karol Blaszczak
17c55ada85 Create the supported_models page (#14395)
Merging as is, although further changes may be required. Specifically, the placement in the menu structure.
2022-12-06 11:46:01 +01:00
Wilson Seok
bdcbdf71fc revert PR#12456 - removing arg_max_min and experimental_detectron_topk_rois in whiteof program.cpp (#14422) 2022-12-06 19:38:03 +09:00
Wang, Yang
cd9131267e [AUTO][Benchmark APP] sync config parsing logic of benchmark python version with benchmark c++ version (#14328)
* sync benchmark Python version with benchmark C++ version.

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

* Update.

* Update tools/benchmark_tool/openvino/tools/benchmark/main.py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* Update tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* Enable dump/load to support ov::device::properties parsing in benchmark python version.

* Enable benchmark python version to parse configuration file with device properties setting for AUTO/MULTI.

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

* Update usage of benchmark dumping/loading configuration in README and help message.

* Update comment.

* Update comments of the code.

* Update format of '-load_config' help message.

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
2022-12-06 17:28:25 +08:00
Pavel Esir
33ab2fd39a always remove '_tmp' files even after offline_transformations has failed (#14335) 2022-12-06 13:19:30 +04:00
yanlan song
4f1ad3bf3d Bell/fix gpu load model file wrong lifecycle (#14347)
* ensure correct lifecycle with load model file

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

* clang format

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

* enable tests

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

Signed-off-by: fishbell <bell.song@intel.com>
2022-12-06 11:29:07 +03:00
Luo Cheng
bf0d2cea4b [CPU] Relax threshold for using brgconv1x1 instead of inner product (#14351)
* relax condition

* modify new shape due to threshold changed

* rename M to an exact name

* apply review comments
2022-12-06 09:23:32 +01:00
Karol Blaszczak
f12765ebef Docs - benchmarks new solution (#14396)
* add bench csv
* Update custom.css
* images and scripts
2022-12-06 08:19:03 +01:00
Karol Blaszczak
d47033cc05 reintroduce benchmarks for ovms (#14403)
port from: #14271
Recreate performance_benchmarks_ovms.md and add it to TOC of performance_benchmarks.md
2022-12-06 08:03:40 +01:00
Vladimir Paramuzov
d0a6122cb2 [GPU] Fixed incorrect explicit transpose op inserted for MatMul (#14400) 2022-12-06 09:50:14 +04:00
yanlan song
0d1659c443 Bell/fallback singledevice network with dynamicoutput (#14291)
* change default value

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

* load to single device with stateful/dynamic model

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

* refine

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

Signed-off-by: fishbell <bell.song@intel.com>
2022-12-06 11:45:28 +08:00
guozhong wang
796ce53371 change AUTO default hint to Latency (#14236)
* change AUTO default hint to Latency

* Change the comment tput to latency according to wangyang opinion

* fix testcase for MULTI, the hint default value returned by MULTI is throughput

* Remove the redundant testcase and modify the name of the testcase that returns the default value of hint

* Code optimization according to bell opinion, add comments to testcase

* Correct the comments of testcase

* When user sets num_streams, AUTO/MULTI does not set the default hint to HW plugin

* Fix the problem that smoke_AUTO_MULTI_ReturnDefaultHintTest fails to run

* add num_streams and default hint mock testcase

* add auto default perf hint mock testcase
2022-12-06 11:41:43 +08:00
Evan
e1acaf67c5 Docs: Update Get Started page (#13917)
* docs: Change subtext on intro blocks

* docs: Rewrite GSG

* Update docs/get_started.md

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

* Update docs/get_started.md

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

* Update docs/get_started.md

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

* Update docs/get_started.md

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

* docs: change links to markdown format

* Apply suggestions from code review

* Update docs/get_started.md

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

* Update docs/get_started.md

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

* Update docs/get_started.md

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

* Update docs/get_started.md

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

* docs: remove header links

* docs: edit "Install OpenVINO" sentence

* Update docs/get_started.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-12-06 11:34:40 +08:00
Evan
72414851b8 Docs: Update Benchmark Tool example outputs (#13555)
* docs: revise example and update outputs

* docs: revise example and update outputs

* docs: typo fix

* docs: rectify changes

* docs: add <a> tag

* Update README.md

* docs: change example to use asl-recognition model

* docs: fix <a> tag

* docs: update sample outputs

* docs: change example to use asl-recognition model

* docs: revise example to use asl-recognition model

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-12-06 05:54:06 +03:00
hyunback kim
2483f4a0db [GPU] Fix dead lock from exceeded max size of host memory allocation. (#14364)
* [GPU] Fix dead lock from exceeded max size of host memory allocation.

Dead lock hang issue because remote_context ignore the exception and
return null. Use lock_guard.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-12-06 11:30:22 +09:00
yanlan song
df814fe668 keep the behavior of setting batch config through auto/multi (#14398)
Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-12-06 10:21:21 +08:00
Ilya Lavrenov
0357a97c40 Don't install scripts which are not used (#14414) 2022-12-05 23:35:02 +04:00
Roman Kazantsev
a945597802 [TF FE] Use _output_shapes attribute for Placeholder (#14383)
* [TF FE] Use output_shapes attribute for Placeholder

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

* Add test model

* Apply code-review feedback and remove compile warnings

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-05 23:13:53 +04:00
Ilya Lavrenov
fcc4e60441 Amazon linux 2 support (#14412)
* Use prebuilt cmake in install-dependencies steps

* Removed building of custom python to save Azure CI time

* Adjusted conditions in cmake

* Download VPU custom kernels compiler only for x86

* Removed -pyver argument

* Improvements

* Detect glibc version

* Usage of new glic variable

* Fixed typo

* Increased glibc version for MYRIAD case

* Made OpenVINO cmake Linux flavors agnostic

* Detect glibc version on RedHat

* Use clcompiler only since ubuntu 18.04

* Universal way to detect glibc version

* Revert some changes

* Added support of AmaZon Linux 2

* Amazon Linux 2 support
2022-12-05 21:38:52 +04:00
Kevin Putnam
afa95b87f7 Moves nav items from top of page to left nav (#14295)
Removes nav items from top of page and moves to left nav.
Uses a redirect to home.html to replace index.html.
Restores path variables
Removes debug print statement
Fixes path.

Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>
2022-12-05 17:13:40 +01:00
Ilya Lavrenov
77f3ad9c26 Fixed typo in Windows Azure steps names (#14404) 2022-12-05 18:51:48 +04:00
Anastasia Kuporosova
2daf145c97 [Docs] Add missed documentation for opset9 and opset10 (#14406) 2022-12-05 18:50:25 +04:00
Egor Duplenskii
b585393fee [CPU] Disable memfd kernel memory allocation in oneDNN (#14358)
to avoid segfaults and std::bad_alloc issues
2022-12-05 18:42:53 +04:00
Trawinski, Dariusz
d5a4d169d7 prepare install NEO script for rhel8.7 and ubi8.7 (#14408)
* enable install scripts for rhel8.7

* fix syntax error
2022-12-05 18:42:28 +04:00
Irina Efode
b1be628861 [IE TESTS] Add step logging in case of Conformance tests (#14302)
* [IE TESTS] Add step logging in case of Conformance tests

* fix code style

* align

* one more

* Update ov_subgraph.cpp
2022-12-05 17:19:30 +03:00
Nikolay Shchegolev
3959890691 [CPU] Unique operation implementation. (#14250) 2022-12-05 17:45:20 +04:00
Ilya Churaev
8c3425ff69 Fixed i420 tests (#14390)
* Fixed i420 tests

* Disable GPU i420 tests
2022-12-05 13:13:26 +00:00
Zlobin Vladimir
67d25d7099 Add benchmark samples (#13388)
* Add sync_bnehcmark

* Fix Unix comilation

* niter->time

* Explain main loop

* samples: factor out common

* Code style

* clang-format -i

* return 0; -> return EXIT_SUCCESS;, +x

* Update throughput_benchmark

* Add READMEs

* Fix READMEs refs

* Add sync_benchmark.py

* Add niter, infer_new_request, -pc

* from datetime import timedelta

* Fix niter and seconds_to_run

* Add disclaimer about benchmark_app performance

* Update samples/cpp/benchmark/sync_benchmark/README.md

* Add dynamic_shape_bert_benhcmark

* Add dynamic_shape_detection_benchmark

* Adopt for detr-resnet50

* Remove sync_benchmark2, throughput_benchmark2, perf counters

* clang-format -i

* Fix flake8

* Add README.md

* Add links to sample_dynamic_shape_bert_benchmark

* Add softmax

* nameless LatencyMetrics

* parent.parent -> parents[2]

* Add bert_benhcmark sample

* Code style

* Add bert_benhcmark/README.md

* rm -r samples/python/benchmark/dynamic_shape_bert_benhcmark/

* rm -r samples/cpp/benchmark/dynamic_shape_detection_benchmark/

* bert_benhcmark/README.md: remove dynamic shape

* Remove add_subdirectory(dynamic_shape_detection_benchmark)

* flake8

* samples: Add a note about CUMULATIVE_THROUGHPUT, don’t expect get_property() to throw, don’t introduce json dependency for samples/cpp/common

* / namespace

* Add article

* namespace -> static

* Update README, seconds_ro_run 10, niter 10, no inter alinment

* percentile->median

* benchmark samples: use generate(), align logs, update READMEs

* benchmakr samples: remove percentile()

* samples/python/benchmark/bert_benhcmark/bert_benhcmark.py: report average sequence length and processing time

* Python samples: move requirements.txt to every sample

* Remove numpy from requirements.txt

* Remove Building section from Python samples, install only required extras from openvino-dev, set up environment for bert_benhcmark, report duration for bert_benhcmark

* Install openvino-dev for Hello Reshape SSD C++ Sample
2022-12-05 15:12:53 +04:00
Przemyslaw Wysocki
a96f2af2f4 [PyOV] Upgrade mistune and remove import-order (#14356) 2022-12-05 10:16:24 +01:00
Maciej Kwapulinski
86c7b588cf Unit test corevage for race at GNAPlugin destruction (#13905/SHA-1:57293a6833) (#14346) 2022-12-05 09:04:50 +00:00
Pavel Zamelin
d9ef9266c3 Move inference_engine_snippets to core component (#14338) 2022-12-05 11:37:19 +04:00
Ilya Churaev
1e5247e5bb Disabled constant folding for branch with Range operation (#14389) 2022-12-05 11:33:43 +04:00
hyunback kim
507585b526 [GPU] Fix to access from not allocated memory (#14289)
During constant propagation, unexpected to access not allocated memory in input_layout_inst

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-12-05 16:25:00 +09:00
Maksim Doronin
c636d1dbfc R20 MX firmware update (#14376) 2022-12-05 07:15:19 +01:00
Ilya Lavrenov
331b1883a1 Use prebuilt cmake in install-dependencies steps (#14368) 2022-12-05 10:10:31 +04:00
Vladimir Paramuzov
48c0897b0f [GPU] Adjust default num streams (#14308) 2022-12-05 09:59:03 +04:00
Tatiana Savina
b76168b32b [DOC] Conditional compilation developer guide review (#14340)
* conditional compilation review

* additional fixes

* apply comment from review
2022-12-05 08:35:06 +04:00
Ilya Lavrenov
1af95fb3f8 Fixed C samples build on Windows (#14386) 2022-12-05 01:33:42 +04:00
Roman Kazantsev
aa4f4429c0 [TF FE] Prohibit compiling warnings (#14387)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-05 01:00:15 +04:00
Ilya Lavrenov
6dd8a93735 Made OpenVINO cmake scripts Linux flavors agnostic (#14384)
* Use prebuilt cmake in install-dependencies steps

* Removed building of custom python to save Azure CI time

* Adjusted conditions in cmake

* Download VPU custom kernels compiler only for x86

* Removed -pyver argument

* Improvements

* Detect glibc version

* Usage of new glic variable

* Fixed typo

* Increased glibc version for MYRIAD case

* Made OpenVINO cmake Linux flavors agnostic

* Detect glibc version on RedHat

* Use clcompiler only since ubuntu 18.04

* Universal way to detect glibc version

* Revert some changes

* Apply suggestions from code review

fixes issue with GNA

* Apply suggestions from code review

fixed typo
2022-12-04 22:55:52 +04:00
Anton Voronov
3caebffa5c [CPU] Sparsity weights decompression (#13775) 2022-12-04 22:43:53 +04:00
Ilya Lavrenov
cf8c78483d Reverted temporary WAs for gflags installation for CentOS 7 (#14370) 2022-12-02 22:10:02 +04:00
Pawel Raasz
78f95ddea4 Fix reshape evaluate to use tensor input shape (#14307) 2022-12-02 16:48:51 +01:00
Chen Xu
541045b0ba [CPU] Ensure mathematical correctness of Convert node (#14174) 2022-12-02 17:10:19 +04:00
hyunback kim
62aac52079 [GPU] Fix text-to-speech-en-multi-0001-duration-prediction running failure (#14301)
Becuase pooling to use ngraph shape infer, extend 1D to 2D logic moveed ngraph opt to cldnn pooling.
This change has side-effect in onednn pooling, onednn pooling also doesn't support 1D.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-12-02 18:15:13 +09:00
Ilya Lavrenov
b27cb1315f Updated ONNX dockerfile (#14359)
* Updated ONNX dockerfile

* Apply suggestions from code review

removed system protobuf

* Update .ci/openvino-onnx/Dockerfile

enable auto

* Fixe

* Update .ci/openvino-onnx/Dockerfile
2022-12-02 12:47:03 +04:00
Karol Blaszczak
29e39379c1 Update Model_caching_overview.md (#14312)
add information on mode caching on GPU as a preview feature

* Update Model_caching_overview.md
* Update GPU.md
2022-12-02 08:40:08 +01:00
Taylor Yeonbok Lee
ddfc7b0ecf Reset in memory cache capacity to 10000 instead of infinite (#14290) 2022-12-02 03:45:30 +00:00
yanlan song
3eac2cd613 do not carry batch configs in auto when user does not explicitly set it (#14003)
* temp resolution to support model path for CPU in auto

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

* disable batch when load through model path

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

* add mark for future release

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

* implement step1: donotparse batch config if user not set explictly

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

* correct typo in case

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

Signed-off-by: fishbell <bell.song@intel.com>
2022-12-02 10:14:18 +08:00
cecilia peng
1f16015802 Cecilia/paddle/decoder (#14332)
* fix AddressSanitizer: stack-use-after-scope in ov::frontend::paddle::NodeContext::get_attribute_as_any

* fix cyclic reference of op place and decoder.

* fix code style

* fix code style.
2022-12-02 09:28:52 +08:00
Wilson Seok
f7849ef465 avoid can_fuse_reorder_to_prev() for detection_output cpu impl (#14350) 2022-12-01 16:17:42 -08:00
Evan
5e24219446 Docs: Edits to Basic OpenVINO Workflow page (#13807)
* docs: Update intro and prerequisites

* docs: Update Steps 1 - 3

* docs: Re-organize CPU, GPU, MYRIAD examples

* docs: Change examples header

* docs: revise Other Demos/Samples section

* docs: Change OpenVINO Runtime install links

* 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>

* 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>

* 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>

* 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>

* Update docs/get_started/get_started_demos.md

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

* docs: edit OpenVINO Runtime section

* docs: add link to build from source

* 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/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/get_started/get_started_demos.md

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

* docs: change Basic OpenVINO Workflow in toctree

* docs: minor edit to OpenVINO Dev Tools section

* docs: edit Build Samples section

* docs: change Prerequisites section header levels

* docs: edits to Step 1

* docs: remove links to OMZ Demos build instructions

* docs: fix links, remove "the"s , TMs, and *s

* Apply suggestions from code review

* Update get_started_demos.md

* Update get_started_demos.md

* Update get_started_demos.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2022-12-02 03:02:06 +03:00
Ilya Lavrenov
3ec084074a RPM packages improvements: part 2 (#14306)
* Updated install_dependencies.sh

* Added Fedora support

* Improvements for RPM generation

* Refactored work with gflags

* Apply suggestions from code review

* Improvements

* Several improvements for Ubuntu 18.04

* Improvements in gflags

* Update thirdparty/CMakeLists.txt

temporary install samples dependencies

* Fixed several mistakes

* Fixed issues with gflags

* Don't install dependencies on Linux

* Added nlohmann findinds on debian9 case

* Added FATAL_ERROR is gflags is not found in samples

* Fixes for samples on CentOS 7

* Cross-compiled debian packakges with proper libraries location

* Fixed include for old nlohman-json versions

* Fixed compilation with old json

* Applied review comments

* Added support of old nlohmann versions via submodule

* Temporary WA for CentOS 7

* Fixed compilation with old gflags

* Fixed compilation of C samples

* Fixed gflags on RHEL8.2 / Debian 9
2022-12-01 23:57:23 +04:00
Vladislav Golubev
a246bdb3a0 [CPU] Unreachable code fix in Interaction fusion transformation (#14353) 2022-12-01 16:12:15 +00:00
Ilya Lavrenov
b41fb5f4e5 U[date features.cmake (#14345) 2022-12-01 17:39:48 +04:00
Nikolay Shchegolev
add3b11880 [CPU] New operations: IsFinite, IsInf, IsNaN. (#14314) 2022-12-01 16:34:39 +04:00
Tomasz Jankowski
64391cdb3f Transformation component transition to OV namespace (phase 3) (#13653)
* Use openvino pass graph_rewrite

* Use openvino pass pattern matcher

* Remove ngraph opsets

* Remove ngraph.hpp

* Remove ngraph includes

* Remove ngraph includes

* Use transformations API

* Remove ngraph includes

* Remove ngraph rt_info

* Remove unused ngraph includes

* Replace ngraph:: scope with ov:: here and there

* Remove serialize proxy header

* Remove proxy include

* Bring back a file for vpu-plugin

* Fix after upstream merge

* Remove nested namespace conflict

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
Co-authored-by: Mateusz Tabaka <mateusz.tabaka@intel.com>
2022-12-01 12:34:58 +01:00
Roman Kazantsev
38a1783527 [FE] Support freezing Placeholder without specifying type (#13984)
* [FE] Fix freezing placeholder via freeze_placeholder_with_value option

Currently, freezing placeholder via freeze_placeholder_with_value option does not work for any frontends. It happens due to absence of a node in _input_shapes dictionary.

* Add get_element_type method for InputModel

* Revert not needed changes

* Revert not needed changes

* Update freeze_placeholder_test

* Add tests for TF FE with freezing values of different types

* Fix Python API return value

* Correct returned type for get_numpy_ctype

* Apply code-review feedback

* Update src/frontends/tensorflow/src/input_model.hpp

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

* Apply code-review feedback: no tf legacy specific routine and parameter names

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2022-12-01 13:37:25 +03:00
Tomasz Jankowski
8ad74c17a4 Avoid Windows warnings in Transformantions (#14304)
* Avoid Windows warnings

* Don't change public API

* Enhance input shape control
2022-12-01 13:10:05 +03:00
Egor Duplenskii
0c6015f669 [CPU][DEBUG_CAPS] Fix build after snippets base class change (#14341) 2022-12-01 12:52:52 +03:00
Andrew Kwangwoong Park
b30b3866cc [GPU] Update all primitive's API to accept input_info for multiple outputs support (#14145)
* Replace primitive's input with input_new and corresponding updates

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

* unittests updates

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

* Fix conflicts and remaining unittests update

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

* Replace node and primitive's deps with deps_new and corresponding updates

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

* Replace output_padding and output_data_type with output_paddings and output_data_types

- Fix corresponding updates (primitive creation API, calc_output_layout|s, opt passes)

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

* Fix conflicts and updates

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

* Fix failing CI issues

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

* Apply code review

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

* Fix conflicts and corresponding updates

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

Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-12-01 12:16:59 +03:00
Roman Baranchuk
3448681de9 [CPU] Xor: convert to LogicalXor (#14115) 2022-12-01 11:59:22 +04:00
avoskoboinyk-lohika
62e2a672fb [CPU] Throw an error for LSTMCell-1 with peephole input since it's not supported (#13503) 2022-12-01 11:54:00 +04:00
Vladimir Paramuzov
b59aea873c [GPU] Fix exception for dyn reshape followed by static node (#14305)
* [GPU] Fix exception for dyn reshape followed by static node

* [GPU] Weights reorder fix
2022-12-01 00:52:03 +03:00
Anastasiia Pnevskaia
6d07e006b6 Fix for input names in preprocessing (#14199)
* Fix for tensor names in preprocessing.

* Added check in test.

* Small correction.

* Added check.

* Fixed error, added test.

* Added tests, added comment.

* Small correction.
2022-12-01 01:01:01 +04:00
Roman Kazantsev
a4c76d645d Return SelectWithOneValueCondition Transformation (#14336)
* [Common] Implement SelectWithOneValueCondition common transformation

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

* Add transformation tests for select_with_one_value_condition

* Move call of SelectWithOneValueCondition transformation to MOC

* Apply code-review feedback

* Remove corner case with dynamic output shape for Select

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-30 22:16:59 +03:00
Vitaliy Urusovskij
c6bc4be399 TSan suppress libopenvino_gapi_preproc.so (#14239) 2022-11-30 19:53:38 +04:00
Vitaliy Urusovskij
0e9f2bb7d8 Revert loading of plugins strictly by absolute paths (#14333)
* Revert "Load plugin libraries safely (#14034)"

This reverts commit 97878dee34.

* Revert "Plugins absolute path loading leftovers (#14299)"

This reverts commit 9ba304de72.

* Revert "Add `loadSOSafelyThrowIfRelativePath` test (#14311)"

This reverts commit 3e9f185e5d.

* Revert "Filter out samples tests on GNA for Debian (#14195)"

This reverts commit 57e630bd8f.
2022-11-30 19:08:06 +04:00
Vladislav Golubev
ebf04b17d1 LLT2Sequence tests fix (#14319) 2022-11-30 18:57:10 +04:00
Trawinski, Dariusz
4c19246097 Add missing libpython3.8 in install dep script for ubuntu18 (#14337)
* update code deps for rhel

* new neo driver version

* new neo driver version fix

* fix

* fix

* drop not needed gpu packages

* removed not necessry NEO packages, updated ov deps

* add gflag for rhel8 os

* update python on ubuntu18 and add core rhel8 rpm URLs

* add libpython3.8

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-30 18:55:01 +04:00
Krzysztof Bruniecki
9a938be94d [GNA] Fix logger initialization order, adapt unit test (#14296) 2022-11-30 14:42:09 +01:00
Maksim Kutakov
1de1029643 [CPU] Dynamic shapes overheads reduction (#13722) 2022-11-30 17:03:47 +04:00
Marcin Kacprzak
23d2451072 [GNA] Fix scale factor calculation for int8 convolution weights (#14320)
* [GNA] Fix input generation in convolution low precision tests

* [GNA] Fix scale factor calculation for int8 convolution weights

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>
2022-11-30 12:37:10 +00:00
Zlobin Vladimir
c09af40b4c No-break space->space, asssuming->assuming (#14276)
* No-break space->space, asssuming->assuming

* benchmark_app: don't print warning each iteration

* Russian с->English c

* Warn no batch only once

* Allow anonymus namespaces

* Keep only one report of model bach size, warn_if_no_batch for static model as well
2022-11-30 11:25:16 +00:00
Vladislav Golubev
9eb43bb8b4 [Snippets] [CPU] Serialization/Deserialization enabled (#14064) 2022-11-30 14:37:19 +04:00
Sebastian Golebiewski
a296a509e8 DOCS: Updating 'Create a YOCTO image' article - for master (#14130)
* Update installing-openvino-yocto.md

* Update installing-openvino-yocto.md

* Update installing-openvino-yocto.md

* updating troubleshooting guide

Adding a respective section in the Troubleshooting guide
Restructuring the installation steps and updating the branches of repositories

* Update installing-openvino-yocto.md

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

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

* Update docs/install_guides/troubleshooting-issues.md

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

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

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

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

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

* applying suggestions

Removing h3 level headings.
Correcting code block syntax in troubleshooting guide.

* Update installing-openvino-yocto.md

* reverting the steps

Reverting the installation steps to previous order.
Emphasizing that Step 2 is an example of creating the minimal image.

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-11-30 17:40:19 +08:00
Evgenya Stepyreva
e41a0823db Relaxes restriction for constant weights in the pass::MarkDequantizationSubgraph (#14297) 2022-11-30 09:04:19 +00:00
Evgenya Stepyreva
9478062e79 Zero inputs Concat fix and Scatter Update ops fix (#14284) 2022-11-30 12:08:21 +04:00
Piotr Krzemiński
57082859ef [BENCHMARK_APP/C++] Align performance counters and report output (#14140)
* [BENCHMARK_APP/C++] Align performance counters output, set all output time values to milliseconds

* [C++] Style fixes
2022-11-30 12:01:44 +04:00
Roman Kazantsev
5f06431aec [Install] Remove upper bound for NumPy for default installation and update upper bounds for extras (#13985)
* [Python API][Tools] Top up upper bound version for dependencies: NumPy, TensorFlow, NetworkX

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

* Remove upper-bound for TensorFlow and NumPy

* Revert "Remove upper-bound for TensorFlow and NumPy"

This reverts commit 662085df2e.

* Remove upper-bound for NumPy for default installation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-30 09:53:06 +04:00
Vitaliy Urusovskij
3e9f185e5d Add loadSOSafelyThrowIfRelativePath test (#14311) 2022-11-30 09:31:00 +04:00
Pawel Raasz
8935cd84f0 Set out tensor shape in FakeQuantize evaluate (#14262) 2022-11-30 09:24:01 +04:00
Ilya Churaev
fa0adc87fb Fixed sporadic in threading tests (#14270) 2022-11-30 07:30:21 +03:00
Vitaliy Urusovskij
9ba304de72 Plugins absolute path loading leftovers (#14299)
* Update docstrings after prohibition of not absolute
paths for plugins

* Use only absolute internal paths to load plugins

After introduction of plugins loading via absolute path,
libraries are still tried to load by names if wasn't found.
So safe last place of search (most common)  in order to
get useful error message

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-30 06:41:58 +04:00
Vladislav Golubev
b11adcdde4 [LPT] FQ Decomposition improvement (#14203)
* [LPT] FQ Decomposition modified to create FQ without constants with several consumers

* [LPT] Added subgraph test

* CPUTestsBase: Added the ability to check only fusing results

* [CPU] Added subgraph test

* LPT review comments applied

* CPUTestsUtils: added special string 'anytype' for selectedType check ignore
2022-11-30 01:04:10 +00:00
Pavel Esir
2a1a2532b2 more safe get_output_types in callback in convert_compression_only_to_legacy.cpp;more readable unit-tests for out of bound Intervals (#14300) 2022-11-29 22:05:16 +00:00
Trawinski, Dariusz
a2b46ed2eb update NEO drivers to support DG2 and fix package name for rhel8 (#14016)
* update code deps for rhel

* new neo driver version

* new neo driver version fix

* fix

* fix

* drop not needed gpu packages

* removed not necessry NEO packages, updated ov deps

* add gflag for rhel8 os

* update python on ubuntu18 and add core rhel8 rpm URLs

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-30 00:41:24 +04:00
Eddy Kim
cb15d281f1 [GPU] Serialize GPU memory reuse flag (#14269)
* serialize gpu memory reuse flag

* added c-tor of reduce_impl

* renamed memory_reuse_by_user as can_reuse_memory, and modified memory allocation logic to be simpler
2022-11-29 22:13:00 +03:00
Ilya Lavrenov
115a9071e4 Revert "[Common] Implement SelectWithOneValueCondition common transformation (#14242)" (#14317)
This reverts commit 5a59b2b8f2.
2022-11-29 21:08:48 +04:00
Vladimir Paramuzov
a1e30996a4 [GPU] Disable unused oneDNN features to reduce binary size (#12987)
* [GPU] Disable unused oneDNN features to reduce binary size

* [GPU] Fixed list args

* [GPU] unit test skip

* [GPU] Disable more onednn primitives
2022-11-29 18:55:14 +04:00
Georgy Krivoruchko
c4e15e0883 Added support of float16 in decoder proto, test (#13891) 2022-11-29 17:17:04 +04:00
Ekaterina Aidova
090261c852 [OMZ]: align dependencies (#14298) 2022-11-29 13:58:40 +01:00
Irina Efode
48dd92de47 [CONFORMANCE][IE TESTS] Reduce SLT execution time (#14165)
* init

* Reduce time

* remove extra

* try

* dd

* one more try

* Fix mistakes

* skip some cpu tests

* comment

* one more skip
2022-11-29 15:49:03 +04:00
Roman Kazantsev
5a59b2b8f2 [Common] Implement SelectWithOneValueCondition common transformation (#14242)
* [Common] Implement SelectWithOneValueCondition common transformation

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

* Add transformation tests for select_with_one_value_condition

* Move call of SelectWithOneValueCondition transformation to MOC

* Apply code-review feedback

* Remove corner case with dynamic output shape for Select

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-29 15:40:04 +04:00
Oleg Pipikin
de33d6d38b Fix inference tests build and tests in case of buind with disabled targets (#14286) 2022-11-29 13:50:53 +03:00
Maxim Vafin
0377acfdfe Fix issue with mxnet rnn model (#14225)
* Fix issue with mxnet rnn model

* Fix code style

* Add test
2022-11-29 14:17:54 +04:00
Artur Kulikowski
a0dd07f7e1 Add default visibility to class LegacyOpExtension (#14220)
* Add default visibility to class LegacyOpExtension

* Implement destructor in class LegacyOpExtension
2022-11-29 13:09:49 +03:00
Pavel Esir
e648001b12 [IE] keep constants in shape subgraphs in f32 (#14204)
* keep constants in shape subgraphs in f32

* added unit-test without callback; added comment in convert_compression_only_to_legacy.cpp
2022-11-29 13:55:06 +04:00
Adrian Varlan
97dd3e6a21 Adapt myriad plugin for new firmware (#14246)
Co-authored-by: Maksim Doronin <maksim.doronin@intel.com>
2022-11-29 01:46:45 -08:00
Wilson Seok
dd0e76b384 add input0(cond) broadcast in select (#14267) 2022-11-29 17:42:23 +09:00
Egor Duplenskii
03583d93cb [CPU] Add option to disable XBYAK_NO_EXCEPTION and fix itt win lib load (#14252)
Two oneDNN changes in scope of single PR
2022-11-29 10:36:29 +04:00
Vladimir Paramuzov
52b02c190b [GPU] Fixed bias fusion tests (#14285) 2022-11-29 01:26:13 +00:00
Wang, Yang
a0814953a4 sync benchmark python version with benchmark c++ version (#14212)
* sync benchmark Python version with benchmark C++ version.

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

* Update.

* Update tools/benchmark_tool/openvino/tools/benchmark/main.py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* Update tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* Update.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
2022-11-29 04:08:20 +03:00
Ekaterina Aidova
dc27a5d723 [OMZ]: update submodule (#14255) 2022-11-28 20:34:10 +01:00
Ilya Lavrenov
121cc920b7 Removed global defitniions for plugins (#14273) 2022-11-28 21:52:19 +03:00
Mateusz Bencer
09637ca5f2 [ONNX FE] Improve error handling during op registration (#14201) 2022-11-28 17:30:44 +01:00
Anastasiia Pnevskaia
af49e51b54 --input format update in MO docs (#14272)
* Updated input param in docs.

* Updated input param in docs.
2022-11-28 20:20:13 +04:00
Vladimir Paramuzov
9d954c7920 [GPU] Added several shape agnostic ref kernels (#13987)
* [GPU] Broadcast shape agnostic ref kernel

* [GPU] enable input_layout & data impls for dyn shapes

* [GPU] cum sum shape agnostic kernel

* [GPU] Eltwise shape agnostic kernel

* [GPU] Shape agnostic gather kernel

* [GPU] Shape agnostic mvn

* [GPU] Shape of and reshape dynamic kernels

* [GPU] Dynamic reshape

* [GPU] dynamic softmax

* [GPU] Dyn reshape fixes

* [GPU] Build fix

* [GPU] Prohibit reshape opt for padded case

* [GPU] Dynamic FC

* [GPU] Dynamic gemm

* [GPU] Dynamic reorder

* [GPU] int32 clamp WA

* [GPU] Review fixes

* [GPU] Fixed impls map for dyn cases

* [GPU] Broadcast fixes

* [GPU] Unit test fixes

* [GPU] Fixed gemm

* [GPU] Revert unexpected reorder kernel changes

* [GPU] Fix WA for clamp

* [GPU] Prohibit dynamic impl selection for non-planar output formats

* [GPU] Fix FC reshape to 2d

* [GPU] WA for fc with rank > 3
2022-11-28 18:08:48 +04:00
Roman Kazantsev
b9fe83b6aa [TF FE] Remove fallback from TF FE and accelerate conversion for .pb (#14179)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-28 14:06:58 +00:00
Vladimir Paramuzov
63b80a4fee [GPU] Async static kernels compile for dynamic flow (#14205)
* [GPU] Async static kernels compile

* [GPU] Added interface for async compilation worker

* [GPU] refactoring
2022-11-28 17:18:17 +04:00
Wang, Yang
a37723e8cf [AUTO] Enable Benchmark APP to parse the ov::device::properties through dump_config()/load_config() (#14057)
* [AUTO] update property setting logic.

* Update core::set_property() logic to only support primary property for AUTO and MULTI.
* Separate AUTO and MULTI supported properties.

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

* Add test case.

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

* 1. revert the changes for ie core.
2. Enable AUTO/MULTI only accepting its own properties.
3. Enable AUTO/MULTI accepting device properties passed from loadnetwork().

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

* Revert "[AUTO]Update the incorrect config test for Myriad (#13271)"

This reverts commit 0552d98802.

* MULTI only accepts its own properties that is same as AUTO currently.

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

* Add test cases for AUTO/MULTI property test.

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

* Update to enable MULTI supporting hw primary property setting throw the compile_model().

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

* Remove the added test case for setting secondary property through set_property().

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

* Update.

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

* 1. For AUTO/MULTI, property setting will be passed via core::compile_model() instead of core::set_property().
2. update the logic to infer precision setting that will transform into secondary property setting to each hw device.

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

* Update.

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

* set default value for nstreams when -d AUTO/MULTI and no nstreams setting from command line.

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

* Update code format.

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

* Enable BA to support if -d AUTO:MULTI,xxx/MULTI:AUTO,xxx. while AUTO Plugin need to update the logic of generating supported config list to virtual device.

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>

* move device configuration handling outside form function main.

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

* Revert "move device configuration handling outside form function main."

This reverts commit ef77bfc602.

* 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.

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

* Setting property performance hint to 'THROUGHPUT' and passing to executable network if no setting for of AUTO/MULTI.

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.

* 1. Fix the issue that the dumped configuration file retrieves empty config list when using OpenCV to dump configuration.
2. Enable load_config() to load secondary property.
3.  ov:device:properties from command line will replace the ov::device::properties loaded from configuration file.

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

* Update the performance statistics showing format.

* Update format.

* Update.

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

* 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>

* Update.

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

* Update README to add some simple configuration files loaded into benchmark app.

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

* 1. Enable dump/load function for AUTO to support hw device property setting thorugh configuration JSON.
2. Update README.md to example a simple JSON file containing the hw device properties setting for AUTO/MULTI.

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

* Update.

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

* Update.

* Update.

* Update.

* Drop the changes within dump/load of OpenCV config parsing.

* Update.

* Correct property name. Update ov::num_stream to ov::inference_precision.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>
2022-11-28 17:09:51 +04:00
Krzysztof Bruniecki
fe52337840 [GNA] Fix log level settings to control exporting of GNA text model description and allocations (#14251) 2022-11-28 12:24:49 +00:00
Georgy Krivoruchko
5c638df1c3 TensorFlow AddN layer test implementation (#13533) 2022-11-28 15:46:59 +04:00
Katarzyna Mitrus
13a76a8b72 [Unique-10] ConvertPrecision transformation and new attribute for output type (#14229)
* Add attribute for last output element type

* Add convert precision transformation and tests

* Update Unique python API with new attribute

* Update Unique-10 op specification

* Update docstrings

* Update visitor tests

* Add type prop tests for the new attribute

* Check axis constant before shape, compare with partial shape
2022-11-28 11:56:49 +01:00
Vladislav Golubev
f06c44115f [LPT] Check on isQuantized fixed (#14151) 2022-11-28 13:58:42 +04:00
Maciej Kwapulinski
4b51cf5ba0 GNA library update to ver 03.00.00.1910 (#14215) 2022-11-28 09:36:29 +00:00
Taylor Yeonbok Lee
aa88f0f756 [GPU] Enable bias fusing for dynamic shape (#14146)
* Fuse bias for dynamic fc

* Passing bias fusing unit tests
2022-11-28 12:24:52 +04:00
Ilya Lavrenov
79c6968024 Added older pugixml version support (#14260)
* Added pugixml finding w/o cmake, pkg-config

* Fixed findings

* Pugixml

* Removed sudo from install_build_dependencies.sh

* Fixed compilation with old pugixml

* Fixed Azure pipelines

* Updated clang-format step

* Add new approach for pugixml find to OpenVINO Developer package

* Fixed compilation with older pugixml

* Added openssl-devel for cmake build

* Fixed finding pugixml in developer package
2022-11-28 11:54:54 +04:00
Sungeun Kim
6bcdaa782a fusing reorder after quantize (#14235) 2022-11-28 16:04:54 +09:00
cecilia peng
b955e7e514 95436: sporadic failure (#14183)
* 95436: sporadic failure

* Update input_model.cpp
2022-11-28 14:03:51 +08:00
Zhang Yi
ead91d7c2f [CPU] Fixed Concat node performance (#14216) 2022-11-28 10:00:03 +04:00
Roman Lyamin
eb9946bd25 [GPU] Added support dynamic sizes/scales inputs for Interpolate (#14074) 2022-11-28 09:10:12 +04:00
Vladimir Paramuzov
7933cc7e0b [GPU] Adjust dynamic eltw fusion to keep correct shape infer (#14198)
* [GPU] Adjust dynamic eltw fusion to keep correct shape infer

* [GPU] Fixed eltwise shape infer
2022-11-28 09:08:19 +04:00
Vladimir Paramuzov
03b677b10b [GPU] Retain engine ptr in RemoteBlob impl (#14244) 2022-11-28 09:07:31 +04:00
Oleg Pipikin
f1795ad78a Move new transformation tests from ieFuncTests to ov_transformations_tests (#14241) 2022-11-28 08:23:17 +04:00
Oleg Pipikin
0b754189d1 Remove duplicated ir_serialization tests (#14256)
* Remove duplicated ir_serialization tests

* Fix code style

* Fix1
2022-11-28 08:22:41 +04:00
Irina Efode
c63f20fa7d [CONFORMANCE] Fix canExport model test + fix some instantiations (#14153)
* [CONFROMANCE] Fix OV Path in new conformance runner

* filelist

* dd

* try

* one

* Update run_conformance.py

* sss

* revert extra

* f

* exec_net

* init_1

* fix_instantiations

* remove extra

* Update summarize.py
2022-11-28 07:41:24 +04:00
Min, Byungil
1849a0be0b [GPU] Modify can_fuse_reorder for permute (#14234)
+ Remove reorder fusing condition for oneDNN execution of permute

Signed-off-by: byungilm <byungil.min@intel.com>
2022-11-28 12:30:40 +09:00
Jade Cho
6bc7cd73cd [GPU] Remove WA to fallback to cldnn (#14147) 2022-11-28 12:23:32 +09:00
Kelvin Choi
003e25b6fe [GPU] Update Reduce Op to use dynamic input (#13998) 2022-11-27 17:13:58 -08:00
Pavel Esir
e0c026cdfc fix Interval multiplication when result exceeds int64_max (#14230)
* fix Interval multiplication when result exceeds int64_max

* added unit-test with corner cases
2022-11-27 22:40:44 +04:00
Andrei Kochin
0246eb7917 [Req] upgrade mxnet to 1.9.1 (#14120)
* [Req] upgrade mxnet to 1.9.1

Signed-off-by: andrei.kochin <andrei.kochin@intel.com>

* [Req] upgrade relax mxnet dependancy

Signed-off-by: andrei.kochin <andrei.kochin@intel.com>

* specify upper bound

Signed-off-by: andrei.kochin <andrei.kochin@intel.com>

Signed-off-by: andrei.kochin <andrei.kochin@intel.com>
2022-11-27 22:26:09 +04:00
Maxim Vafin
a1cef7ab3a Fix value infer for ScatterUpdate in case of dynamic value in updates (#14222) 2022-11-27 22:23:39 +04:00
Ilya Lavrenov
9db70d774f Properly added dependencies between RPM packages (#14258) 2022-11-26 11:11:19 +04:00
Roman Kazantsev
f80babff51 [Layer Tests][TF FE] Activate layer tests for FusedBatchNorm in training mode in the precommit (#14240)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-26 00:25:00 +03:00
Roman Kazantsev
1353a23f12 Fix leftovers from PR14211 (#14238)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-25 20:29:23 +03:00
Wilson Seok
aea83d3d8b [GPU] add output_partial_shape in calc_output_layout of reshape primitive and add single layer test of strided_slice for the fix (#14209) 2022-11-25 17:28:53 +04:00
Sofya Balandina
7e812b7d77 Update jinja version to 3.x+ (#14200) 2022-11-25 15:44:57 +03:00
Mikhail Ryzhov
fc2d957a0e [GNA] Added unit tests for wrapped validators (#14193)
* Added unit tests for wrapped validators

* review commnets

* review fixes

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* Update src/plugins/intel_gna/tests/unit/ops/util_test.cpp

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

* FIxed typo mistake

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>
2022-11-25 13:24:58 +03:00
Edward Shogulin
cdb711a069 LPT: element-wise ops fuse extension to support updatePrecisions (#14141) 2022-11-25 13:49:03 +04:00
Yuan Xu
04df4195a0 update with installing dependencies (#14237) 2022-11-25 12:54:51 +04:00
Mikhail Ryzhov
c0941aba74 [GNA] Fixed order of Assign layers (#14066) 2022-11-25 11:21:57 +03:00
Krzysztof Bruniecki
b5557fc211 [GNA] Fix 2D->1D mapping of Convolutions (#14162)
* [GNA] Fix 2D->1D mapping of Convolutions where transpose BTW H and W is not applicable
2022-11-25 09:13:53 +01:00
Sergey Shlyapnikov
637f1cdf8f [GPU] Fix lockable memory allocation (#14134)
* [GPU] Fix lockable memory allocation

* Apply review comments

* [GPU] Replace usm handle sharing with independent blob creation

* Prohibit all other remote blob types

* [GPU] Fix for nullptr impl
2022-11-25 12:07:47 +04:00
Taylor Yeonbok Lee
823ea7c68a [GPU] Fixed node.is_dynamic() check to check regardless output size is valid or not (#14173)
* Fixed node.is_dynamic() check to check regardless output size is valid or not

* Additional fixes & added unittest
2022-11-25 11:54:42 +04:00
Vladimir Paramuzov
fdf504738d [GPU] Replace cl2.hpp with opencl.hpp in cmake search for docs and benchmark_app (#14158) 2022-11-25 11:37:51 +04:00
Eddy Kim
d436206019 [GPU] Removing OneDNN patch file for GPU model caching (#14214)
* updated not to use default c-tor for onednn desc

* onednn patch file is removed
2022-11-25 11:37:30 +04:00
Ilya Lavrenov
8dd8262b77 Added Debian, Raspbian, Ubuntu 22.10 support to install dependencies (#14226)
* Added Debian, Raspbian, Ubuntu 22.10 support

* Updated dependencies.cmake

* Fixes in script

* Added RHEL 9.1 support

* Added proper comments

* Compilation of rpm packages for aarch64 is fixed

* Proper generation of requirements.txt files when ENABLE_WHEEL=OFF

* samples build improvements

* Proper name for json library

* Proper condtion in samples
2022-11-25 11:13:43 +04:00
Ivan Tikhonov
4f0b846d1a Move GRUCellFusion and SequenceFusion transformations before NopElimination (#14213) 2022-11-25 10:57:45 +04:00
Ilya Lavrenov
6954838582 Conda fixes for Windows (#14219) 2022-11-25 10:57:00 +04:00
Ilya Lavrenov
923409164f Excluded MYRIAD from debian / rpm packages (#14227) 2022-11-25 10:56:07 +04:00
Mateusz Bencer
87715978dc PullThroughReduce and ReduceReshapeFusion transformations - handle more than one consumers (#14101) 2022-11-25 09:26:00 +03:00
Roman Kazantsev
db81e50a02 [TF FE] Support unknown and dynamic rank Placeholder shape (#14211)
* [TF FE] Support unknown and undefined Placeholder shape

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

* Fix mistake in the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-25 09:22:42 +03:00
Luo Cheng
21b09e0ac9 [CPU][TESTS] Added test cases for 3D FC Node: brg, brg<->ip, multiple weights (#14144) 2022-11-25 09:54:52 +04:00
Ilya Churaev
4e3f9515e0 Fixed Project root for exceptions (#14178) 2022-11-25 08:26:44 +03:00
Eddy Kim
36e37a8b0a [GPU] GPU driver version and architecture properties (#14187)
* added gpu driver version and gpu architecture properties

* deleted unnecessary header inclusion

* reverted to use gfx_ver for architecture string

* device_id is added to caching_properties
2022-11-25 09:20:15 +04:00
danylo-lebediev-capgemini
1f15d2b1e2 Fix in generate_inputs for Proposal-4 (#12462) 2022-11-25 05:45:25 +03:00
Anastasia Kuporosova
822e069a3e One more tbb path in setupvars.bat (#14228) 2022-11-25 04:25:41 +04:00
Egor Duplenskii
7f27cd57eb [CPU] Fix ports configuration for bf16 RNN primitives (#14111) 2022-11-24 19:13:22 +04:00
Denis Kotov
b53a5c3aff Added BenchmarkLayerTest class for simplifing of benchmarking (#12552)
* Added BenchmarkLayerTest class for simplifing of benchmarking

* Added example of using BenchmarkLayerTest for GenerateProposals operator

* Added report to file and also updated validate methods

* Switch from using json to xml for BenchmarkLayerTestReporter

* Remove smoke prefix from BenchmarkLayerTest usage example

Co-authored-by: Oleh Kurachenko <oleh.kurachenko@capgemini.com>
Co-authored-by: Irina Efode <irina.efode@intel.com>
2022-11-24 17:20:51 +03:00
Irina Efode
6aea7540b4 [CONFORMANCE] Update Conformance ReadMe according new features (#14043)
* [CONFORMANCE] Update Conformance ReadMe according new features

* fix some mistakes

* Update README.md

* ff

* Apply tsavina comments

* lost changes

* d

* fix comments. part 2

* fix args

* dd
2022-11-24 16:35:19 +03:00
Alexandra Sidorova
d6750f8e74 [CPU] Fixed dynamic Loop with explicit Concat Result (#14041) 2022-11-24 16:47:08 +04:00
Sergey Shlyapnikov
06cfa2abc4 [GPU] Support of surface input reordering to buffer (#13223)
* [GPU] Add surface input reordering

* [GPU] Add batched nv12->bfyx conversion reorder fusion
2022-11-24 16:20:38 +04:00
Katarzyna Mitrus
87ad175b69 [Transformation] Fix ConvertBroadcast-3 transformation for boolean input (#14085)
* Tests with boolean type for ConvertBroadcast3 transformation

* Extend support of bool input in ConvertBroadcast3 transformation

* New tests redundant ngraph namespace cleanup
2022-11-24 12:57:58 +01:00
Roman Kazantsev
e082d183b1 [Core] Fix Pad shape inference for Edge and Reflect modes (#14185)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-24 14:54:51 +03:00
Irina Efode
fa76c1df10 [CONFORMANCE] Fix OpImplCheck inheritance (#14167)
* [CONFORMANCE] Fix OpImplCheck inheritance

* fix parameters
2022-11-24 14:49:45 +03:00
Evgenya Stepyreva
1b038c58dc [ScatterUpdate] Partial Value Evaluation (#14055) 2022-11-24 11:43:43 +00:00
Marcin Kusmierski
358cb9241c [GNA][FIX] Add verification if custom scale factor can be applied (#14092)
* Added checking if imported model version is <= 2.7. Only in such case
    custom scale factor will be applied, otherwise there will be only logged
    warning message
* Added unit tests for validation of scale factor
2022-11-24 11:33:02 +00:00
Katarzyna Mitrus
166f2e6513 [Unique-10] Reference implementation fixes (#14160)
* Add more tests for Unique op reference impl

* Use stable sort to preserve elements order

* Update tensor comparator and unify approach for sorted

* Slices comparator revert and test

* Fix slices_ascending_order comparator
2022-11-24 11:03:52 +01:00
Oleg Pipikin
7c8e93f6d2 Move inference test from ieFuncTests and ieUnitTests. Fix warnings (#14017)
* Move inference test from ieFuncTests and ieUnitTests

* Enable tests in Azure CI
2022-11-24 14:02:10 +04:00
Anastasiia Pnevskaia
8f17bd6f21 copy() and deepcopy() tests for PartialShape. (#14190)
* Added tests of copy() and deepcopy() for PartialShape.

* Code reformat.
2022-11-24 13:28:20 +04:00
Tingqian Li
b7d4deb2d8 enable jit debug_trace() only when non-zero ONEDNN_JIT_DUMP is exported (#14058) 2022-11-24 13:11:08 +04:00
Ilya Churaev
005f8ca497 Fixed documentation build (#14208) 2022-11-24 12:41:37 +04:00
Zlobin Vladimir
e038902585 benchmark_app: remove -progress (#14127)
* benchmark_app: remove -progress

Tickets 80781 and 80903

* tools/benchmark_tool/requirements.txt: remove py-cpuinfo and progress
2022-11-24 10:50:07 +04:00
Sergey Shlyapnikov
d464d079b2 [GPU] Add blocking option for cldnn::memory::copy_*() functions (#14012) 2022-11-24 10:37:11 +04:00
Roman Kazantsev
cc219d085e [TF FE] Optimize and correct FusedBatchNorm translator - avoid Transposes (#14135)
* [TF FE] Optimize FusedBatchNorm translator - avoid Transposes

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

* Fix FusedBatchNorm: correct compute for batch_mean and batch_variance

* Add layer tests and fix based on them

* Mark failing test cases and bind to issue tickets

* Work around tests for FusedBatchNorm in inference mode

* Use separate fictitious constants for reserved outputs

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-24 02:49:29 +03:00
Pawel Raasz
a0a6e1c141 Review opset1 equal for shape inference aspects (#14006)
* Review equal shape inference:
- check dimension propagation
- check labels propagation
- check default ctor

* Review equal static shape inference
- add unit test for static shapes

* Correct typo in the variadic split method

* Remove leftovers and fix typos

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2022-11-24 01:15:58 +03:00
Katarzyna Mitrus
2817d58b90 Remove braces around scalar initializer (#14191) 2022-11-23 22:01:51 +04:00
Pavel Esir
ad7fc2e846 fix out of bound indices of Gather reference (#14131)
* bugfix for out of bound indices of Gather

* updated comment
2022-11-23 18:27:44 +03:00
Vitaliy Urusovskij
57e630bd8f Filter out samples tests on GNA for Debian (#14195)
Since GNA isn't a part of Debian package, no need to run tests on it
2022-11-23 19:20:26 +04:00
Anastasiia Pnevskaia
de7e59b4a2 Added telemetry initialization before running main subprocess. (#14155) 2022-11-23 16:30:04 +04:00
Marcin Kusmierski
3f1f798911 [FIX][OV]GNA]Fix GNA plugin crashes when running conformance tests (#13988)
* [GNA] added dims size validation to avoid segfault in orientation helper
* [GNA] fixed matmul transformation test to not access data from empty container
* [OV] fixed padd Tile to TileIE and added assertion to ngraph to CNN conversion.
2022-11-23 11:15:47 +01:00
Irina Efode
2bd2d266f1 [CONFROMANCE] Fix OV Path in new conformance runner (#14129)
* [CONFROMANCE] Fix OV Path in new conformance runner

* filelist

* dd

* try

* one

* Update run_conformance.py

* sss

* revert extra

* f

* Update run_conformance.py
2022-11-23 13:24:22 +04:00
Zlobin Vladimir
8d5df45d9f benchmark_app: reuse shapes string representation (#13783) 2022-11-23 13:19:26 +04:00
Karol Blaszczak
779aac9de8 Update OV_flow_optimization_hvr.svg (#14180) 2022-11-23 09:57:46 +01:00
Tatiana Savina
4fd16185a6 change importlib vers (#14123) 2022-11-23 12:56:33 +04:00
Mateusz Tabaka
e105b3ea37 [LPT] fix weights output channel index in ConvolutionBackpropDataTransformation (#14124)
ConvolutionBackpropData weights have following shape {input channels, output_channels, ...},
so unlike forward convolution, the output channels are on the second dimension.
2022-11-23 09:01:59 +01:00
Eddy Kim
ae0b2ce3c3 [GPU] GPU serialization fix (#14164)
* kernel_impl_params should be serialized before primitive_impl

* reduced the range of min max values ​​for this test case

* updated to use default get_mem when min max are not specified
2022-11-23 12:00:22 +04:00
Wang, Yang
7aac663f4a [AUTO Plugin] Remove/Add some test cases for AUTO/MULTI (#14117)
* Update.

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

* 1. Remove part of AUTO/MULTI test case since they has been coverred in another PR[13738].
2. Move the rest part of AUTO/MULTI test cases into CPU function test suit.

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-11-23 14:56:03 +08:00
Ilya Lavrenov
86e71003e6 Put json library finding under ENABLE_SAMPLES (#14138) 2022-11-23 10:07:17 +04:00
Zhang Yi
0b361768ce [CPU] Use common transform for logsoftmax (#14150) 2022-11-23 09:27:44 +04:00
hyunback kim
96e408899e [GPU] Update oneDNN v2.7 (#14139)
include enable deconv binary dims, types issue

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-11-23 12:37:22 +09:00
yanlan song
8e4bd92d12 change default value (#14142)
Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
2022-11-23 10:05:32 +08:00
Wilson Seok
0c8a49034c [GPU] add fs_b_yx_fsv32 in concat ref kernel and unit test for axis=3 (#14081)
* add fs_b_yx_fsv32 in concat ref kernel and unit test for axis=3

* add more blocked format for axis3 test case
2022-11-22 18:03:21 -08:00
Mingyu Kim
1d80f90316 [GPU] Layout propagation with preferred_layout (#14061)
* [GPU] Layout propagation with preferred_layout
2022-11-23 08:29:27 +09:00
Anastasiia Pnevskaia
74758c0ca5 copy() and deepcopy() methods for PartialShape. (#14136)
* Added copy and deepcopy methods for PartialShape.

* Clang format.
2022-11-23 01:09:30 +04:00
Anastasiia Pnevskaia
256b27c381 Fix for MO IR reader loading old meta data. (#14171)
* Fix for IR reader loading.

* Condition fix.
2022-11-22 22:06:32 +04:00
Anastasiia Pnevskaia
83e41d5d88 Fixed layout parsing. (#14157)
* Fixed layout parsing.

* Small fix.

* Test fixed.
2022-11-22 22:06:22 +04:00
Maxim Vafin
580c0c6b90 Fix squeeze shape infer to not change axis value (#13975)
* Fix squeeze shape infer to not change axis value

* Fix TensorIterator

* Revert Unsqueeze changes
2022-11-22 21:24:03 +04:00
Felix Dohyun Kim
2176e8f13c [GPU][DG2] Add fuse_count_onednn in test parameter (#14106) 2022-11-23 00:32:35 +09:00
Ilya Churaev
55b672b3dd Fixed link to developer documentation (#14149) 2022-11-22 18:02:02 +04:00
Asthestarsfalll
2edb9f7775 add paddle box coder (#12394)
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-22 15:20:46 +03:00
Mikhail Ryzhov
7244f1227d Removed unnecessary convertation nodes to output (#14125) 2022-11-22 11:25:07 +01:00
Ryszard Jezierski
e205538129 [GNA plugin] Fix issues from static code analysis (#13432)
* fix static code analysis

* reverted manual ostream flags reset
2022-11-22 11:24:09 +01:00
hyunback kim
c1bb0b59e7 [GPU] Fix kernel build failed issue (#14007)
* [GPU] Fix kernel build failed issue

redefinition of 'eltwise0_data0' FUSED_OPS_PRELOAD
Target model: cocosnet/onnx/INT8

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-11-22 19:03:21 +09:00
Eddy Kim
0b1e36600b [GPU] Graph serialization for GPU #2 (#13986)
* moved serialization include path

* quiet onednn-gpu patching

* save and load kernels in _impls

* changed to use OPENVINO_ASSERT

* fix errata

* updated to follow OpenVINO naming convention

* updated error messages

* binary buffer by vector<uint8_t>

* partial_shape serialization

* removed object_type

* added a new storage class for primitive_type_string and id

* updated to throw an exception when _node is null in build_deps().

* removed redundant memory_pool clearing

* added a new net_id creator

* newline at eof

* updated CLDNN with GPU

* added cache blob descriptions

* updated output allocation logic  in serialization

* added ov::device::architecture in supported properties

* overrided save and load in data_inst and mutable_data_inst

* removed save and load functions in mutable_data

* baseline for serialization unit tests

* added serialization unit tests

* added serialization unit tests

* updated not to execute build_deps when deserialized

* make_data without namespace

* updated to use default layout c-tor

* updated get_unique_net_id()

* updated get_type_id() to a pure virtual method

* updated ov::caching_properties

* added [GPU] tags

* updated network c-tor

* updated unit tests
2022-11-22 12:43:50 +03:00
Vitaliy Urusovskij
97878dee34 Load plugin libraries safely (#14034)
For security purposes load plugin libraries only by absolute path to prevent
search from environment variables, working directory etc.
2022-11-22 12:44:56 +04:00
Xuejun Zhai
1910f42179 [C API DOC][DG] C API developer documentation (#13499)
* [C API DOC] add c api docs

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

* Update OpenVINO_Runtime_C_API_User_Guide.md

Add mapping relationship about C++ API 2.0 and C API

* [C API][DG] Add some roles for developping C API

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

* [C API DOC][DG] Implement the developer guide

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

* [C API DOC][DG] Fix comments

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

* [C API DOC][DG] Fix format issue

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

* [C API][DG] Fix review issues including add reference link, clear description

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

* [C API][DOC] Fix review comments

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

* [C API][DOC] remove the mapping relationship of interface & object

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

* [C API][DOC] Fix review comments

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

* [C API][DOC] add descriptions for unit test

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

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-11-22 10:38:17 +04:00
Fang Xu
8786fbe0c3 update tbb linux and mac binaries (#14080)
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-11-22 14:33:52 +08:00
Mateusz Tabaka
47acda3476 Cleanup in Split mask propagation transformation (#14119)
* Cleanup in Split mask propagation transformation

* review comments
2022-11-22 10:25:58 +04:00
Ivan Tikhonov
81c579fd2a fix inference of some with TensorIterator (#14108) 2022-11-22 10:17:58 +04:00
River Li
bf5b7a5fec [DOC] Add developer guide for conditional compilation (#13852)
* Add developer guide for conditional compilation

Change-Id: If769ce1afc045e678b5816ed6ae903ba48a5a320

* Use reference to real code as example

Change-Id: I21f6aa47dfdf4ab7e92424a3ccc3d7524cc4b762

* Add table for macros

Change-Id: I9503d801ebe67ea5c6e525e02a21a7295ba56bc6

* Update for more clear description

Change-Id: I83b39f4a2462fb47ad1537e9747a2bb4a031dab9

* Use refer link replace code snippet

Change-Id: I5e63302718ab02eb4bd7a28ae994c8e5e26e0e02

* Add README.md for CC

Change-Id: I90abe73297deb5f55f219c15b093a02a30f9e8b5

* Update README.md

Change-Id: I8199252cb24fdacba16ea8b9fac63f6f47e4f1e3

* Add link list to doc

Change-Id: Id9a512cf8998cf18795cc0ac096fbbf89b28941c
2022-11-22 09:28:01 +04:00
Vladimir Paramuzov
dfb31f485b [GPU] Insert reorder for eltwise const dependency (#14013)
* [GPU] Insert reorder for eltwise const dependency

* [GPU] Fixes for const reorder logic. Updated one codegnerator config
2022-11-22 09:10:00 +04:00
Oleg Pipikin
6b4b01aecf Move transformation and lp transformations tests from IeFuncTests and IeUnitTests (#14096)
* Move transformation and lp transformations tests from IeFuncTests and IeUnitTests

* Enable tests in Azure CI

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-22 07:46:19 +04:00
Taylor Yeonbok Lee
dc3d5755cf [GPU] Fix dynamic shape accuracy issue w.r.t crop (#14104)
* Fix wrong dependency issue to split/variadic split issue

* Added variadic split test

* minor changes
2022-11-22 06:21:26 +03:00
Sungeun Kim
9bcc730bec check prev is next's dep(0). (#14107) 2022-11-22 12:05:28 +09:00
Jade Cho
4c0b8e6ebd [GPU] Prevent that tanh is fused (#13976) 2022-11-22 10:33:48 +09:00
Mateusz Bencer
a693f4efac [ONX FE][Quantize/DeQuantize] Ignore the axis attribute for scalar scale/zero_point (#14049) 2022-11-22 03:34:30 +03:00
Katarzyna Mitrus
adea538ba7 Fix Unique op python tests (#14118) 2022-11-22 02:50:08 +03:00
Katarzyna Mitrus
052a32be57 Add default to switch (#14110) 2022-11-21 23:59:23 +04:00
Oleg Pipikin
8134eba818 Fix typo in test executable (#14116) 2022-11-21 23:59:09 +04:00
Ilya Lavrenov
bbd6c03817 Fixed manylinux2014 with system TBB (#14126) 2022-11-21 20:43:22 +04:00
Egor Duplenskii
2d01ad3f18 [CPU] Fix seg fault in oneDNN 'parallel' with ITT built (#14048) 2022-11-21 20:11:03 +04:00
Irina Efode
68b6b273c5 [CONFORMANCE] Fix API Conformance run according changed functions (#14112)
* [CONFORMANCE] Fix API Conformance run according changed functions

* def para
2022-11-21 18:49:44 +03:00
Jan Iwaszkiewicz
abdcaef36d [PyOV] Add README.md and align structure-showing style (#14093)
* [PyOV] Add README.md and align structure-showing style

* First batch of review changes

* Remove README from compatibility files

* Add note about coding style rules

* Add note about coding style rules pt2

* Update Components

* Apply fixes
2022-11-21 16:42:36 +01:00
Min, Byungil
0cf319f855 [GPU] Apply cached_blob to make engine (#13781)
+ Updated oneDNN to use cache_blob
+ Updated oneDNN to fix group conv failure
+ Add g_os_iyx_osv8 format and relevant reorder to support oneDNN update
+ Used cached_blob to make engine if cache_dir config is used

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-11-21 22:52:18 +09:00
Evgeny Kotov
0846bdb67e Transpose sinking on passes for Concat, Split and binary eltwise operations (#13718)
* initial

* clang cleanup fixes

* remove TrasposeAxis function; cleanup namespaces

* fix TransposeInputsInfo spell

* one_input_transpose spell

* cleanup speel

* spell

* decompose forward sinking

* decompose backward sink

* use NodeVector

* clang cleanup

* decomposite transformations into different files

* decompose unit tests

* clang cleanup

* azure build fixes

* code review fixes

* clang cleanup fixes
2022-11-21 16:24:26 +04:00
Mateusz Tabaka
738d7bb09f Remove ov::JsonConfigExtension (#14087)
Ticket: 96278

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-21 15:06:08 +04:00
Luo Cheng
cf7b174bf9 [CPU] Use brgconv1x1 instead of inner product in some cases (#13715) 2022-11-21 15:00:49 +04:00
Tomasz Adamowicz
47e80200dd [GNA] Add 1DConv validator for GNA 3.5 (#13866)
* [GNA] Add 1DConv validator for GNA 3.5

* Improve gna lib version parser

* [GNA] Enable exec target=GNA_TARGET_3_5 testing
2022-11-21 09:01:07 +00:00
Alina Kladieva
0b97ab48a3 Revert "Fixed manylinux2014 with system TBB (#14076)" (#14113)
This reverts commit cfb21de775.
2022-11-21 09:56:24 +01:00
Ilya Lavrenov
cfb21de775 Fixed manylinux2014 with system TBB (#14076)
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-11-21 09:54:57 +01:00
Luo Cheng
40089bdef7 [CPU] MergeTransposeAndReorder incorrectly removed const (#14067) 2022-11-21 11:18:57 +03:00
Xuejun Zhai
05ed3e218b [C Sample][Readme] correct C sample read me (#14052)
* [C Sample][Readme] correct C sample read me

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

* [C API][Sample] modify readme about api list

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

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-11-21 08:03:53 +04:00
Xiuchuan Zhai
9680617333 [CPU][Paddle] support paddle reverse op mapping and unittest (#12822)
* support paddle reverse op mapping and unittest

* Update reverse.cpp
2022-11-21 07:05:16 +04:00
Sungeun Kim
9d4d4888b2 [GPU] avoid to fuse reorder if the reorder could be fused. (#14019)
- Don't fuse reorder if the reorder is not input 0.
* add errta data types.

-add test cases
-get next.dep(0) only
2022-11-21 10:08:28 +09:00
Xiping Yan
2a7dc5404b [Core/CC]Verify add_matcher scope for Conditinal Compilation. (#13148)
* My verification:
libopenvino.so original size: 10799560
After adding this patch, new size: 10684744

Reduce: (10799560 - 10684744)/1024.0 = 112.125K.

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

* try to fix clang issue

* Merge xuejun/cc_test

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

* Test

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

* TEST1

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

* TEST2

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

* Complete Add_matcher wraper.

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

* register_pass rebase

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

* fix clang issue.

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

* fix some replace error.

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

* 1: Rename ADD_MATCHER_SCOPE_WITH_OBJ -> ADD_MATCHER_SCOPE;
2: Remove debug info;
3: Fix bug: REGISTER_PASS_WITH_FALSE_

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

* Add ADD_MATCHER_SCOPE_WITHOUT_NSPACE macro

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

* fix macro define issue.

* Add register_pass for cnn_network_ngraph_impl.cpp

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

* Try to fix vpux plugin fail issue.

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

* Fix clang issue

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

* Merge macro "REGISTER_PASS_MODEL_SCOPE" and "REGISTER_PASS_FUNCTION_SCOPE" to "REGISTER_PASS_SCOPE"

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

* Rename "REGISTER_PASS_SCOPE_WITH_FALSE" to "REGISTER_DISABLED_PASS_SCOPE_WITH"

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

* Rename ADD_MATCHER_SCOPE_WITHOUT_OBJ to ADD_MATCHER_SCOPE_FOR_THIS
ADD_MATCHER_SCOPE_WITHOUT_NSPACE to ADD_MATCHER_SCOPE_FOR_THIS_WITHOUT_NSPACE

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

* In order to implement CC, I have to move "StridesOptimization()" constructor to cpp file.

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

* Remove "SCOPE" in macro.

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

* Recover changes to fix clang issue.

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

* Remove "REGISTER_PASS_MODEL_IF"

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

* 1: Remove "ADD_MATCHER_FOR_THIS_WITHOUT_NSPACE";
2: Remove param "nspace" in Macro, replace with "using namespace " in local.

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

* fix missing update.

* For MACRO REGISTER_PASS:
1: Only keep a external macro define;
2: Judge 3 possibilities, if one of them is true, it will be disable;

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

* Optimize ADD_MATCHER_FOR_THIS.
-#    define ADD_MATCHER_FOR_THIS(region, ...)        add_matcher<region>(__VA_ARGS__);
+#    define ADD_MATCHER_FOR_THIS(region, ...)        ADD_MATCHER(this, region, __VA_ARGS__)

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

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

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

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

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

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

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

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

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

* clang format

* Update OR defiation in MACRO, increasing code scalability.

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

* Fix window compiles error.

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

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-11-20 19:02:42 +03:00
Anastasiia Pnevskaia
80b9a5eeae compress_to_fp16 parameter in MO. (#13832)
* Added convert_to_fp16 param in MO.

* Deprecated data_type.

* Renamed param, made value optional.

* Docs update.

* Docs update.

* Docs update.

* Changed param description.

* Conflict fixed.

* Apply suggestions from code review

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

* Param description correction.

* Corrected docs.

* Apply suggestions from code review

Co-authored-by: Pavel Esir <pavel.esir@gmail.com>

* Fixed docs.

* Small correction.

* Update docs/MO_DG/prepare_model/FP16_Compression.md

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

* Update docs/MO_DG/prepare_model/FP16_Compression.md

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

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

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

* Update tools/mo/openvino/tools/mo/utils/cli_parser.py

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

* Update docs/get_started/get_started_demos.md

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

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

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

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
Co-authored-by: Pavel Esir <pavel.esir@gmail.com>
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-11-19 13:57:15 +00:00
Anastasiia Pnevskaia
558714ccdd Support of passing model from memory to mo.convert_model() (#13457)
* 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.

* Added direct support of BytesIO and TF1 graph def.

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

* Fixed keras loading.

* 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.

* Keras direct model support.

* Keras direct model support.

* Small fix.

* Conflict fix.

* Conflict fix.

* Added direct support of BytesIO and TF1 graph def.

* Fixed keras loading.

* Keras direct model support.

* Keras direct model support.

* Small fix.

* Tests for importing from memory.

* Support of other tf/pytorch formats.

* Updated mo_convert extensions tests to use ov models.

* Removed debug output.

* Implemented PyTorch converting logic.

* Small corrections.

* Small corrections.

* Added comments.

* Fixed for single input case.

* Added switching between save to file and BytesIO.

* Small fixes.

* Rename convert() to convert_model().

* Added env variable to disable converting to onnx.

* Tests refactoring.

* Add MO Python API tests to precommit.

* Add MO Python API tests to precommit.

* Added PyTorch to layer tests requirements.

* Added supported formats description.

* Fixed errors, added tests.

* Fixed bugs, added support of numpy and ov.Tensor sample_input.

* Added more torch.Size tests.

* Small correction.

* Renamed sample_input->example_inputs.

* Tests refactoring.

* Code style.

* Added support of dict in example_inputs.

* Small correction.

* Added removing of tmp onnx model in case of conversion error.

* Fix for lists of tensors in example_inputs.

* Support of dynamic axes for Keras layer, Keras module.

* Removed disabling of eager execution.

* Tests fixed.

* Added pytest requirement for layer tests.

* Added convert_model to openvino.runtime, fixed test runs.

* Small fix.

* Tests fix.

* Better help message.

* Error fixed.

* Renamed example_inputs->example_input.

* Small fix.

* Added support of list of layouts.

* Removed wrong change.

* Added tuple support for --layout.

* Removed convert_model from openvino.runtime.

* Use of default onnx opset version.

* Added support of dynamic input shapes without example_input.

* Made better error message.

* Removed stack trace from exceptions.

* Fixed tests.

* Small fix.

* Removed wrong change.

* Added import model from memory tests in unit tests.

* Replaced compare_functions() with MO IR reader compare.

* Removed test.

* Removed not needed change.

* Fixed conflicts.
2022-11-19 11:21:44 +03:00
Ivan Tikhonov
68e7f062c5 LowLatency v2 tests + resolving the review comments from PR 93758 (#14084)
* Enable SequenceFusion, TensorIteratorToSequence, GRUCellFusion transformation in MOC, the transformations have been deleted from plugin pipelines

* clean-up: delete augru transformation header

* Temporary disabled TensorIterator IR reader tests

* temporary disable tests, it's not TI issue, usqueeze doesn't have reference impl for fp64 and bf16

* Update ConvertTensorItearatorToSequence transformations: add Unsqueeze to pattern

* Codestyle

* Specify negative values for LSTM/GRU/RNN Sequence ops

* fix conflicts with master branch

* Insert ShapeOf subgraph in ConvertSequencesToTensorIterator transformation in case of dynamic input shape

* codestyle

* fix conflict with master branch

* fix onednn version

* Update low latency v2 to support GRU/RNN/LSTM Sequence ops, fix accuracy issue

* fix tensor names

* fix tensor name issue on gna

* fix transformation tests, fix copying rt_info in the transformation

* fix warning, enable bf16, f64 ti tests

* codestyle

* fix functional tests

* EliminateDuplicateTIInputs transformation, fix copy_with_new_inputs method of TI op

* move EliminateDuplicateTIInputs transformation

* codestyle

* add LLTv2 tests, resolve review comments

* resolve conflicts with master

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-11-19 10:57:44 +03:00
Nikita Malinin
ed643b3f74 [POT] Added GNA3.5 to the POT's devices list (#14071)
* Added GNA3.5 to the special devices list

* Remove cpp device filtration
2022-11-19 06:35:33 +03:00
guozhong wang
42b816ace7 set cpu affinity to numa in MULTI situation (#13407)
* change gpunum to 3

* hold threads for GPU for MULTI:GPU,CPU

* need to first check if there is a CPU in the device list

* use getNumberOfCPUCores to get CPU cores

* load GPU first

* assign the correct value to multiSContext->_devicePriorities

* load GPU first and load CPU last and set numa for CPU

* MULTI set CPU affinity to “NUMA” during load network

* Load the CPU last while maintaining the original device priority

* not using vector for CPU

* There is no user setting affinity in MULTI, and NUMA is set for the CPU

* pass key ENABLE_HYPER_THREAD to CPU plugin and merge xiaoxia PR

* set ENABLE_HYPER_THREAD to NO

* modify log

* Modify the code according to xiaoxia and wanglei comments

* Modify the code according to bell comments
2022-11-19 02:57:47 +00:00
Roman Kazantsev
384a961793 [TF FE] Break the cycle for NextIteration (#14063)
* [TF FE] Break the cycle for NextIteration

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

* Fix code-style

* Better to cut by outputs of operation creating the cycle

* Remove extra thing

* Add test model

* Add test for conversion of TF1 While

* Apply code-review feedback: use pointers and correct error message

* Remove extra check

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-19 03:31:11 +03:00
Sun Xiaoxia
9d8a03f90c Limit the scope of hybrid_aware throughput setting (#14054)
* fix custom setting nstreams doesn't work due to the logic changed in ApplyPerformanceHints

* add same limitation for latency mode

* change bind core method to binding full physical core first, then logical core

* update custom setting streams and threads

* fix corner case when threads_per_stream is 1

* fix with comments

* add condition of big core stream is zero when binding core

Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-11-19 02:26:43 +03:00
Vladislav Vinogradov
96ad308380 Avoid gold linker usage in case of cross-compilation (#14097)
It might not be available in some cross-toolchains.

Extract the code for switching to gold linker into separate
CMake utility function to avoid duplication between multiple CMake scripts.
2022-11-19 01:19:01 +04:00
Andrei Kochin
a73fe4e351 Remove test for unqiue op to fix master (#14102)
* Remove test for unqiue op

Signed-off-by: andrei.kochin <andrei.kochin@intel.com>

* Remove test empty line

Signed-off-by: andrei.kochin <andrei.kochin@intel.com>
2022-11-19 01:17:55 +04:00
Ilya Lavrenov
ae32d0e5bf Removed duplicated pdpd test requirement (#14083)
* Removed duplicated pdpd test requirement

* Fixed path in Azure CI Windows
2022-11-18 23:11:38 +04:00
Anastasiia Pnevskaia
c56cd93a28 Pass MO meta data to RT info (#13633)
* Moved MO meta data to RT info.

* Undo wrong change.

* Reformat code.

* Code reformat.

* Corrected error message.

* Test correction.

* Test fix.

* Updated MO IR Reader.

* Added testing of meta data for MO IR reader.

* Code corrections.

* Default params removed from meta data.

* Test corrected, fixed paths cropping.

* Small fix.

* Renamed legacy_path to legacy_frontend.

* Fixed error.
2022-11-18 23:08:35 +04:00
Ilya Lavrenov
684ad26449 Removed lintian warnings for U18 (#14091) 2022-11-18 20:05:33 +04:00
Katarzyna Mitrus
26bdf1ac63 [Unique-10] Add Unique op to PythonAPI (#14036)
* Add Unique op to PythonAPI

* Add Unique op to the compatibility PythonAPI

* Clean redundant imports and style

* Clean unused type
2022-11-18 16:59:22 +01:00
Ilya Lavrenov
74eede33e5 Updated copyright files for debian (#14089) 2022-11-18 19:34:58 +04:00
Anastasia Kuporosova
2142ed9363 [Docs][PyOV] Remove obsolete documentation file (#14098) 2022-11-18 16:30:11 +01:00
Evgenya Stepyreva
507086097d Shape Inference: Unary and First-input-shape-Passthrough operators (#13492) 2022-11-18 15:43:48 +03:00
Nadezhda Ageeva
8588603506 Revert "[BENCHMARK_APP] Show input command in output (#13402)" (#14027)
This reverts commit f893a58816.
2022-11-18 14:43:41 +03:00
Ilya Churaev
198adbf266 Add profiler to document build scripts (#14029)
* Add profiler to document build scripts

* Add script name

* Use system doxygen and try to understand the build of each cmake target

* Revert doxygen

* Try to speed up documentation build

* Try to cache results

* Added cache for sphinx

* Remove profilers

* Fix install dependencies

* Restored config options

* Added ccache

* Cache python and update sphinx

* Update packaging

* Revert sphinx upgrade

* Don't need to clone recursive

* Revert "Don't need to clone recursive"

This reverts commit 7a2043df7b.

* Change cache apt action

* Updated ccache calls

* Don't use recursice init

* Update sphinx to 4.5

* Fixed indent

* Disable all custom code in theme

* Remove quite mode

* Revert "Disable all custom code in theme"

This reverts commit 096ca2f329.

* Removed dependency on python

* Disable code analyse

* Disable common functions

* Revert edit page

* Minimize the number of cycles for li

* Fixed is none

* Try to fix build

* Disable sidebar

* Revert "Disable sidebar"

This reverts commit 64303ee94f.

* Return raw html

* Removed private information

* Avoid generation multiple artifacts

* Added additional step to collect ccache

* Small change

* Fixed typo

* Added comments
2022-11-18 15:12:35 +04:00
Irina Efode
e075785486 [API CONFORMANCE] Remove skips for ov_plugin (#13749)
* ov_plugin

* fix graphs for cache

* fix build

* CPU + Template

* GNA

* Fix test

* sjkips

* sk

* extrs

* Update skip_tests_config.cpp

* try

* try
2022-11-18 14:46:32 +04:00
Anastasiia Pnevskaia
8f05bab594 PartialShape -> str methods alignment (MO, ov::core). (#13613)
* Added PartialShape from str constructor, added to_string() method.

* Small corrections.

* Moved shape parsing to PartialShape and Dimension classes.

* Fixed errors.

* Added tests for shapes with comma separator.

* Fixed tests.

* Test fixed.

* Fixed test.

* Fixed tests.

* Small fix.

* Removed usage of depricated method.

* Fix in MO IR reader.

* Tests fixed.

* Fix in MO IR reader.

* Test fixed.

* Shape class alignment.

* Code fixes.

* Code fixes.

* Used unnamed namespace.

* Undo change of Shape attribute adapter.

* Undo change of Shape attribute adapter.

* Removed unnecessary includes.

* Removed unnecessary code.

* Test fixed.

* Fix in MO IR reader.

* Moved check_all_digits() to ov::util.

* Moved check_all_digits() to src/core/src/.

* Clang format.

* Apply suggestions from code review

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

* Removed dimension_util file.

* Removed wrong change.

* Removed extra spaces from string representation of Shape.

* Test fixed.

* Added support of comma separator for value. Updated help.

* Returned old format shape serializing.

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-11-18 14:38:11 +04:00
Irina Efode
a1c9043b01 [CONFORMANCE] Fix Conformance runner -> Call Serialize (#14077) 2022-11-18 11:17:52 +01:00
Yuan Hu
ee47ffbab6 [CPU] Fixed creating a descriptor for a dilated convolution forward propagation primitive (#12276) 2022-11-18 14:17:02 +04:00
Tomasz Dołbniak
5ff0f5d84c Unique-10 reference implementation (#13945)
* Basic Unique impl

* Shape inference tests

* More type prop tests

* Dynamic input tests

* Visitor tests

* Code formatting

* Minor corrections

* Modern c++ trick to make MSVC happy

* Refactor

* Code review

* More tests with dynamic shapes

* Op check test for Unique

* Well, a whitespace

* Different way of out shape calculation

* Spec

* Axis values constraint in the docs

* Zero-dim handling

* opset10_dump test adjustment

* 0D implementation and some test infra adjustments

* More coverage for scalar inputs

* type dependent test case generators

* A working version for 1D with all outputs

* Tensor shape calculation helper

* 1D handling with sorted mode included

* Handling of no-axis cases

* Some tests for no-axis case

* Unique's evaluate method

* A working fallback for the CPU plugin

* evaluate() removal

* Corrected shape inference

* More type prop fixes

* Unified axis extraction helpers

* Cleanup and preparation for slices processing

* Slice descriptor struct

* Static shapes generation with axis

* N-D solution with axis handling

* Slices comparison impl

* Fix Windows compilation errors

* Apply defaulting principles

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
2022-11-18 10:12:09 +01:00
Min, Byungil
bc90ed740f [GPU] Modify perferred format of Reduce (#13977)
+ Do not select a planar format if keep_dims is false and blocked axis is reduced.

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-11-18 17:17:57 +09:00
guozhong wang
711feac6d8 disable SetPropertyOverwriteTestNoThrow for MULTI and AUTO (#14079) 2022-11-18 11:54:03 +04:00
Sergey Shlyapnikov
be277ab977 [GPU] Move device memory allocation from preprocessing stage to runtime for usm memory type (#13697)
* [GPU] Move device memory allocation from preprocessing stage to runtime to fix incorrect behaviour in case of tensor swapping

* [GPU] Apply review comments

* Replace source of dynamic layout cheking
2022-11-17 21:49:28 +03:00
Ilya Lavrenov
3c8578fd5b Check debian packages buil (#14075) 2022-11-17 22:09:31 +04:00
Xuejun Zhai
0bc67ce1a7 [C API][DOC][PPP] Extend user documentation for new preproprocess api (#14008)
* [C API][DOC] correct the doxy group for ppp

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

* [C API][DOC] improve the C API doc with new PPP interface

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

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-11-17 19:23:08 +03:00
Paul Youngsoo Ahn
094db2b3ae [GPU] Fix cl kernel hang issue when x_block_size is 1 at the depthwise convolution(#14037) (#14037) 2022-11-17 19:11:56 +04:00
Liubov Talamanova
8d360ea3e6 [POT] Keep original out names in statistics collection (#14042) 2022-11-17 17:36:14 +04:00
Smirnova Maria
5cf6ceaf83 Fix db push for stresstest and timetests (#13964)
* Fix db push

* Fix log info for new data

* Check if file exists

* Remove _id field

* Add error message print
2022-11-17 12:52:21 +01:00
Ilya Lavrenov
0a08cfe2d6 Fixed post-commit on MacOS (#14040)
* Fixed post-commit on MacOS

* Removed unused function
2022-11-17 15:36:19 +04:00
Chenhu Wang
ade90b2043 [CPU] MVN nspc kernel optimization (#13268) 2022-11-17 15:31:08 +04:00
Ilya Churaev
807279276b Removed PKGCONFIG_OpenVINO_REQUIRES_PRIVATE (#14033)
* Removed PKGCONFIG_OpenVINO_REQUIRES_PRIVATE

* Removed redundant call

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-17 12:40:33 +03:00
Ivan Tikhonov
5c0225d358 Enable conversions to LSTM/GRU/RNN Sequence in MOC (#13470)
* Enable SequenceFusion, TensorIteratorToSequence, GRUCellFusion transformation in MOC, the transformations have been deleted from plugin pipelines

* clean-up: delete augru transformation header

* Temporary disabled TensorIterator IR reader tests

* temporary disable tests, it's not TI issue, usqueeze doesn't have reference impl for fp64 and bf16

* Update ConvertTensorItearatorToSequence transformations: add Unsqueeze to pattern

* Codestyle

* Specify negative values for LSTM/GRU/RNN Sequence ops

* fix conflicts with master branch

* Insert ShapeOf subgraph in ConvertSequencesToTensorIterator transformation in case of dynamic input shape

* codestyle

* fix conflict with master branch

* fix onednn version

* Update low latency v2 to support GRU/RNN/LSTM Sequence ops, fix accuracy issue

* fix tensor names

* fix tensor name issue on gna

* fix transformation tests, fix copying rt_info in the transformation

* fix warning, enable bf16, f64 ti tests

* codestyle

* fix functional tests

* EliminateDuplicateTIInputs transformation, fix copy_with_new_inputs method of TI op

* move EliminateDuplicateTIInputs transformation

* codestyle
2022-11-17 13:27:20 +04:00
Sun Xiaoxia
0cab188059 fix num_cores is all threads with numactl command on two sockets platform (#13487) 2022-11-17 13:11:18 +04:00
Wang, Yang
678b90a661 [AUTO] Update property setting rules (#13848)
* [AUTO] update property setting logic.

* Update core::set_property() logic to only support primary property for AUTO and MULTI.
* Separate AUTO and MULTI supported properties.

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

* Add test case.

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

* 1. revert the changes for ie core.
2. Enable AUTO/MULTI only accepting its own properties.
3. Enable AUTO/MULTI accepting device properties passed from loadnetwork().

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

* Revert "[AUTO]Update the incorrect config test for Myriad (#13271)"

This reverts commit 0552d98802.

* MULTI only accepts its own properties that is same as AUTO currently.

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

* Add test cases for AUTO/MULTI property test.

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

* Update to enable MULTI supporting hw primary property setting throw the compile_model().

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

* Remove the added test case for setting secondary property through set_property().

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

* Update.

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

* 1. For AUTO/MULTI, property setting will be passed via core::compile_model() instead of core::set_property().
2. update the logic to infer precision setting that will transform into secondary property setting to each hw device.

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

* Update.

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

* set default value for nstreams when -d AUTO/MULTI and no nstreams setting from command line.

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

* Update code format.

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

* Enable BA to support if -d AUTO:MULTI,xxx/MULTI:AUTO,xxx. while AUTO Plugin need to update the logic of generating supported config list to virtual device.

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>

* move device configuration handling outside form function main.

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

* Revert "move device configuration handling outside form function main."

This reverts commit ef77bfc602.

* 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.

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

* Setting property performance hint to 'THROUGHPUT' and passing to executable network if no setting for of AUTO/MULTI.

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>
2022-11-17 16:38:47 +08:00
Oleg Pipikin
7c4b7355e6 Delete serialization tests from ieFuncTests (#13804)
* Delete serialization tests from ieFuncTests

* Extend visitor tests to improve coverage

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-17 11:48:45 +04:00
Evgenya Stepyreva
7d670c5e5f Restore quantized Group Convolution weights (#13659)
* Introduce allow_fold

* Update ShapeOfConstFolding.py

* Update ShapeOfConstFolding.py

* Update ShapeOfConstFolding.py
2022-11-17 11:12:55 +04:00
Chen Xu
e7c8d6fe63 [CPU] Fix incorrect offset to rsp in BF16 DW Convolution kernel (#13669) 2022-11-17 10:21:47 +04:00
Zhang Yi
7860d3bf78 [CPU] Int8 Interaction node support (#13486) 2022-11-17 10:13:16 +04:00
Ilya Lavrenov
c51ee524ad Tuned wheels build (#14038) 2022-11-17 00:03:34 +04:00
Ruslan Nugmanov
af7adf2d46 removes frontend lib paths (#14030) 2022-11-16 19:51:05 +04:00
Przemyslaw Wysocki
4cb0c73cef [PyOV] Update supported Python versions on PyPI pages (#13151) 2022-11-16 13:23:50 +01:00
Ilya Churaev
a410157b67 Fixed macOS stress_tests build with PKG config (#14004) 2022-11-16 15:27:01 +04:00
Eddy Kim
8a2b1c9cf9 updated memory accessor (#14020) 2022-11-16 14:07:26 +03:00
Ilya Churaev
6da7ee3431 Updated documentation for serialize model (#14022) 2022-11-16 14:50:59 +04:00
Irina Efode
47b6155013 [IE TESTS -> CONFORMANCE] Remove skipps from ie_plugin beh tests (#13609)
* [CIE TESTS -> CONFORMANCE] Remove skipps from ie_plugin beh tests

* core_integration

* test

* fix

* dd

* Skipps

* skipps

* Update skip_tests_config.cpp

* try
2022-11-16 14:31:18 +04:00
Mateusz Tabaka
e752ff753b Simplify dequantization sub-graph detection (#13906)
DisableConvertConstantFoldingOnConstPath was renamed to MarkDequantizationSubgraph
and modified such that it also marks Subtract and Multiply from dequantization subgraph
with 'DequantizationNode' attribute.

Ticket: 65489

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-11-16 14:30:24 +04:00
Anastasia Kuporosova
0f647e6b75 Fix finding onetbb lib on windows (#14018) 2022-11-16 14:13:37 +04:00
Przemyslaw Wysocki
79d92b7d8d [PyOV] Bump pyyaml (#14010) 2022-11-16 13:10:20 +03:00
Anastasiia Pnevskaia
75ba2c9fd7 Replaced openvino.offline_transformations with openvino._offline_transformations. (#13989) 2022-11-16 14:02:13 +04:00
Ethan
875a4b6ed6 Paddle_OP_Not_euqal (#12009)
* add paddle op : not_equal

* update not_euqal test case

* update not_euqal test case

* Update elementwise_ops.cpp

fix clang-format error.

* Update elementwise_ops.cpp

fix clang format error

* Update src/frontends/paddle/src/op/elementwise_ops.cpp

* Delete op_fuzzy.cpp

* Update op_fuzzy.cpp

* Create generate_not_equal.py

* Delete generate_not_equal.py

Co-authored-by: cecilia peng <cecilia.peng@intel.com>
Co-authored-by: mei, yang <yang.mei@intel.com>
2022-11-16 13:24:45 +04:00
Irina Efode
473269a833 [CONFORMANCE] Improve Conformance IR hash algorythm (#14011)
* [CONFORMANCE] Improve Conformance IR hash algorythm

* Update rename_conformance_ir.py
2022-11-16 12:16:52 +04:00
Irina Efode
de57595b35 [CONFORMANCE] Fix filters for Opset10 (#14015) 2022-11-16 12:13:41 +04:00
hyunback kim
8c5f353bf8 [GPU] Enable the functional issued models (#13933)
* [GPU] Add weight format to enable models
   Add g_os_zy_is_x_osv8_isv2, g_os_zyx_is_osv8_isv2, g_os_is_zyx_isa8_osv8_isv2
   These formats are required from brain-tumor-segmentation-0001/mxnet/fp16/bs1,
   resnext-101-3d/onnx/fp16/bs1.
* [GPU] Fix the issue, Can't find reduce output later in OutputsDataMap.
   The layer name of Reduce converted from AvgPool is different originals.
   It caused an exception, so use original name.
   We have AvgPool to Reduce conversion to improve Perf in dGPU.
   -target model
      action-recognition-0001-encoder, driver-action-recognition-adas-0002-encoder
* [GPU] Remove bfzyx format in oneDNN FC supported format
   Current clDNN FC supports 4dims NOT 5dims, and many related logics are implemented from this, likes 
   calc_output_layout.
   For this reason, oneDNN FC 5dims occur the functional issue in resnext-3/onnx/FP16/BS1
* [GPU] Fix to unsupported 6dims block-format in gather cals_output_layout.
   It's failed issue in cocosnet/onnx/FP16/BS1

Signed-off-by: hyunback <hyunback.kim@intel.com>
2022-11-16 17:06:36 +09:00
Wang, Yang
9bc0dad7be [AUTO] Update ov::set_property function (#13738)
* ov::set_property should not set HW plugin when device is AUTO or MULTI plugin.

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

* core set_property() didn't support setting ov::device::propreties for HW device.

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

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-11-16 11:15:24 +04:00
Ilya Lavrenov
90427b019e Unbrick TF FE (#13779) 2022-11-16 10:53:10 +04:00
Mateusz Tabaka
985bdc1138 Enable SmartReshape in offline transformations (#13510)
Ticket: 79534
2022-11-16 07:37:15 +01:00
Taylor Yeonbok Lee
58f8f1a70e Fix memory realloc for fake alignment (#13996) 2022-11-16 09:04:57 +03:00
Vladimir Paramuzov
21ead7cbc6 [GPU] Dynamic kernels infra and Permute ref kernel (#13661) 2022-11-16 09:29:12 +04:00
Anastasiia Pnevskaia
de1a08c076 Update OMZ submodule. (#14014) 2022-11-15 23:43:32 -05:00
River Li
0e76224199 [Windows] solve warning C4267 and C4244 issue for template plugin test cases (#13736)
* [Windows] solve warning C4267 and C4244 issue for template plugin

* Solve or WA C4267 and C4244 caused by system header files(numeric and utility)
2022-11-16 07:46:46 +04:00
Vladislav Golubev
0f531ffa2d openvino_gapi_preproc_s including temporary disabled (#13982) 2022-11-16 02:23:08 +04:00
Tingqian Li
80971ae8e8 [CPU] Optimize fused FQ/Eltwise nodes to use less binary postOps (#13502) 2022-11-16 00:26:02 +03:00
Ivan Tikhonov
8d3b382ca9 fix DynamicStitch tests (#14005) 2022-11-16 00:24:38 +03:00
Maciej Kwapulinski
57293a6833 [GNA] race around GNA memory queues' destruction removed (#13905)
* race around gna memory queues' destruction removed

* GNA device gets closed at GNAPlugin destructor
2022-11-15 23:25:35 +03:00
Ilya Lavrenov
20419905c3 Fixed compilation with gcc-12 (#13983)
* Fixed compilation with gcc-12

* Made python to be a mandatory dependency for gpu plugin

* Apply suggestions from code review
2022-11-15 21:59:27 +03:00
Vladimir Paramuzov
fd961d6e56 [GPU] Allow devices which don't support OOO queue (#13900) 2022-11-15 17:51:09 +04:00
Vladislav Golubev
80ce00aa7c [Snippets] BF16 support enabled (#13859) 2022-11-15 17:40:45 +04:00
Ilya Churaev
d337f6b16f Add get available opsets (#13920)
* Added doxygen comment for opset10

* Added get_available_opsets method to API

* Fixed build

* Fixed build and typo

* Use constant map

* Removed defines from global opset

* Added const to map
2022-11-15 16:35:09 +03:00
Georgy Krivoruchko
8be7b791d3 Test Runner added separation of tests (#13684) 2022-11-15 16:53:32 +04:00
Denis Orlov
a6a63671f3 [GNA] Add the batch notice for GRUCell in docs (#14009) 2022-11-15 11:09:40 +00:00
Vladimir Paramuzov
d48ec0c855 [GPU] Added network input shape to perf data (#13628) 2022-11-15 14:49:15 +04:00
Irina Efode
ed2d34fc6b [CONFORMANCE] FIX OpImplCheck (#13787) 2022-11-15 13:48:48 +03:00
yanlan song
80a07375bf Bell/hetero execution devices (#13924)
* initial commit

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

* add cases

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

* apply review comments

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

* enable app

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

* clang

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

* apply review comments

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

* enable cpu conditionally

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

* enable cpu tests

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

Signed-off-by: fishbell <bell.song@intel.com>
2022-11-15 09:53:18 +00:00
Katarzyna Mitrus
49b8a73c46 [ONNX] ConstantOfShape with empty tensor input (#13994)
* Tests for ConstantOfShape scalar

* Enable onnx ConstantOfShape scalar
2022-11-15 10:45:53 +01:00
Oleg Pipikin
1cc8550512 Move conditional compilation tests from ieFuncTests to ov_conditional_complilation_tests (#13899)
* Move CondCompl tests to new executable. Add it to CI

* Fix code style

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-15 13:29:19 +04:00
Felix Dohyun Kim
f9e0020677 [GPU] Unittest fix for discrete GPU (#13978) 2022-11-15 18:14:42 +09:00
Pavel Esir
34f16bf749 [MO] turn on bom_tests (#13721)
* turn on bom_tests

* fixed root directories to search

* leftovers fix

* removed requirements from package_BOM.txt; corrected error messages to install via pip

* removed extract_release_version.py from package_BOM.txt, added requirements files to skip

* removed redundant commented line

* mentioned CustomLayersMapping.xml.example in docs

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-11-15 12:38:59 +04:00
Maciej Smyk
11338ad076 tf_openvino (#13786) 2022-11-15 08:02:54 +01:00
Roman Kazantsev
83ee6aec15 [TF FE] Reimplement NonMaxSuppression translator and test in the pre-commit (#13974)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-15 10:58:47 +04:00
Sebastian Golebiewski
c9a44dcb9c DOCS: Install raspbian updates - for master (#13992)
* update raspbian installation

* fix formatting

* update

* update unlink command

* update the architecture

* Update installing-openvino-raspbian.md

* Apply suggestions from code review

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-11-15 13:34:38 +08:00
Andrew Kwangwoong Park
64498b67a2 [GPU] Baseline program_node and kernel_impl_params with output layouts for multiple outputs support (#13761)
* Intial update for NMS mutiple outputs support

- update get_depedencies_new primitive overriding func for nms and reorder
- primitve API update for nms and reorder
- add non_max_suppression_base test TC for multiple outputs
- update non_max_suppression cpu impl for backward compatibility
- update dependencies_new for remove_redundant_reorders opt pass

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

* Update program_node and kernel_impl_params for multiple outputs supports

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

* Fix runtime error and failed TC for multiple outputs support

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

* Fix conflicts and newly update

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

* TopK shape infer

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

* Implement TopK gpuFunctests for dynamic shape and multiple outputs

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

* Fix conflicts

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

* minor API fix

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

* NMS shape infer

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

* Implement Nms gpuFunctests for dynamic shape and multiple outputs

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

* move gpuFunctests and fix conflict

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

* Fix issues for Nms gpuFunctests

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

* Fix conflicts and code cleanup

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

* apply clang-format

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

* Apply change to onednn primitive_impl

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

* Fix CI issues

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

* Apply code review

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

* updates for ngraph shape infer

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

* Fix conflicts

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

* Apply code review

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

* Failing case

* Apply code review

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

Signed-off-by: Andrew Park <andrew.park@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-11-15 08:31:16 +03:00
Daria Mityagina
d27baa8811 [MyriadX][CVS-89635] - ovtf data->_producerEdge != nullptr - fix (#13973)
* [MyriadX][CVS-89635] - ovtf data->_producerEdge != nullptr - fix

* [MyriadX][CVS-89635] - ovtf data->_producerEdge != nullptr - trying not to break tests

* [MyriadX][CVS-89635] - ovtf data->_producerEdge != nullptr - exit them all + test
2022-11-15 07:45:22 +03:00
Tomasz Jankowski
c5eb25d3ea Transformation component transition to OV namespace (phase 2) (#13557) 2022-11-15 04:40:48 +03:00
Roman Kazantsev
d6dc40bf34 [TF FE] Refactor translator for L2Loss and test in the pre-commit (#13972)
* [TF FE] Refactor translator for L2Loss and test in the pre-commit

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

* Use Power for square operation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-15 03:47:56 +03:00
Xiake Sun
5ac06838cd Fix pcsort message format to be consistent cross language (#13936) 2022-11-14 14:26:31 +01:00
Piotr Krzemiński
d951623027 [BENCHMARK_APP/PYTHON/CPP] Align benchmark_app output across languages (#12814)
* [PYTHON] Pipeline transfer

* [PYTHON] Align python benchmark

* [PYTHON] Align last step

* [PYTHON] Fix innacuracies of the last step - median

* [PYTHON/CPP] Add Core::get_version method to python API, refactor Ben benchmark to print version with this func

* [PYTHON] Remove get_version_string from API

* [PYTHON/CPP] Align output for model input/output info

* [PYTHON/CPP] Step 4,6 alignment of outputs, step 8 dumps all info stored in config parameters

* [CPP] Fix a bug causing nstreams parameter to never be set to AUTO in CPP benchmark_app

* [CPP] Fix clang format errors

* [CPP] Modify print order and data output for 8th step

* [PYTHON] Add verification checks from C++, modify set_thoughtput_streams to match documentation

* [CPP] Revert changes to C++ benchmark_app

* [CPP] Remove additional spacebar

* Update submodules versions on remote

* Update module from master branch

* Redownload submodules from master and override changes from commit

* [PYTHON] Remove unneccesary parse_status from validation function

* [PYTHON] Check for HINT in map, fix circular import

* [PYTHON] Remove artifacts from commit, fix args.perf_hint set to '' instead to 'none'

* [PYTHON] Reverse changes to perf hint, add key in map check, fix validation function throwing error on set hint

* [PYTHON] Fix linter

* [PYTHON] Remove linter spacebar

* [CPP] Fix wait_all exception throw

* [CPP/PYTHON] Clean artifacts and unwanted changes from work process

* [PYTHON] Fix artifacts from merge, clean submodule update

* [C++ CPU] Fix device name string by removing padding NULL characters from the back

* [CPP] Fix ba infer_request_wrap in other throw-catch clauses

* [PYTHON/CPP] Fix missing latencies in final step for shape group, fix minor misaligned messages, add missing report parameter create infer requests time

* [CPP] Clang fix formatting

* [CPP] Reverse clang fix format on plugin.cpp

* [PYTHON/CPP] Fix C++ progressbar printing endl when disabled, fix rounding in python creating infer request message

* [CPP] Fix foramtiing error

* [PYTHON/C++] Refactor network to model based on naming conventions, provide fresh README output example

* [PYTHON/C++] Add example output to C++ README, remove unnecessary device loop

* [BENCHMARK_APP/C++] Fix artifact from refactoring, remove try-catch clause

* Update samples/cpp/benchmark_app/benchmark_app.hpp

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

* Update samples/cpp/benchmark_app/main.cpp

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

* Update tools/benchmark_tool/openvino/tools/benchmark/main.py

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

* Update samples/cpp/benchmark_app/main.cpp

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

* [CPP] Fix clang errors

* [CPP/PLUGIN Reverse modification to extract to separate task

* Update tools/benchmark_tool/openvino/tools/benchmark/main.py

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

* Update tools/benchmark_tool/openvino/tools/benchmark/parameters.py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* Update tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* Update tools/benchmark_tool/openvino/tools/benchmark/main.py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* [PYTHON/C++/BENCHMARK_APP] Fix language inconsistencies, remove unnecessary checks

* Update pyopenvino.cpp

* [CPP/BENCHMARK_APP] Remove unnecessary try-catch, fix linter errors

* [PYTHON/CPP/BENCHMARK_APP] Revert changes to Core, align version prints usin only provided methods

* [DOCS/BENCHMARK_APP] Update README with proper model examples

* Update README.md

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
2022-11-14 14:10:36 +01:00
Xuejun Zhai
cda2df8736 [CORE][Unite Test][Warning Fix] core unite test warning (#13757)
* [CORE][Unite test] Fix conflicts

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

* [CORE][Unite Test] clear cmake

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

Signed-off-by: Xuejun Zhai <Xuejun.Zhai@intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-14 12:50:29 +00:00
Ilya Churaev
9d41136457 Fixed Android build (#13979)
* Fixed Android build

* Fixed Android
2022-11-14 16:17:21 +04:00
Georgy Krivoruchko
951be58dc3 Extended coverage of TensorFlow layer tests (#13547) 2022-11-14 15:50:43 +04:00
Katarzyna Mitrus
9f65092694 Use broadcast_merge_into for Broadcast-3 Bidirectional mode (#13940)
* Broadcast type_prop tests for param target shape

* Improve broadcast shape_infer with target shape as param

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-11-14 10:57:35 +00:00
Marcin Kusmierski
4f6032cc7a Revert "[GNA] Create new tests for PWL approximation validation (#13515)" (#13946)
This reverts commit 25ad4a6728.
2022-11-14 10:18:55 +00:00
Roman Kazantsev
3b7a5c691d [TF FE] Fix TopK translator and add test to the pre-commit (#13971)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-14 14:02:12 +04:00
Anastasia Kuporosova
bbd221e6d3 [PyOV] Fix compatibility if-ops test (#13952) 2022-11-14 10:51:27 +01:00
Vladimir Paramuzov
fcef6220b0 [GPU] Refactor primitive_impl::create methods and kernel selector (#13748)
* [GPU] Refactor impls factory method

* [GPU] Return unique_ptr from impls factory

* [GPU] implemented get_kernel_params for most of ocl impls

* [GPU] Common create impl

* [GPU] Fixes after rebase

* [GPU] Codestyle fixes

* [GPU] handle optimized out prims in common create

* [GPU] Fix exception type in region yolo tests

* [GPU] Resolve ambiguity of make_unique on windows

* [GPU] Multiclass NMS

* [GPU] Fixes after rebase
2022-11-14 13:38:25 +04:00
Ilya Lavrenov
55a45a4d1a Adjusted dependencies (#13942)
* Adjusted dependencies

* Fixed paths on Windows

* Move dependencies close to usage

* Updates
2022-11-14 12:57:27 +04:00
Roman Lyamin
fce64834d2 [GPU] PReLU broadcast 1d slope case fix (#13951) 2022-11-14 11:03:10 +04:00
Vladimir Paramuzov
ce257848ab [GPU] Added fp precision support check and fallback to f32 if needed (#13939) 2022-11-14 10:33:53 +04:00
Vladimir Paramuzov
e78a9e93c2 [GPU] Fixed device name in query network result (#13915) 2022-11-14 09:09:32 +04:00
Xuejun Zhai
2faddf61bf [C API][Preprocess] add more preprocess api (#13770)
* [C API][Preprocess API] Add api reverse_channels(), convert_layout(), crop(), scale(), mean()

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

* [C API][Preprocess API] Add unite test case for api reverse_channels(), convert_layout(), crop(), scale(), mean()

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

* [C API][Preprocess API] code format api reverse_channels(), convert_layout(), crop(), scale(), mean()

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

* [C API][Preprocess API] code format api reverse_channels(), convert_layout(), crop(), scale(), mean()

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

* [C API][Preprocess API] code format

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

* [C API][PPP Test Case] clarify code with TEST_F

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

* [C API][PPP Test Case] clarify code

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

* [C API][PPP Test Case] remove space

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

* [C API][PPP Test Case] fix code format issue

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

* [C API][PPP Test Case] fix code format issue

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

* [C API][PPP Test Case] fix code format issue

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

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-11-14 08:07:56 +04:00
Eddy Kim
f488e6cc49 [GPU] Graph serialization for GPU (#13801)
* gpu graph serialization

* fix to rebase

* onednn_gpu.patch for serialization

* git apply --verbode to --quiet

* functional tests

* removed referece of mas_unpooling.hpp

* git apply --verbose

* add no args ctor for proposal_impl

* changed kernel_cache save/load error messages

* gpu model cacning control env. variable

* fixed nonnull warning

* impl_params are added to save and load

* changed a way to use kernel_impl_params in save and load

* get_arguments_by_idx is added

* setenv is disabled in windows

* added missed part for onednn

* code refactoring based on code review

* fixed to use get_node_output_layout()

* OV_GPU_MODEL_CACHING is changed to OV_GPU_CACHE_MODEL

* reference to node and primitive are removed

* fixed hash of enum class

* restored CanShareContextWith

* serialization of intermediate memory

* fix to rebase

* multiclass_nms serialization

* caching_properties added
2022-11-13 16:39:45 -08:00
Ilya Churaev
e4b21aa1ff Port cc 10126 (#13955)
* Add the second step of CC

* Fixed linux path
2022-11-14 00:34:02 +04:00
Ilya Lavrenov
9ebbfbbed0 Added i686 arch support for python wheels (#13595) 2022-11-13 23:38:23 +04:00
Jan Iwaszkiewicz
2a9ae52ec1 [PyOV] Bump pygments version (#13947) 2022-11-13 14:09:50 +01:00
Sun Xiaoxia
966548d061 Xiaoxia/Custom setting nstreams with hyper thread enabled on Hybrid-aware P/E-core (#13836)
* 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

* add custom nstreams setting, remove mutable qualifier

* fix code style issue

* fix some issues according to comments

* modify UpdateHybridCustomThreads

* fix code style issue

* modify comments

* use logic core in phase 2

* modify steams threads setting method

* add custom setting nstreams nthreads

* modify comments

* fix code style issue

* fix threads_per_stream_big is wrong in the some ADL machine which has 6 pcore

* add one condition that custom set nthreads but not set nstreams

* remove the limit to nstreams

* remove the feature in branch p_e_core_phase2_logic

* add comments

* rename num_small_cores to num_small_cores_phys

* fix code style issue

* fix thread number is wrong in corner case on 6Pcore and 10Pcore condition

* fix some condition which nstreams<2

* add check for config._threads_per_stream_big

Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
2022-11-12 20:55:54 +03:00
Liubov Talamanova
bb00a9e664 [POT] Enable quantization inside subgraphs for CPU (#12776)
* Enable LSTMCell quantization

* Refactored unify function

* reverse dict

* Fix docs

* Add LSTM and GRU sequences

* Change scales to unified_scales in hw configs

* Fix inplace statistics

* Shift axis for subgraphs

* Changed HW config

* Update HW configs for tests

* Not quantize GRU ops with linear_before_reset: true

* Enable tests

* Support models with scalar input

* Fix tests

* return back submodules

* Fix tests

* Update GPU HW config

* Fix comments

* Fix axis
2022-11-12 07:54:29 +04:00
Roman Lyamin
5eae673220 [MO TESTS] PReLU tests fix (#13960) 2022-11-11 23:39:17 +04:00
Ivan Tikhonov
3ec40c490b Fix copying of tensor names in OVTF TransposeSinking transformation (#13916)
* copy tensor names to transpose

* enable TransposeSinking, codestyle

* fix layer tests

* fix segfault

* delete transposes in catch block
2022-11-11 23:31:58 +04:00
Ilya Lavrenov
d1c1680a81 Fixed openvino-dev version (#13962) 2022-11-11 22:43:06 +04:00
Vladislav Golubev
cec772f2c0 [CPU] ModelCaching: added plugin specific config properties serialization (#13593) 2022-11-11 17:27:22 +00:00
Pawel Raasz
cb067de597 Review opset1 variadic split for shape inference aspects (#13894)
* Review variadic split shape_infer template
- extend static shape tests
- add default ctor tests

* Use OV_EXPECT_THROW in exception tests

* Review evaluate upper, lower and label propagation

* Fix usage broadcast in bound tests

* VariadicSplit bound check in evaluate lower,upper

* Clean-up tests leftovers
2022-11-11 15:29:42 +04:00
Zhang Yi
b8ada02cba [CPU] Optimize concat node for dynamic shapes (#13019) 2022-11-11 13:46:32 +04:00
Jan Iwaszkiewicz
b44eb83551 [PyOV] Fix typo in filename generator (#13948) 2022-11-11 10:11:13 +01:00
Nikita Malinin
8e9a6d3457 [POT] BC update for transformers (#13869)
* Update node_utils

* HBC update

* Updated HBC & added test

* Apply comments
2022-11-11 11:33:11 +04:00
Xiake Sun
7ab81d0950 Add missing opset5 header for LSTMSequence in LPT (#13953) 2022-11-11 09:43:31 +03:00
OlehKravchyshyn
11d020ea06 [GPU] adjusted LWS for batch-blocked format (#13764)
LWS is adjusted to make items are fetched along batch axes in a workgroup if a layout has bsv32 or bsv16
2022-11-11 10:37:34 +04:00
Xuejun Zhai
5f1ce082ea [C API][Unite Test] Add more tests to achieve code coverage target (#13885)
* [C API][Unite Test] Add more unite test case for C API (functional level)

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

* [C API][Unite Test] remove unused function

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

* [C API][Unite Test] fix function code coverage issue

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

* [C API][TEST CASE] fix error

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

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-11-11 09:20:05 +04:00
Oleksii Khovan
71c23489c6 [GPU] Blocked layouts support for ExperimentalDetectronGenerateProposalsSingleImage (#12126)
* Blocked layouts support for ExperimentalDetectronGenerateProposalsSingleImage

* fix RHEL 8.2 build

* reduce number of tests

* Added bs_fs_yx_bsv16_fsv32 format
2022-11-10 18:03:39 -08:00
Haiqi Pan
28549a77bf Fixed warnings for Auto plugin (#13810)
* fix warnings

* remove MSVC

* Update src/plugins/auto/auto_executable_network.cpp

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

* Update src/plugins/auto/auto_schedule.cpp

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

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-11-11 04:56:54 +03:00
Jade Cho
f2d5c0cb5d [GPU] Fix a bug of reorder input (#13840) 2022-11-10 17:30:30 -08:00
Piotr Krzemiński
054eea3c5a [SAMPLES/PYTHON] Fix ACCESS_VIOLATION error when importing cv2 (#13443)
* [PYTHON] CV2 module required only when loading images

* [PYTHON] Update tools/benchmark_tool/openvino/tools/benchmark/utils/inputs_filling.py

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

* [PYTHON] Make CV import not global

* [PYTHON] Update format of inputs_filling.py

* [PYTHON] Fix missing newline

* Update tools/benchmark_tool/openvino/tools/benchmark/utils/inputs_filling.py

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

* [BENCHMARK_APP/PYTHON] Introduce exception when module is installed but fails to import

* [SAMPLES/PYTHON] Sporadic access violation fix through checking whether module was cached

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-11-11 04:10:20 +03:00
OlehKravchyshyn
3443079a7b [GPU] gemm batch format support (#12474) 2022-11-10 16:01:38 -08:00
Tomasz Jankowski
5eef0298d9 Transformation component transition to OV namespace (phase 1) (#13469)
* Move GeluFusion into ov namespace

It required to move utils as well.

* Move AddFakeQuantizeFusion into ov namespace

* Move AlignEltwiseInputRanks into ov namespace

* Move BatchToSpaceFusion into ov namespace

* Move BinarizeWeights into ov namespace

* Move BroadcastElementwiseFusion into ov namespace

* Move ClampFusion into ov namespace

* Move Concats and Eliminations into ov namespace

* Move many passes and such  into ov namespace

* Move many passes and such into ov namespace

ngraph_ops
op_conversions

* Move control_flow into ov namespace

* Apply style

* Move smart_reshape into ov namespace

* Move opset_conversions into ov namespace

* Move low_precision into ov namespace

* Apply style

* Move fused_names into ov namespace

* Add missing aliases

* Move few passes into ov namespace

ConvertPrecision
FixRtInfo
InitNodeInfo

* Move CommonOptimizations into ov namespace

* Fix convert_precision conflicting namespaces

* Apply code style

* ov-nize Type Relaxed definitions

* Remove useless aliases

bulkly added by script

* Revert opsets

* Address review comments

* Remove NGRAPH_RTTI

* Clean up remains of yet another implicit inclusion

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
2022-11-11 02:52:19 +03:00
Roman Lyamin
4dd75a1b8b [GPU] Added Pad/Interpolate dynamic support and MVN dynamic tests (#13874)
* [GPU] Pad dynamic

* [GPU] Added MVN dynamic tests

* [GPU] Interpolate dynamic
2022-11-10 15:33:45 -08:00
Egor Duplenskii
c1733b5542 [CPU][LPT] Support quantized RNN (LSTM and GRU algorithms) (#12981) 2022-11-10 23:48:51 +03:00
Anastasia Kuporosova
96d835244c [PyOV] Fix finding libs on windows (#13902)
* [PyOV] Fix finding libs on windows

* exclude install pkg dirs

* undo changes in setup.cfg

* change the logic
2022-11-10 21:32:47 +01:00
Ilya Churaev
63e24773ee Added documentation for get_layout API (#13937)
* Added documentation for get_layout API

* Fixed typo
2022-11-10 18:10:07 +03:00
Oleksii Khovan
cf34d48e53 [GPU] MulticlassNMS (#13370)
* Single-layer test:
  - support both v8 and v9 in shared test;
  - add test for GPU.

* Transformation:
  - convert both v8 and v9 to internal operation;
  - add transformation to GPU pipeline.

* GPU primitive and CreateOp() for MulticlassNMS operation

* kernel stuff

* add unittests

* Added bs_fs_yx_bsv16_fsv32 format

* add int64 support

Co-authored-by: Mykhailo Hnap <mhnap@lohika.com>
2022-11-10 23:59:13 +09:00
Smirnova Maria
8f97ee55fc Modify time tests so that data can be pushed to OVVP (#13636)
* Set db_api_handler for pushing to new database in timetests

* Change function of pushing to db.

Co-authored-by: Daria Ilina <daria.krupnova@intel.com>
2022-11-10 15:17:39 +01:00
Anastasia Kuporosova
0942c6617b [PyOV] Add function which create unique names for test files (#13929) 2022-11-10 17:04:25 +03:00
Jan Iwaszkiewicz
d6fe686237 [PyOV] Bump version of pytest for compatibility API (#13932) 2022-11-10 16:55:42 +03:00
Marcin Kusmierski
25ad4a6728 [GNA] Create new tests for PWL approximation validation (#13515)
* added tests using new validation algorithm
* consolidated fp32eq usage by introducing is_fp_eq
* refactored float to int rounding methods
2022-11-10 11:32:19 +00:00
Andrey Churkin
dbb91c5e69 Minor changes to integrate AA algorithm into NNCF (#13765) 2022-11-10 13:17:50 +03:00
Roman Kazantsev
e2c320a455 [TF FE] Fix translator for Rank operation and test it (#13927)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-10 12:33:43 +03:00
Ilya Lavrenov
473bded2b2 Compile_tool is excluded from Debian / RPM (#13911)
* Compile_tool is excluded from Debian / RPM

* Removed warnings related to compile_tool

* Removed noarch for core-dev
2022-11-10 12:30:11 +04:00
Mingyu Kim
c478f7b266 Handle DT_UNKNOWN as DT_REG during file list-up (#13811)
* Handle DT_UNKNOWN as DT_REG during file list-up

Some filesystem does not return dt_type properly. (such as sshfs)
Without this fix, openvino fails to search frontend when mounted on
sshfs.

* style fix

* style fix
2022-11-10 12:21:45 +04:00
mdovbnia-lohika
1b2aff95a1 [GPU] Added blocked layouts support for roi_pooling operations (#12983)
* [GPU] Added unit tests for roi polling operations.

* [GPU] Added blocked layouts support for roi_pooling operations

* [GPU] Added single layer tests for roi polling operations.

* [GPU] Fix attach roi pooling impl, remov const from formats and types

* [GPU] Fix roi polling kernel, bilinear pooling operation

* Fix, whenever output_width and output_hight are equal to 1, which cause a dividing to 0.
* Fix, for proper calculation y and x.

Co-authored-by: Mykhailo Hnap <mhnap@lohika.com>
2022-11-09 22:37:12 -08:00
Taylor Yeonbok Lee
70cc27de53 [GPU] Fake alignment for fc kernel for improve dynamic shape perf improvement (#13887)
* Fake alignment infra + fake alignment for fc kernel for improve dynamic shape performance optimization

* Applied review

* Added unittest

* Removed unused function
2022-11-09 16:46:48 -08:00
Roman Kazantsev
aaefe0a256 [Common] Unique decomposition: fix the single element case (#13918)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-10 01:25:43 +03:00
Ilya Churaev
c7cd2645f4 Fix caching tests (#13928)
* Disabled set model

* Fixed sporadic fail
2022-11-09 22:55:27 +04:00
Sebastian Golebiewski
7d651a649f DOCS: Fixing a list in Model Optimizer Extensibility - for master (#13380)
A minor fix that creates a list of main transformations responsible for a layout change.
2022-11-09 17:39:06 +01:00
Mateusz Mikolajczyk
1c03be58ff [CORE] IsFinite, IsInf, IsNan reference implementation (#13621)
* Add reference implementation for Is ops

* FIx test

* Fix typo

* Remove deprecated

* Fix issues with API switch

* Force cast to float for float16/bfloat16 in ref

* Fix style

* Remove BWDCMP_RTTI

* Remove TensorVector helper check

* Remove evaluate functions

* Disable faling tests due to missing eval
2022-11-09 19:17:26 +03:00
Sebastian Golebiewski
5a50266dd7 DOCS: Fixing formatting in Multi Device (#13292) 2022-11-09 17:02:33 +01:00
Sebastian Golebiewski
95234490c2 Updating links in Model Optimization Guide (#13303)
Adding a link to Model Optimizer.

Porting:
https://github.com/openvinotoolkit/openvino/pull/13300
2022-11-09 16:59:07 +01:00
Sebastian Golebiewski
5941490d81 Fixing indentation in General Optimizations for master (#13305)
A minor fix that corrects indentation of snippets.

Porting:
https://github.com/openvinotoolkit/openvino/pull/13302
2022-11-09 16:54:04 +01:00
Maciej Smyk
3127c28a35 DOCS: Model Conversion Tutorials fix - Port to master (#13429) 2022-11-09 18:44:36 +03:00
Anastasia Kuporosova
e043dcbae7 fix markupsafe version (#13930) 2022-11-09 18:43:19 +04:00
Sebastian Golebiewski
f779755d39 DOCS: Language-agnostic version of 'Changing Input Shapes' - for master (#13814)
Removing the 'global' tabs and preparing a language-agnostic version of the article. Replacing png image with a scalable svg file. Proofreading the article.
2022-11-09 15:29:10 +01:00
Liubov Talamanova
848c09336e [POT] Add GPU HW config (#13896)
* [POT] Add GPU HW config

* Add note
2022-11-09 15:13:09 +04:00
Vladimir Paramuzov
e615962266 [GPU] Fixed bias fusion logic (#13845) 2022-11-09 13:24:05 +04:00
Ilya Churaev
9e9430e69a Fix sanitizer check (#12728)
* Fix sanitizer check

* Fixed check

* Disabled sign-compare warning

* Fixed core tests

* Fixed ieFuncTests

* Disable some CPU tests

* Additional fix for CPU plugin

* Update src/tests/functional/inference_engine/lp_transformations/disable_convert_on_const_path_transformation.cpp

Co-authored-by: Vladislav Golubev <vladislav.golubev@intel.com>

* Update src/tests/functional/inference_engine/lp_transformations/disable_convert_on_const_path_transformation.cpp

Co-authored-by: Vladislav Golubev <vladislav.golubev@intel.com>

* Fixed comment

* Disable warnings for windows

* Fixed build

* Fixed static build

* Fixed float16

Co-authored-by: Vladislav Golubev <vladislav.golubev@intel.com>
2022-11-09 12:17:22 +04:00
Ilya Churaev
22b69304e8 Disable stderr output in Release builds (#13666)
* Disable stderr output in Release builds

* Reverted TF FE changes

* Try to avoid ONNX issue

* Revert "Try to avoid ONNX issue"

This reverts commit 9c5bd7e7fa.

* Try to fix ONNX tests

* Revert "Try to fix ONNX tests"

This reverts commit b74f21baf6.

* Try to fix build

* Try to fix ONNX debug build
2022-11-09 12:16:58 +04:00
Alexandra Sidorova
fedcfa8eac [Snippets] [CPU] Fixed isSuitableChildForFusingMatMul for dynamic case (#13898) 2022-11-09 11:31:17 +04:00
Xuejun Zhai
23882408c4 [C API][DOC]add doc capi reference (#13886)
* [Test] Build doc for C API reperence

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

* [Test] Build doc for C API reperence add C path

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

* [Test] Build doc for C API reperence add C path

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

* [C API][DOC][DOXYGEN] refact the components of C API

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

* [DOC][API reference] remove useless code

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

* [C API][DOC] Modify format to generate api reference

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

* [DOC][API reference] fix doc build error

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

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2022-11-09 11:20:32 +04:00
Ilya Churaev
63bfeb7eba Enable linker warnings as error for Windows (#13696)
* Enable linker warnings as error for Windows

* Fisable some linker warnings

* Suppress warnings

* Fixed build

* Change if opset

* Try to fix some warnings

* Revert some changes

* Try to fix warning

* Define OpenVINO static library for static libraries
2022-11-09 11:19:36 +04:00
Ilya Churaev
9eb4878d01 Added doxygen comment for opset10 (#13919) 2022-11-09 10:41:59 +04:00
Kelvin Choi
bf8a2b6503 [GPU] Update Select Op to use ngraph shape infer (#13565) 2022-11-08 22:30:41 -08:00
Zhang Yi
46cf87f467 [CPU]Decompose Logsoftmax (#13679) 2022-11-09 09:01:37 +03:00
Mateusz Tabaka
3077b45995 [Pruning] propagate mask through Split and VariadicSplit (#13506)
Ticket: 88441
2022-11-09 06:37:41 +01:00
Sungeun Kim
7cf727cb26 fuse reorder to next conv (#13683)
-in_fmt:bfyx, out_fmt:b_fs_yx_fsv16, bs_fs_yx_bsv16_fsv16
-shallow input conv
2022-11-09 13:52:26 +09:00
Min, Byungil
0e486c1b9b [GPU] Reduce overhead in device_query (#13200)
+ Reduced overhead of is_local_block_io_supported in ocl_device
+ Updated hash_value in kernels_cache

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-11-09 11:59:52 +09:00
cecilia peng
3bdb9cae54 [CPU] add support for internal ops augrucell and augrusequence (#12647)
* [cpu] enable augru.

* initiate opset_private_tbl.hpp for private ops.

* fix ngraph_functions target_linker.

* temporaliy disable a failure test.
2022-11-09 05:58:04 +03:00
Tetiana Gubanova
4d1de75b24 [GPU] Add blocked layouts support to normalize operation (#12459)
* Add blocked layouts support to normalize operation

* Add normalize logic for blocked and plain layouts to one kernel
2022-11-08 17:50:44 -08:00
Paul Youngsoo Ahn
5c17c7e0a0 [GPU] Fix multistream issue for dynamic shape (#13433) (#13433)
- Separate kernels_cache::add_kernel from factory (choose_impl)
- Reset kenrels_cache._kernels after kernels_cache.compile
- Create cldnn unit test case to check multi-stream processing
2022-11-08 17:34:40 -08:00
Roman Kazantsev
9943edfa34 [Core] Fix StridedSlice shape infer in case dynamic end and input of dynamic shape (#13909)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-08 22:52:13 +03:00
Katarzyna Mitrus
03d048240c Broadcast-3 shape_infer review (#13849)
* v3::Broadcast tests

* Shape infer improvements

* Use Dimension broadcast_merge in Bidirectional mode

* More tests

* Style apply

* Fix Unqueeze with Broadcast tests

* Align Squeeze/Unsqueeze tests

* Fix warning

* Updates test shapes names

* loops refactor

* Remove redundant set/get labels from expected shapes

* Padding refactor

* Tests refactor

* Revert auto for i in loop
2022-11-08 21:51:04 +03:00
Sun Xiaoxia
73a8718b47 Xiaoxia/Default setting with hyper thread enabled on Hybrid-aware P/E-core (#13773)
* 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

* add custom nstreams setting, remove mutable qualifier

* fix code style issue

* fix some issues according to comments

* modify UpdateHybridCustomThreads

* fix code style issue

* modify comments

* use logic core in phase 2

* modify steams threads setting method

* move properties used in P/E-core to ie_internal_plugin_config.hpp

* fix streams is wrong on P/E-core which has 6 big cores

* modify code according to comments

* add threads_per_stream_small=3

* add the judgment of logical core

* fix code style issue

Co-authored-by: Shen, Wanglei <wanglei.shen@intel.com>
2022-11-08 21:18:23 +03:00
Roman Kazantsev
124106f81b [TF FE] Refactor SpaceToBatchND and BatchToSpaceND operations (#13884)
* [TF FE] Refactor SpaceToBatch and BatchToSpace operations

Make them to support inputs of dynamic rank and shapes

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

* Add layer tests in the pre-commit

* Fix for normalizing padding and crops

* Correct the type of paddings and crops

* Fix incorrect changes for paddings and crops

* Update src/frontends/tensorflow/src/op/space_to_batch_nd.cpp

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

* Update src/frontends/tensorflow/src/op/space_to_batch_nd.cpp

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-11-08 20:38:55 +03:00
Jan Iwaszkiewicz
5ae221e107 [PyOV] Fix mypy after bump, general refactor (#13913)
* Fix mypy errors after bump PEP482, reformat code in general

* Enable checks

* Fix smaller issues

* Revert typo with comments

* Fix indents
2022-11-08 19:26:39 +04:00
Mateusz Bencer
116f294a9a Introduce PullThroughReduce and ReduceReshapeFusion transformations (#13047)
* Initial version of PullThroughReduce and ReduceReshapeFusion transformation

* remove std namespace

* headers + namespaces clean-up

* resolved problem with ambiguous namespace

* clang format applied

* tests refactor. part 1

* tests refactor. part.2

* changed includes

* review remarks

* tests refactor. part.3

* review remarks

* fix build problem

* remarks

* fix reserving memory

* review remarks

* styles applied

* handle axes in the middle in try_get_unsqueeze_axes_from_reshape

* handle case of scalar input shape

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-11-08 17:33:04 +03:00
Xiake Sun
6f2eab4413 Fix datetime not found issue in utils (#13690) 2022-11-08 15:56:19 +04:00
Nikolay Shchegolev
b6ec6d4ec0 [CPU] GridSample operation implementation. (#12910) 2022-11-08 14:53:33 +03:00
Ilya Lavrenov
ce7455ddb0 Added option to disable compile_tool (#13903)
* Updated pugixml

* Added option to disable compile_tool
2022-11-08 15:04:57 +04:00
Przemyslaw Wysocki
d2871fd52c [PyOV] Enable Python 3.10 on Azure CI (#12578)
* Fix mypy for numpy==1.21.6

* Apply CR changes

* Allow Python 3.6 for open source

* Attempt to silence mypy

* Revert to 3.6 in setup.pys

* Fix merge conflict

* Add newline

* Fix Python version assert

* Test Python 3.10 CI

* Try bumping up pybind to 2.10

* Link default python to python 3.10

* Add sudo to changing default python

* Bump python version in setupvars

* Fix exception in test

* Do the same for compatibility

* Apply same CI changes to other pipelines

* Attempt to fix arm and windows CIs

* Fix win py lib version and links?

* Try to fix CI

* Fix win python path

* Update win path

* Test disable PDPD

* Disable TF for testing CI

* Add sudo to rm

* Test linux

* Update requirements

* RM sudo

* Add debug step to CI on ARM

* build py from source on linux

* Remove debug step from ARM

* Fix err

* Fill num_proc

* Fic py installation

* Bump pdpd to 2.3.1

* Bump np vers

* Try to upgrade onnx to 1.12.0

* Revert onnx upgrade, enable frontends

* Build py shared

* Export library

* activate py env

* Bump scipy for py3.10

* Another scipy bump

* Fix Windows path, add nfs helper for mount

* Attempt to fix win_cc

* Batch of changes

* Try to fix ngraph-onnx-lin

* Install lsb-release for docker on ngraph-onnx-lin

* Link lsb_release

* Try bumping Ubuntu to 22.04

* Revert ubuntu change in dockerfile

* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Upgrade ONNX to 1.12 in cpp

* Skip unsupported ops

* Revert "Fix ONNX compatibility and numpy warnings"

This reverts commit cd8a0e6b8e.

* Small changes

* Remove unnecessary changes

* Bump Python version in github workflows

* Fix flake error

* Another flake error

* Even more flake errors

* Xfail more tests

* Fix mypy errors

* Change onnx version in tests

* Bump ONNX in MO

* Fix onnx utils in comp

* Minor changes

* Import pathlib

* Add xfails to compatibility tests

* Skip segfaulting tests

* Fix onnx nametuple

* Fix flake

* Try to fix py3.6 onnx

* Switch to venv in windows

* Fix model importer and reqs

* Add __test__

* Debug print

* Fix flake

* Update linux.yml

* Update windows.yml

* Update linux.yml

* Update windows.yml

* Install python3.10

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Install py embedded

* Fix dir

* Fix curl

* Add complete file

* CP file

* Bump py ver

* Fix missing venv

* Try to install

* Disable venv

* Bump OMZ commit

* checkout omz

* Revert omz

* Bump omz

* Revert pybind bump

* Update .gitmodules

* Change pybind to fork

* change ssize_t to size_t

* Install bz2 for py build

* Bump omz

* Bump pandas requirement version

* Revert omz

* Install missing clang

* Bump omz

* Bump versions on fork

* Bump numpy in model zoo

* Fix clang

* Skip segfaulting pdpd test

* Skip another pdpd test

* Skip pdpd places.cpp

* Bump py ver in setupvars.bat

* Disable paddle tests

* Use int instead of str

* Fix requirements path

* Enable lin-cc

* Fixes in CI

* lin-cc and ngrpah-onnx changes

* Update num_proc

* Update ngraph-onnx

* Minor change

* Fix env var

* Change ubuntu to 20

* Get compiler on ngraph-onnx

* Add sudo to apt-get

* Add SSL

* Download ssl

* Different way of installing ssl

* Minor changes

* install zlib

* Fix env var

* Fix docker building error

* Revert changes

* Modify dockerfile

* Change pychecks python version

* Cleanup

* Add LayerNorm to expanded ONNX functions

* Revert previous commit

* Add LayerNorm to expanded ONNX functions

* Apply clang

* Move LayerNorm tests to skip_segfault

* Unskip pdpd tests

* Enable pdpd tests on linux

* Refactoring

* Remove 3.6 from reqs

* Refactoring

* Minor changes

* Minor changes

* Relax MO reqs

* Bump torch version

* relax pytest

* Specify pytest version

* Fix pytest pip conflict

* Bump pybind11 to v2.10.1 release tag

* Specify separate pytest version for py3.10

* Bump attrs

* Add py dependency

* Refactor versions

* Add venv activation to tf tests

* Fix fdupes

* Bump OMZ submodule

* Remove find and replace

* Change pybind to upstream fork

* Set pybind to proper commit

* Minor changes

* Try to fix scipy

* Updated exclude patterns for nlohmann json

* [PyOV] Fix wheel requirements for new package versions

* Specify CPU plugin versions

* Bump OMZ version

* Fix linter

* Fix linter 2

* Fix linter 3

* Disable linter

Co-authored-by: Mateusz <mateusz.mikolajczyk@intel.com>
Co-authored-by: jiwaszki <jan.iwaszkiewicz@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-08 11:38:39 +04:00
Ilya Lavrenov
b210b19c6d Risc-v toolchain (#13897) 2022-11-08 10:58:01 +04:00
Szymon Irzabek
3ea77b9966 GNA MTL mixed precision (#13166)
* [GNA] Enable int8 weights for convolutions

* [GNA] Implement convolution low precision tests for MTL

Co-authored-by: Marcin Kacprzak <marcin.kacprzak@intel.com>
2022-11-08 07:34:01 +01:00
Ilya Churaev
0fa1573bbb Enable disabled check (#13908) 2022-11-08 10:27:23 +04:00
Ilya Churaev
0bb72a4949 Add ctest for some test targets (#13727)
* Add ctest for some test targets

* Fixed test coverage

* Replaced unit tests cmake script

* Fixed code style

* Use ov_add_test_target for FEs

* Fixed code style
2022-11-08 10:25:16 +04:00
Tatiana Savina
07a0ff58f2 DOCS: Developer documentation Inference component update (#13895)
* dev docs fixes

* fix space

* fix paragraphs
2022-11-08 07:42:10 +04:00
Andrew Kwangwoong Park
e1f014ac15 [GPU] Fix performance degradation of bfyx conv with FP16 compared to FP32 (#13847)
Signed-off-by: Andrew Park <andrew.park@intel.com>

Signed-off-by: Andrew Park <andrew.park@intel.com>
2022-11-07 16:55:47 -08:00
Ilya Lavrenov
1f561033fa temporary commented failed test (#13904) 2022-11-08 01:24:59 +04:00
Taylor Yeonbok Lee
cd94a1f17b [GPU] Enable Conv/GroupConv shape infer for explicit/valid padding (#13731)
* Enabled Conv dynamic shape & Added conv dynamic functional test

* Fix layout optimizor

* Revert layout optimizer change

* Set expected layout of convolution for dynamic shape to be fsv16

* Fixed groupConv for dynamic shape

Added 1D dw/group convolution tests for both static & dynamic
Currently, 1D group convolution is only works for dw..

* Minor fix

* Updated for 3D conv dynamic case + corresponding test

* Fix lint error

* Fix INSTANTIATE_TEST_CASE to INSTANTIATE_TEST_SUITE

* Fix clang format & skip 1D group conv test
2022-11-07 11:38:52 -08:00
venki-thiyag
835236fae6 #13888 [Bug] Unable to load OpenVINO in Electron app node addon (#13890)
Co-authored-by: venki <venkatesan.t@ringcentral.com>
2022-11-07 19:27:17 +04:00
Pawel Raasz
c37e06f947 Review opset1 split for shape inference aspects (#13844)
* Review split operator for shape inference:
- check label and dimension propagation
- check evaluation lowe, upper and labels

* Review split static shape inference by tests

* Use shape_infer in split evaluate

* Fix compilation issues

* Fix usage of broadcast in bound tests
2022-11-07 17:04:25 +04:00
Liubov Talamanova
58b37c9bc2 [POT] Skip unstable test (#13889) 2022-11-07 12:44:16 +00:00
Roman Lyamin
34b76584f7 [GPU] AvgPool/MaxPool dynamic support (#13754) 2022-11-07 15:46:17 +04:00
Anastasia Kuporosova
713eb9683f [Pyskip failed tests (#13892) 2022-11-07 14:46:51 +04:00
Roman Kazantsev
995bcdbe47 [TF FE] Refactor Where translator and test it (#13880)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-07 12:32:16 +04:00
Roman Kazantsev
2e9a8cd332 [TF FE] Refactor SpaceToDepth and test it in the precommit (#13882)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-07 12:23:54 +04:00
Min, Byungil
e676ae7016 [GPU] Resolve reduce test failure (#13607)
+ Added logic to select planar format for b-f axes reduction
+ Bugfix of reorder_unreduced_axis_no_fusion
+ Bugfix to resolve an issue of cgan_mnist

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-11-07 16:57:53 +09:00
Maxim Vafin
f1d7647b8d Fix Slice issue in MO IR Reader (#13784)
* Fix slice issue in MO IR Reader

* Add unit test

* Fix slice test
2022-11-07 11:22:22 +04:00
Przemyslaw Wysocki
7bf6faf4cb Bump pytorch (#13688) 2022-11-07 11:21:36 +04:00
Vladimir Paramuzov
ad403cf55e [GPU] Remove f16<->f32 conversion duplicates (#13735) 2022-11-07 11:01:20 +04:00
Wang, Yang
560dba22cb Fix the logic issue of handling the ov::device::properties in the ie core. (#13482)
* Update the logic to handle the ov:device::properties in the ie core.

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

* Update test cases.

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

* 1. Remove the config filter within AUTO plugin when passing the configs to target hardwre device through AUTO plugin.
2. add test cases to check if the secondary properties have been passed into the target device through virtaul device.

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

* Add mock tests to check if device properties works throgh the AUTO or MULTI  plugin.

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

* Update.

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

* Add mock head file for loadnetwork with device properties testing.

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

* Update.

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

* Update gtest commit to fix the warning issue appeared in the macro MATCHER_P.

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

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-11-07 10:36:25 +08:00
Wang, Yang
8f9fc34ed3 Enable AUTO to accept the ov::device::properties with device name contained the index. (#13665)
Signed-off-by: Wang, Yang <yang4.wang@intel.com>

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
2022-11-07 10:23:35 +08:00
yanlan song
394b6fe9ee Bell/execution device (#13737)
* debug only

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

* add execution_device property for auto

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

* Revert "debug only"

This reverts commit 5ef6140b63.

* revert debug code

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

* polish tests to cover multiple gpu platform

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

clean up

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

* clang format

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

* only cpu in cpuFunctest

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

* thread-safe implementation

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

* remove not needed locl

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

* apply review comments

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

* remove blank line

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

Signed-off-by: fishbell <bell.song@intel.com>
2022-11-07 10:12:28 +08:00
Roman Kazantsev
57eddaa239 [TF FE][Common] Use opset Unique in TF FE and move Unique decomposition to common (#13818)
* [TF FE][Common] Move TF FE to opset Unique and add Unique decomposing to common

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

* Add Unique decomposition transformation into the common part

* Add transformation tests for UniqueDecomposition

* Fix unique_decomposition_test

* Simplify condition of transformation applicability

* Clarify the comment when the transformation is applicable

* Fix transformation test

* Fix transformation test

* Add support of opset10 in IR Reader

* Mark the single element case as xfail

* Fix tensor names in the transformation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-07 01:24:23 +03:00
Przemyslaw Wysocki
520b9ff68c [PyOV] Disallow Python 3.6 usage (#13240)
* Remove py3.6 constraints

* Cleanup out of date python versions

* Bump pybind11 to v2.10.1 release tag

* [PyOV] Fix wheel requirements for new package versions

Co-authored-by: jiwaszki <jan.iwaszkiewicz@intel.com>
2022-11-06 10:45:42 +04:00
Liubov Talamanova
03dbd8c4e7 [POT] Update node names in ONNX models (#13872) 2022-11-05 21:00:19 +01:00
Jan Iwaszkiewicz
664c196a13 [PyOV] Fix wheel requirements for new package versions (#13871)
* Bump pybind11 to v2.10.1 release tag

* [PyOV] Fix wheel requirements for new package versions
2022-11-05 16:01:45 +04:00
Liubov Talamanova
02d30c8aaa [POT] Unify MatMul scales (#13717)
* Support FQ scales unification for MatMul

* Add test

* Update test_scales.py
2022-11-05 09:33:54 +04:00
Katarzyna Mitrus
c953186ff0 GRU/AUGRUCell shape inference function (#13708)
* Add shape_infer function for GRUCell op

* Add shape_infer function for AUGRUCell

* Consts refactor

* Add batch_size check

* Enable GRUCell shape_infer for CPU

* Style apply

* Use OV_EXPECT_THROW in tests

* Use helper for input shapes

* Use .back() instead of index

* Change rnn_seq namespace to rnn

* Fix win warnings

* Enable AUGRUCell/Sequence shape_infer on CPU

* Fix warn

* Fix warn
2022-11-04 23:31:58 +03:00
Ilya Lavrenov
19c2ec068a Updated exclude patterns for nlohmann json (#13858) 2022-11-04 21:26:14 +04:00
Alexandra Sidorova
cbf037b9a8 [Snippets] Fixed SnippetsMarkSkipped for dynamic branches (#13751) 2022-11-04 16:15:19 +04:00
Sungeun Kim
f1cf1948d5 [GPU] add errata for onednn layout selection (#13758) 2022-11-04 15:44:36 +04:00
Pawel Raasz
0646d49d35 Review opset1 squeeze for shape inference aspects (#13716)
* Review squeeze operator for
- label preserve and propagation
- partial values preserve and propagation
- interval shapes propagation

* Review static shape inference tests

* Add template shape inference for squeeze

* Update include for OV_EXPECT_THROW

* Correct has_static_axes initialization

* remove test_squeeze from xfail 44968

* Fix inference parameter op with no data
- add additional test to check if axes are parameter without data
- revert xfail marks for squeeze tests

* Fix inference parameter op with no data
- add additional test to check if axes are parameter without data
- revert xfail marks for squeeze tests

* Refactor axes acquire logic
2022-11-04 13:42:05 +03:00
Zlobin Vladimir
28a118be39 Apply improvements I found during https://github.com/openvinotoolkit/openvino/pull/13388 (#13743) 2022-11-04 14:41:15 +04:00
Zlobin Vladimir
65f83b591e benchmark_app: --latency_percentile: don't list all values (#13799)
Ticket 95243
2022-11-04 13:53:05 +04:00
Artur Kulikowski
a48d1558e3 ONNX: Throw exception if attribute reduction is used in ScatterND or ScatterElements (#13778)
* ONNX: Throw exception if `reduction` attribute has unsupported value

Operators:
- ScatterND
- ScatterElements
2022-11-04 10:40:14 +01:00
Tomasz Adamowicz
5f0b063455 [GNA] Support GNA 3.5 (MTL) target in OV (#13478)
* Enable TLV

* [GNA] Add smoke test for Conv with padding on MTL

* [GNA] Allow skipping tests based on gna lib version

Co-authored-by: Krzysztof Bruniecki <krzysztof.bruniecki@intel.com> 🥇
2022-11-04 10:26:22 +01:00
Vladimir Paramuzov
8b93e3f2ec [GPU] Ability to compile OV with OCL 1.2 (#13706) 2022-11-04 12:31:01 +04:00
Liubov Talamanova
8789fcda04 [POT] Propagate FQ through Gather (#13583)
* Add Gather to QUANTIZE_AGNOSTIC_OPERATIONS

* Add test

* Update HW configs path in tests

* Fix tests

* Update CI references
2022-11-04 12:21:20 +04:00
Tingqian Li
f34f35bfc7 [CPU] Enable scratchpad user mode for oneDNN based nodes (#12038) 2022-11-04 11:10:26 +03:00
Roman Kazantsev
de687650d2 [TF FE] Fix output names list for meta format (#13828)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-04 11:40:59 +04:00
avoskoboinyk-lohika
6fc23b4768 [CPU] Optimize DFT operation (#11946) 2022-11-04 09:46:46 +03:00
Taylor Yeonbok Lee
e9e3044d99 Fix error in calling is_dynamic (#13769) 2022-11-04 09:31:41 +03:00
Evan
f1fe3a2f65 Docs: Update "Install OpenVINO Runtime on Windows from Archive File" page (#13332)
* docs: big update to Windows archive install steps

* docs: apply correct note format

* docs: add link to archives

* docs: minor update

* docs: change archive download link to GitHub

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

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

* docs: typo fix

* docs: minor change

* docs: remove "For Python developers" in Software tab

* docs: fix curl command

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

* docs: add link to PyPI page

* docs: Change back to numbered instructions

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

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

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

* Apply suggestions from code review

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

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

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

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

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

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

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

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

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

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

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

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

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

Co-authored-by: Helena Kloosterman <helena.kloosterman@intel.com>
Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2022-11-04 09:01:24 +03:00
Ilya Lavrenov
87f61cf822 Added per component copyright files for debian / rpm (#13833) 2022-11-04 08:15:00 +04:00
Roman Kazantsev
954b9d3149 [TF FE][Tests] Add layer tests for SegmentSum and DynamicPartition in the pre-commit (#13812)
After fixes for TopK and arithmetic operations for integer tensors, we are ready to switch
these tests in the pre-commit

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

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-04 05:02:48 +03:00
Mikhail Ryzhov
7a6960b2f4 [GNA] Added support of the all log levels (#13359)
* Added GNA logger

* Added GNA logger class

* Replaced old looger by the new one

* Added support of the all log levels in the tests

* Renaming

* fixed cpplint issue

* Reduced error level

* fixed cpplint issues

* Fixed linking error

* Fixed linux build

* Rebase fix

* Removed unused code

* Fixed compile issue after rebase

* Aligned code usage and style

* Fixed default constructor

* Fixed test

* One more rebase

* Added exveption test

* Fixed the old logging tests

* restored static constants

* Removed dublicated log messages

* Removed incorrect log::level comparation

* Fixed generic api test

* Rebased
2022-11-04 04:58:01 +03:00
yanlan song
b04624766e Bell/conditionally enable threadingtests for getavailabledevices (#13772)
* passthrough cache_dir for auto/multi

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

* enable tests for certain glibc version

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

* Revert "passthrough cache_dir for auto/multi"

This reverts commit 58591a1bce.

* clean up

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

* apply the review comment

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

Signed-off-by: fishbell <bell.song@intel.com>
2022-11-04 02:45:23 +03:00
Jan Iwaszkiewicz
9f2489941f Bump pybind11 to v2.10.1 release tag (#13793)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-04 02:12:47 +04:00
Przemyslaw Wysocki
1cc499429a [PyOV] Upgrade ONNX to 1.12.0 (#12847)
* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Upgrade ONNX to 1.12 in cpp

* Skip unsupported ops

* Revert "Fix ONNX compatibility and numpy warnings"

This reverts commit cd8a0e6b8e.

* Small changes

* Remove unnecessary changes

* Bump Python version in github workflows

* Fix flake error

* Another flake error

* Even more flake errors

* Xfail more tests

* Fix mypy errors

* Change onnx version in tests

* Bump ONNX in MO

* Fix onnx utils in comp

* Minor changes

* Import pathlib

* Add xfails to compatibility tests

* Skip segfaulting tests

* Fix onnx nametuple

* Fix flake

* Try to fix py3.6 onnx

* Fix model importer and reqs

* Add __test__

* Bump OMZ commit

* checkout omz

* Revert omz

* Bump omz

* Bump omz

* Revert omz

* Bump omz

* Change pychecks python version

* Add LayerNorm to expanded ONNX functions

* Apply clang

* Move LayerNorm tests to skip_segfault

* Refactoring

* Minor changes

* Minor changes

* Relax MO reqs
2022-11-03 22:56:57 +04:00
Roman Lyamin
6c7f1f8792 [GPU] Fix performance drop on new API (#13767) 2022-11-03 18:34:14 +04:00
Vladimir Paramuzov
ced0eebd13 [GPU] Silence ocl include pragma message (#13789) 2022-11-03 18:02:23 +04:00
Ilya Lavrenov
e30a935e6f Removed conda option from python build (#13819) 2022-11-03 15:07:20 +04:00
Roman Lyamin
2b5dd4fac8 [GPU] Pooling refactoring (#13664) 2022-11-03 14:53:32 +04:00
Ilya Lavrenov
c11389fa18 Fully define product version in cmake (#13802) 2022-11-03 14:22:46 +04:00
Denis Kotov
c949152a43 Added -DDNNL_ENABLE_EXCEPTIONS for Debug build (#13672) 2022-11-03 10:01:10 +01:00
Egor Duplenskii
41866ea51a [CPU][CORE] Move to the most recent xbyak version (#13753)
Current xbyak has "unresolved external symbols" issue
when built on Windows in 'Debug' (-O0) build type
The issues is fixed in the recent xbyak versions
2022-11-03 12:03:30 +04:00
Ilya Lavrenov
3de3e7b8fa Updated zlib to be 1.2.13 (#13803) 2022-11-03 10:10:41 +04:00
Chen Xu
a11189da66 [CPU] Fix issue about gather int32 in Reduce node (#13756) 2022-11-03 09:47:48 +04:00
Vladimir Paramuzov
b7dfc31597 [GPU] Enable more compiler checks (#13740)
* [GPU] Enable more compiler checks

* [GPU] Disable -Werror for thirdparty

* [GPU] Improved error message when device not found
2022-11-03 09:07:49 +04:00
13404 changed files with 114659 additions and 75636 deletions

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -17,6 +18,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -32,7 +34,7 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
ref: releases/2022/3
jobs:
- job: android_arm64
@@ -63,6 +65,9 @@ jobs:
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
whoami
uname -a
echo ls /usr/bin/python3.10
rm -rf /usr/bin/python3
sudo ln -s /usr/bin/python3.10 /usr/bin/python3
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
@@ -104,7 +109,7 @@ jobs:
- script: |
set -e
$(OPENVINO_REPO_DIR)/install_build_dependencies.sh
sudo -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 default-jdk
# Speed up build
@@ -131,7 +136,6 @@ jobs:
-DANDROID_STL=c++_shared
-DANDROID_PLATFORM=$(ANDROID_SDK_VERSION)
-DENABLE_TESTS=ON
-DENABLE_SAMPLES=ON
-DBUILD_java_api=ON
-DBUILD_nvidia_plugin=OFF
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -16,6 +17,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -30,13 +32,13 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
ref: releases/2022/3
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: master
ref: releases/2022/3
jobs:
- job: Lin
@@ -62,7 +64,7 @@ jobs:
CMAKE_CPACK_GENERATOR:
SAMPLES_INSTALL_DIR: $(INSTALL_DIR)/samples
PYTHON_SAMPLES_INSTALL_DIR: $(SAMPLES_INSTALL_DIR)/python
RUN_PREFIX: . $(SETUPVARS) -pyver 3.8 &&
RUN_PREFIX: . $(SETUPVARS) &&
maxParallel: 2
# About 150% of total time
@@ -92,8 +94,31 @@ jobs:
SHARE_DIR: /mount/cinfsshare/onnxtestdata
CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux
CMAKE_VERSION: 3.24.0
BUILD_PYTHON: $(WORK_DIR)/build_python
INSTALL_PYTHON: $(INSTALL_OPENVINO)/extras/python
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 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)
@@ -118,20 +143,13 @@ 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
sudo -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
# For opencv-python: python3-setuptools and pip upgrade
sudo apt --assume-yes install openjdk-11-jdk libbz2-dev clang
# For Python API
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
@@ -142,6 +160,8 @@ jobs:
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 running TensorFlow frontend unit tests
python3 -m pip install -r $(REPO_DIR)/src/frontends/tensorflow/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
@@ -194,7 +214,6 @@ jobs:
-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_TESTS=ON
-DENABLE_OV_ONNX_FRONTEND=ON
-DENABLE_FASTER_BUILD=ON
@@ -234,8 +253,8 @@ jobs:
inputs:
cmakeArgs: >
-GNinja
-S $(REPO_DIR)/tests/layer_tests
-B $(BUILD_LAYER_TESTS_DIR)
$(REPO_DIR)/tests/layer_tests
workingDirectory: $(BUILD_LAYER_TESTS_DIR)
- script: ninja -C $(BUILD_LAYER_TESTS_DIR)
displayName: 'Build Layer Tests'
@@ -244,21 +263,16 @@ jobs:
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: python3 -m pip install openvino-dev --find-links=$(INSTALL_DIR)/tools
displayName: 'Install python wheels'
- script: |
set -e
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'
@@ -267,7 +281,7 @@ jobs:
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
# 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
export LD_LIBRARY_PATH=$(REPO_DIR)/temp/gna_03.00.00.1910/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 \
@@ -280,7 +294,7 @@ jobs:
export DATA_PATH=$(MODELS_PATH)
export MODELS_PATH=$(MODELS_PATH)
# 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
export LD_LIBRARY_PATH=$(REPO_DIR)/temp/gna_03.00.00.1910/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
@@ -295,7 +309,7 @@ jobs:
- script: |
# 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
export LD_LIBRARY_PATH=$(REPO_DIR)/temp/gna_03.00.00.1910/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
@@ -361,6 +375,18 @@ jobs:
displayName: 'OV Core UT'
continueOnError: false
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_inference_functional_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceFunc.xml
displayName: 'Inference Func Tests'
continueOnError: false
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_inference_unit_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceUnit.xml
displayName: 'Inference Unit Tests'
continueOnError: false
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_conditional_compilation_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ConditionalCompilation.xml
displayName: 'Conditional Compilation Tests'
continueOnError: false
- 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
@@ -373,13 +399,18 @@ jobs:
displayName: 'Paddle Frontend UT'
continueOnError: false
- 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
- script: $(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
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_lp_transformations_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-LpTransformations.xml
displayName: 'Low Precision Transformations Tests'
continueOnError: false
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_transformations_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-Transformations.xml
displayName: 'Transformations 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: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-InferenceEngineUnitTests.xml
displayName: 'IE UT old'
@@ -443,13 +474,16 @@ jobs:
inputs:
cmakeArgs: >
-GNinja
-S $(REPO_DIR)/tests/samples_tests
-B $(BUILD_SAMPLES_TESTS_DIR)
$(REPO_DIR)/tests/samples_tests
workingDirectory: $(BUILD_SAMPLES_TESTS_DIR)
- script: cmake -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_SAMPLES_TESTS_DIR)/cmake_install.cmake
- script: cmake -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_SAMPLES_TESTS_DIR)
displayName: 'Install Samples Tests'
- script: python3 -m pip install -r $(INSTALL_TEST_DIR)/smoke_tests/requirements.txt
workingDirectory: $(INSTALL_TEST_DIR)
displayName: 'Install dependencies for samples smoke tests'
continueOnError: false
@@ -467,7 +501,6 @@ jobs:
- 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)/tensorflow_tests/ --use_new_frontend -m precommit_tf_fe --junitxml=$(INSTALL_TEST_DIR)/TEST-tf_fe.xmlTEST
displayName: 'TensorFlow 1 Layer Tests - TF FE'
@@ -476,7 +509,6 @@ jobs:
- 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'
@@ -497,6 +529,30 @@ jobs:
displayName: 'TensorFlow 2 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)/mo_python_api_tests/test_mo_convert_complex_params.py --ir_version=11 --junitxml=./TEST-test_mo_convert_complex_params.xmlTEST
displayName: 'MO Python API Tests - Complex Python params'
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)/mo_python_api_tests/test_mo_convert_tf.py --ir_version=11 --junitxml=./TEST-test_mo_convert_tf.xmlTEST
displayName: 'MO Python API Tests - Import TF model from memory'
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)/mo_python_api_tests/test_mo_convert_pytorch.py --ir_version=11 --junitxml=./TEST-test_mo_convert_pytorch.xmlTEST
displayName: 'MO Python API Tests - Import PyTorch model from memory'
continueOnError: false
- task: PublishTestResults@2
condition: always()
inputs:

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -17,6 +18,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -32,7 +34,7 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
ref: releases/2022/3
jobs:
- job: linux_arm64
@@ -46,8 +48,8 @@ jobs:
system.debug: true
VSTS_HTTP_RETRY: 5
VSTS_HTTP_TIMEOUT: 200
PYTHON_ARM_VERSION: "3.8.12"
PYTHON_EXEC: "python3.8"
PYTHON_ARM_VERSION: "3.10.6"
PYTHON_EXEC: "python3.10"
OPENVINO_ARCH: 'aarch64'
NUM_PROC: 1
BUILD_TYPE: Release
@@ -61,6 +63,7 @@ jobs:
BUILD_OPENVINO: $(WORK_DIR)/build
BUILD_OPENVINO_PYTHON: $(WORK_DIR)/build_python
BUILD_OPEN_MODEL_ZOO: $(WORK_DIR)/build_open_model_zoo
CROSSENV_DIR: $(WORK_DIR)/cross_env
INSTALL_OPENVINO: $(WORK_DIR)/install_openvino
INSTALL_PYTHON: $(INSTALL_OPENVINO)/extras/python
INSTALL_ONETBB: $(WORK_DIR)/build/extras/oneTBB
@@ -79,7 +82,9 @@ jobs:
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 ls /usr/bin/python3.10
rm -rf /usr/bin/python3
sudo ln -s /usr/bin/python3.10 /usr/bin/python3 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
@@ -124,7 +129,7 @@ jobs:
- script: |
set -e
$(OPENVINO_REPO_DIR)/install_build_dependencies.sh
sudo -E $(OPENVINO_REPO_DIR)/install_build_dependencies.sh
export CCACHE_TEMPDIR=$(TMP_DIR)/ccache
export CCACHE_BASEDIR=$(Pipeline.Workspace)
export CCACHE_MAXSIZE=50G
@@ -153,6 +158,16 @@ jobs:
workingDirectory: $(BUILD_OPENVINO)
displayName: 'Install dependencies'
- script: |
set -e
/usr/local/bin/$(PYTHON_EXEC) -m pip install -U pip
/usr/local/bin/$(PYTHON_EXEC) -m pip install crossenv
/usr/local/bin/$(PYTHON_EXEC) -m crossenv $(INSTALL_PYTHON)/bin/$(PYTHON_EXEC) $(CROSSENV_DIR)
source $(CROSSENV_DIR)/bin/activate
build-pip3 install -U pip install -r $(OPENVINO_REPO_DIR)/src/bindings/python/wheel/requirements-dev.txt
cross-pip3 install -U pip install -r $(OPENVINO_REPO_DIR)/src/bindings/python/wheel/requirements-dev.txt
workingDirectory: $(BUILD_OPENVINO)
displayName: 'Create crossenv'
- task: CMake@1
inputs:
@@ -161,20 +176,15 @@ jobs:
-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_PYTHON=OFF
-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
-DCMAKE_VERBOSE_MAKEFILE=ON
-DOPENVINO_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules/arm_plugin
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER_LAUNCHER=ccache
@@ -200,32 +210,18 @@ jobs:
workingDirectory: $(BUILD_OPENVINO)
displayName: 'Install OpenVINO ARM plugin'
- 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)
- script: |
source $(CROSSENV_DIR)/bin/activate
cmake \
-GNinja \
-DENABLE_PYTHON=ON \
-DENABLE_WHEEL=ON \
-DCMAKE_TOOLCHAIN_FILE=$(OPENVINO_REPO_DIR)/cmake/arm64.toolchain.cmake \
-DOpenVINODeveloperPackage_DIR=$(BUILD_OPENVINO) \
-DCMAKE_INSTALL_PREFIX=$(INSTALL_OPENVINO) \
-S $(OPENVINO_REPO_DIR)/src/bindings/python \
-B $(BUILD_OPENVINO_PYTHON)
deactivate
displayName: 'CMake OpenVINO python binding'
- script: |
@@ -248,15 +244,15 @@ jobs:
-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_EXECUTABLE=/usr/local/bin/$(PYTHON_EXEC)
-DPYTHON_INCLUDE_DIR=$(INSTALL_PYTHON)/include/$(PYTHON_EXEC)
-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)
-S $(OPENVINO_REPO_DIR)/thirdparty/open_model_zoo/demos
-B $(BUILD_OPEN_MODEL_ZOO)
displayName: 'CMake Open Model Zoo demos'
- script: ninja

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -16,6 +17,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -24,6 +26,14 @@ pr:
- README.md
- /**/layer_tests_summary/**
resources:
repositories:
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: releases/2022/3
jobs:
- job: LinCC
# About 150% of total time
@@ -78,8 +88,7 @@ jobs:
- script: |
set -e
$(REPO_DIR)/install_build_dependencies.sh
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements.txt
sudo -E $(REPO_DIR)/install_build_dependencies.sh
# Speed up build
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
unzip ninja-linux.zip
@@ -87,6 +96,11 @@ jobs:
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
- checkout: testdata
clean: true
lfs: true
path: testdata
- task: CMake@1
inputs:
cmakeArgs: >
@@ -97,19 +111,49 @@ jobs:
-DENABLE_FASTER_BUILD=ON
-DENABLE_PROFILING_ITT=ON
-DSELECTIVE_BUILD=COLLECT
-DENABLE_INTEL_GPU=OFF
-DENABLE_MULTI=OFF
-DENABLE_AUTO=OFF
-DENABLE_AUTO_BATCH=OFF
-DENABLE_HETERO=OFF
-DENABLE_TEMPLATE=OFF
-DENABLE_INTEL_MYRIAD_COMMON=OFF
-DENABLE_OV_ONNX_FRONTEND=OFF
-DENABLE_OV_PADDLE_FRONTEND=OFF
-DENABLE_OV_TF_FRONTEND=OFF
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: ninja
- script: |
ninja
cmake --build . --target sea_itt_lib
workingDirectory: $(BUILD_DIR)
displayName: 'Build LinCC'
displayName: 'Build LinCC COLLECT'
- 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'
- script: |
python3 thirdparty/itt_collector/runtool/sea_runtool.py --bindir $(REPO_DIR)/bin/intel64/Release -o $(BUILD_DIR)/itt_stat ! $(REPO_DIR)/bin/intel64/Release/benchmark_app -niter 1 -nireq 1 -m $(MODELS_PATH)/models/test_model/test_model_fp32.xml -d CPU
workingDirectory: $(REPO_DIR)
displayName: 'Code usage analysis'
- script: ls -alR $(INSTALL_DIR)
displayName: 'List install files'
- task: CMake@1
inputs:
cmakeArgs: >
-GNinja
-DSELECTIVE_BUILD=ON
-DSELECTIVE_BUILD_STAT=$(BUILD_DIR)/*.csv
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: cmake --build $(BUILD_DIR)
displayName: 'Build LinCC ON'
- script: ls -alR $(REPO_DIR)/bin/
displayName: 'List bin files ON'
# TODO: ebable after the fix on CPU side
- script: |
$(REPO_DIR)/bin/intel64/Release/benchmark_app -niter 1 -nireq 1 -m $(MODELS_PATH)/models/test_model/test_model_fp32.xml -d CPU
workingDirectory: $(REPO_DIR)
displayName: 'Use OpenVINO after CC'

View File

@@ -4,7 +4,7 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
ref: releases/2022/3
jobs:
- job: Lin
@@ -35,6 +35,9 @@ jobs:
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
whoami
uname -a
echo ls /usr/bin/python3.10
rm -rf /usr/bin/python3
sudo ln -s /usr/bin/python3.10 /usr/bin/python3
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
@@ -76,7 +79,7 @@ jobs:
- script: |
set -e
$(REPO_DIR)/install_build_dependencies.sh
sudo -E $(REPO_DIR)/install_build_dependencies.sh
# Move jdk into contrib
sudo apt --assume-yes install openjdk-11-jdk
# Speed up build

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -17,6 +18,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -37,11 +39,13 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: releases/2022/3
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: releases/2022/3
jobs:
- job: CUDAPlugin_Lin
@@ -121,7 +125,7 @@ jobs:
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 &&
sudo -E /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

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -16,6 +17,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -30,13 +32,13 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
ref: releases/2022/3
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: master
ref: releases/2022/3
jobs:
- job: Lin_Debian
@@ -118,7 +120,7 @@ jobs:
- script: |
set -e
$(REPO_DIR)/install_build_dependencies.sh
sudo -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
@@ -134,6 +136,8 @@ jobs:
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 running TensorFlow frontend unit tests
python3 -m pip install -r $(REPO_DIR)/src/frontends/tensorflow/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
@@ -282,7 +286,7 @@ jobs:
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
sudo apt-get install openvino -y || exit 1
# 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
@@ -335,8 +339,7 @@ jobs:
continueOnError: false
- script: |
export LD_LIBRARY_PATH=$(INSTALL_TEST_DIR):$LD_LIBRARY_PATH
export OV_FRONTEND_PATH=$(INSTALL_TEST_DIR)
export LD_LIBRARY_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

View File

@@ -4,7 +4,7 @@
# type: github
# endpoint: openvinotoolkit
# name: openvinotoolkit/testdata
# ref: master
# ref: releases/2022/3
jobs:
- job: Lin_lohika

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -17,6 +18,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -80,6 +82,7 @@ jobs:
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
sudo mkdir -p $(MODELS_DIR)
sudo apt --assume-yes update && sudo apt --assume-yes install nfs-common
sudo apt install nfs-common -y
sudo mount -vvv -t nfs cinfsshare.file.core.windows.net:/cinfsshare/onnxtestdata $(MODELS_DIR) -o vers=4,minorversion=1,sec=sys
mkdir -p $(MODELS_DIR)/models_data
displayName: 'Make dirs'
@@ -92,21 +95,31 @@ jobs:
- script: |
set -e
sudo apt --assume-yes install git-lfs uidmap
apt-get update && apt-get install -y lsb-release && apt-get clean all
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
- script: src/bindings/python/tests/test_onnx/model_zoo_preprocess.sh -d $(MODELS_DIR)/models_data -o -s "$(ONNX_MODEL_ZOO_SHA)"
- script:
src/bindings/python/tests/test_onnx/model_zoo_preprocess.sh -d $(MODELS_DIR)/models_data -o -s "$(ONNX_MODEL_ZOO_SHA)"
displayName: 'Update models'
condition: ne(variables['BUILD_TYPE'], 'Debug')
- script: sudo docker build --tag=openvino-onnx-ci-image --file=.ci/openvino-onnx/Dockerfile --build-arg BUILD_TYPE=$(BUILD_TYPE) --build-arg PROTOBUF_LITE=$(PROTOBUF_LITE) .
- script: |
sudo docker build \
--tag=openvino-onnx-ci-image \
--file=.ci/openvino-onnx/Dockerfile \
--build-arg BUILD_TYPE=$(BUILD_TYPE) .
displayName: 'Docker build $(BUILD_TYPE)'
- script: sudo fallocate -l 64G /swapfile ; sudo mkswap /swapfile ; sudo swapon /swapfile ; df ; free -h
displayName: 'Create swap'
- script: sudo docker run --name openvino-onnx-ci-container --volume $(MODELS_DIR)/models_data/model_zoo/onnx_model_zoo_$(ONNX_MODEL_ZOO_SHA):/root/.onnx/model_zoo/onnx_model_zoo --volume $(MODELS_DIR)/msft:/root/.onnx/model_zoo/MSFT openvino-onnx-ci-image /bin/bash -c "$(TOX_COMMAND)"
- script: |
sudo docker run \
--name openvino-onnx-ci-container \
--volume $(MODELS_DIR)/models_data/model_zoo/onnx_model_zoo_$(ONNX_MODEL_ZOO_SHA):/root/.onnx/model_zoo/onnx_model_zoo \
--volume $(MODELS_DIR)/msft:/root/.onnx/model_zoo/MSFT openvino-onnx-ci-image \
/bin/bash -c "$(TOX_COMMAND)"
displayName: 'Docker run $(BUILD_TYPE)'

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -17,6 +18,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -90,11 +92,7 @@ jobs:
- script: |
set -e
$(REPO_DIR)/install_build_dependencies.sh
python3 -m pip install --upgrade pip
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements.txt
# For running Python API tests
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements-dev.txt
sudo -E $(REPO_DIR)/install_build_dependencies.sh
# Speed up build
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
unzip ninja-linux.zip
@@ -111,17 +109,15 @@ jobs:
-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_CPPLINT=OFF
-DENABLE_TESTS=OFF
-DENABLE_INTEL_CPU=ON
-DENABLE_INTEL_GPU=OFF
-DENABLE_CPPLINT=OFF
-DENABLE_PROFILING_ITT=OFF
-DENABLE_SAMPLES=OFF
-DENABLE_OV_ONNX_FRONTEND=ON
-DENABLE_COMPILE_TOOL=OFF
-DENABLE_OV_TF_FRONTEND=OFF
-DENABLE_OV_PADDLE_FRONTEND=OFF
-DENABLE_OPENVINO_DEBUG=OFF
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
@@ -135,7 +131,7 @@ jobs:
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_DIR)
displayName: 'Install'
displayName: 'Install OpenVINO'
- script: |
source $(INSTALL_DIR)/setupvars.sh

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -16,6 +17,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -30,13 +32,13 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
ref: releases/2022/3
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: master
ref: releases/2022/3
jobs:
- job: Mac
@@ -66,6 +68,10 @@ jobs:
- script: |
whoami
uname -a
echo test_debug ; which python3
echo ls /usr/bin/python3.10
sudo rm -rf /usr/bin/python3
sudo ln -s /usr/bin/python3.10 /usr/bin/python3
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
@@ -100,7 +106,7 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
versionSpec: '3.10'
- script: |
brew install cython
@@ -124,7 +130,6 @@ jobs:
-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 \

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -16,6 +17,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -30,13 +32,13 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/openvino_contrib
ref: master
ref: releases/2022/3
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: master
ref: releases/2022/3
jobs:
- job: Win
@@ -71,18 +73,44 @@ jobs:
INSTALL_DIR: $(WORK_DIR)\install_pkg
INSTALL_TEST_DIR: $(INSTALL_DIR)\tests
SETUPVARS: $(INSTALL_DIR)\setupvars.bat
IB_DIR: C:\Program Files (x86)\IncrediBuild
IB_TESTCONSOLE: $(IB_DIR)\IBTestConsole.exe
PYTHON_DIR: C:\hostedtoolcache\windows\Python\3.7.6\x64
PYTHON_DIR: C:\hostedtoolcache\windows\Python\3.10.7\x64
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
PYTHON_VENV_DIR: $(WORK_DIR)\.venv
steps:
- script: |
rd /Q /S $(WORK_DIR) & mkdir $(WORK_DIR)
rd /Q /S $(BUILD_DIR) & mkdir $(BUILD_DIR)
rd /Q /S $(WORK_DIR) & mkdir C:\hostedtoolcache\windows\Python\3.10.7
rd /Q /S $(BUILD_DIR) & mkdir C:\hostedtoolcache\windows\Python\3.10.7\x64
rd /Q /S $(BUILD_SAMPLES_DIR) & mkdir $(BUILD_SAMPLES_DIR)
rd /Q /S $(BUILD_SAMPLES_TESTS_DIR) & mkdir $(BUILD_SAMPLES_TESTS_DIR)
displayName: 'Make dir'
- script: curl -O https://www.python.org/ftp/python/3.10.7/python-3.10.7-amd64.exe
displayName: 'Download Python'
workingDirectory: $(WORK_DIR)
continueOnError: false
- script: |
python-3.10.7-amd64.exe /passive InstallAllUsers=0 Include_launcher=0 TargetDir=C:\hostedtoolcache\windows\Python\3.10.7\x64
cp C:\hostedtoolcache\windows\Python\3.8.2\x64.complete C:\hostedtoolcache\windows\Python\3.10.7\x64.complete
displayName: 'Install Python'
workingDirectory: $(WORK_DIR)
continueOnError: false
- task: UsePythonVersion@0
displayName: 'Use Python'
inputs:
versionSpec: '3.10.7'
disableDownloadFromRegistry: true
- script: |
powershell -command "Invoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -Uri http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01 | format-custom"
where python3
python3 --version
tree C:\hostedtoolcache\windows\Python
where python
python --version
where java
@@ -94,19 +122,6 @@ jobs:
set
displayName: 'System info'
- script: |
rd /Q /S $(WORK_DIR) & mkdir $(WORK_DIR)
rd /Q /S $(BUILD_DIR) & mkdir $(BUILD_DIR)
rd /Q /S $(BUILD_SAMPLES_DIR) & mkdir $(BUILD_SAMPLES_DIR)
rd /Q /S $(BUILD_SAMPLES_TESTS_DIR) & mkdir $(BUILD_SAMPLES_TESTS_DIR)
displayName: 'Make dir'
- script: |
curl -O https://openvinoweb.z5.web.core.windows.net/incredibuild/install_ib_console.bat
call install_ib_console.bat
workingDirectory: $(WORK_DIR)
displayName: 'Install IncrediBuild'
- checkout: self
clean: true
lfs: false
@@ -131,9 +146,11 @@ jobs:
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
python -m pip install -r $(REPO_DIR)\src\frontends\paddle\tests\requirements.txt
rem For running ONNX frontend unit tests
python -m pip install -r $(REPO_DIR)\src\frontends/onnx\tests\requirements.txt
python -m pip install -r $(REPO_DIR)\src\frontends\onnx\tests\requirements.txt
rem For running TensorFlow frontend unit tests
python -m pip install -r $(REPO_DIR)\src\frontends\tensorflow\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
@@ -164,33 +181,35 @@ jobs:
-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" ^
-DPYTHON_EXECUTABLE="C:\hostedtoolcache\windows\Python\3.10.7\x64\python.exe" ^
-DPYTHON_INCLUDE_DIR="C:\hostedtoolcache\windows\Python\3.10.7\x64\include" ^
-DPYTHON_LIBRARY="C:\hostedtoolcache\windows\Python\3.10.7\x64\libs\python310.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'
displayName: 'CMake OpenVINO'
- script: dir $(REPO_DIR)\temp\ /s
displayName: 'List temp SDKs'
- script: |
set PATH=$(WORK_DIR)\ninja-win;%PATH%
call "$(MSVS_VARS_PATH)" && "C:\Program Files (x86)\IncrediBuild\BuildConsole.exe" /COMMAND="$(CMAKE_CMD) --build $(BUILD_DIR) --config Release"
displayName: 'Build Win - IB'
call "$(MSVS_VARS_PATH)" && $(CMAKE_CMD) --build $(BUILD_DIR) --config Release"
displayName: 'Build Win'
- script: dir $(REPO_DIR)\bin\ /s
displayName: 'List bin files'
- script: $(CMAKE_CMD) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
- script: |
$(CMAKE_CMD) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_DIR)/cmake_install.cmake
displayName: 'Install'
- script: dir $(INSTALL_DIR) /s
displayName: 'List install files'
- script: python -m pip install openvino-dev --find-links=$(INSTALL_DIR)\tools
- script: |
python -m pip install openvino-dev --find-links=$(INSTALL_DIR)\tools
displayName: 'Install Wheels'
- script: |
@@ -201,7 +220,8 @@ jobs:
-B $(BUILD_SAMPLES_TESTS_DIR)
displayName: 'CMake Samples Tests'
- script: $(CMAKE_CMD) -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_SAMPLES_TESTS_DIR)\cmake_install.cmake
- script: |
$(CMAKE_CMD) -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_SAMPLES_TESTS_DIR)\cmake_install.cmake
displayName: 'Install Samples Tests'
- script: $(INSTALL_DIR)\samples\cpp\build_samples_msvc.bat -i $(INSTALL_DIR)
@@ -212,7 +232,8 @@ jobs:
displayName: 'Build c samples'
continueOnError: false
- script: python -m pip install -r $(INSTALL_TEST_DIR)\smoke_tests\requirements.txt
- script: |
python -m pip install -r $(INSTALL_TEST_DIR)\smoke_tests\requirements.txt
displayName: 'Install dependencies for samples smoke tests'
continueOnError: false
@@ -239,6 +260,18 @@ jobs:
displayName: 'OV Core UT'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_inference_functional_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-InferenceFunc.xml
displayName: 'Inference Func Tests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_inference_unit_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-InferenceUnit.xml
displayName: 'Inference Unit Tests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_conditional_compilation_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ConditionalCompilation.xml
displayName: 'Conditional Compilation Tests'
continueOnError: false
- 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
@@ -255,8 +288,14 @@ jobs:
displayName: 'TensorFlow Frontend Unit Tests'
continueOnError: false
# set PATH=$(IB_DIR);%PATH%
# 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)\ov_lp_transformations_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)\LpTransformations.xml
displayName: 'Low Precision Transformations Tests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_transformations_tests --gtest_print_time=1 --gtest_output=xml:$(INSTALL_TEST_DIR)\Transformations.xml
displayName: 'Transformations Tests'
continueOnError: false
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\InferenceEngineUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-InferenceEngineUnitTests.xml
displayName: 'IE UT old'
continueOnError: false
@@ -293,8 +332,6 @@ jobs:
displayName: 'TEMPLATE FuncTests'
continueOnError: false
# set PATH=$(IB_DIR);%PATH%
# 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
@@ -326,8 +363,3 @@ jobs:
buildPlatform: 'x64' # Optional
buildConfiguration: 'Windows' # Optional
#publishRunAttachments: true # Optional
- script: echo Stop IncrediBuild_Agent && net stop IncrediBuild_Agent
displayName: Stop IncrediBuild
continueOnError: true
enabled: false

View File

@@ -3,6 +3,7 @@ trigger:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -16,6 +17,7 @@ pr:
include:
- master
- releases/*
- customer_A
paths:
exclude:
- docs/
@@ -24,10 +26,18 @@ pr:
- README.md
- /**/layer_tests_summary/**
resources:
repositories:
- repository: testdata
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: releases/2022/3
jobs:
- job: WinCC
# About 150% of total time
timeoutInMinutes: 60
timeoutInMinutes: 120
pool:
name: WIN_VMSS_VENV_F8S_WU2
@@ -41,6 +51,7 @@ jobs:
MODELS_PATH: $(REPO_DIR)\..\testdata
WORK_DIR: $(Pipeline.Workspace)\_w
BUILD_DIR: $(WORK_DIR)\build
BUILD_DIR_2: $(WORK_DIR)\build_s
MSVS_VARS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
MSVC_COMPILER_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe
INSTALL_DIR: $(WORK_DIR)\install_pkg
@@ -49,8 +60,6 @@ jobs:
steps:
- script: |
powershell -command "Invoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -Uri http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01 | format-custom"
where python3
python3 --version
where python
python --version
where java
@@ -65,6 +74,7 @@ jobs:
- script: |
rd /Q /S $(WORK_DIR) & mkdir $(WORK_DIR)
rd /Q /S $(BUILD_DIR) & mkdir $(BUILD_DIR)
rd /Q /S $(BUILD_DIR_2) & mkdir $(BUILD_DIR_2)
displayName: 'Make dir'
- checkout: self
@@ -80,6 +90,11 @@ jobs:
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
- checkout: testdata
clean: true
lfs: true
path: testdata
- script: |
set PATH=$(WORK_DIR)\ninja-win;%PATH%
call "$(MSVS_VARS_PATH)" && cmake -GNinja ^
@@ -90,6 +105,18 @@ jobs:
-DSELECTIVE_BUILD=COLLECT ^
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DENABLE_INTEL_GPU=OFF ^
-DENABLE_MULTI=OFF ^
-DENABLE_AUTO=OFF ^
-DENABLE_AUTO_BATCH=OFF ^
-DENABLE_HETERO=OFF ^
-DENABLE_TEMPLATE=OFF ^
-DENABLE_INTEL_MYRIAD=OFF ^
-DENABLE_INTEL_MYRIAD_COMMON=OFF ^
-DENABLE_TESTS=OFF ^
-DENABLE_OV_ONNX_FRONTEND=OFF ^
-DENABLE_OV_PADDLE_FRONTEND=OFF ^
-DENABLE_OV_TF_FRONTEND=OFF ^
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
displayName: 'CMake'
@@ -97,16 +124,54 @@ jobs:
- script: dir $(REPO_DIR)\temp\ /s
displayName: 'List temp SDKs'
- script: call "$(MSVS_VARS_PATH)" && $(WORK_DIR)\ninja-win\ninja
- script: |
call "$(MSVS_VARS_PATH)" && cmake --build . --config $(BUILD_TYPE) && cmake --build . --config $(BUILD_TYPE) --target sea_itt_lib
workingDirectory: $(BUILD_DIR)
displayName: 'Build Win CC'
displayName: 'Build Win CC COLLECT'
- script: dir $(REPO_DIR)\bin\ /s
displayName: 'List bin files'
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_DIR)
displayName: 'Install'
- script: |
call "$(MSVS_VARS_PATH)" && python thirdparty\itt_collector\runtool\sea_runtool.py --bindir $(REPO_DIR)\bin\intel64\$(BUILD_TYPE) -o $(BUILD_DIR)\itt_stat ! $(REPO_DIR)\bin\intel64\$(BUILD_TYPE)\benchmark_app.exe -niter 1 -nireq 1 -m $(MODELS_PATH)\models\test_model\test_model_fp32.xml -d CPU
workingDirectory: $(REPO_DIR)
displayName: 'Code usage analysis'
- script: dir $(INSTALL_DIR) /s
displayName: 'List install files'
- script: |
call "$(MSVS_VARS_PATH)" && cmake -G"Visual Studio 16 2019" ^
-DVERBOSE_BUILD=ON ^
-DENABLE_FASTER_BUILD=ON ^
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) ^
-DENABLE_PROFILING_ITT=OFF ^
-DSELECTIVE_BUILD=ON ^
-DSELECTIVE_BUILD_STAT=$(BUILD_DIR)\*.csv ^
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DENABLE_INTEL_GPU=OFF ^
-DENABLE_MULTI=OFF ^
-DENABLE_AUTO=OFF ^
-DENABLE_AUTO_BATCH=OFF ^
-DENABLE_HETERO=OFF ^
-DENABLE_TEMPLATE=OFF ^
-DENABLE_INTEL_MYRIAD=OFF ^
-DENABLE_INTEL_MYRIAD_COMMON=OFF ^
-DENABLE_TESTS=OFF ^
-DENABLE_OV_ONNX_FRONTEND=OFF ^
-DENABLE_OV_PADDLE_FRONTEND=OFF ^
-DENABLE_OV_TF_FRONTEND=OFF ^
$(REPO_DIR)
workingDirectory: $(BUILD_DIR_2)
displayName: 'CMake2'
- script: cmake --build . --config $(BUILD_TYPE)
workingDirectory: $(BUILD_DIR_2)
displayName: 'Build WinCC ON'
- script: dir $(REPO_DIR)\bin\ /s
displayName: 'List bin files ON'
# TODO: Enable after the fix on CPU side
# - script: |
# $(REPO_DIR)\bin\intel64\$(BUILD_TYPE)\benchmark_app.exe -niter 1 -nireq 1 -m $(MODELS_PATH)\models\test_model\test_model_fp32.xml -d CPU
# workingDirectory: $(REPO_DIR)
# displayName: 'Use OpenVINO after CC'

View File

@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04
LABEL version=2021.03.30.1
@@ -25,16 +25,11 @@ ENV LC_ALL en_US.UTF-8
RUN apt-get update && apt-get -y --no-install-recommends install \
# OpenVINO dependencies
autoconf \
automake \
build-essential \
ninja-build \
cmake \
curl \
git \
libtool \
ocl-icd-opencl-dev \
pkg-config \
unzip \
libtbb-dev \
libpugixml-dev \
@@ -45,11 +40,7 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
python3-dev \
python3-virtualenv \
cython3 \
tox \
# ONNX dependencies
git-lfs \
protobuf-compiler \
libprotobuf-dev && \
tox && \
apt-get clean autoclean && \
apt-get autoremove -y
@@ -61,11 +52,13 @@ RUN cmake .. \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DENABLE_INTEL_MYRIAD_COMMON=OFF \
-DENABLE_INTEL_GNA=OFF \
-DENABLE_INTEL_GPU=OFF \
-DENABLE_HETERO=OFF \
-DENABLE_MULTI=OFF \
-DENABLE_BATCH=OFF \
-DENABLE_GAPI_PREPROCESSING=OFF \
-DENABLE_CPPLINT=OFF \
-DENABLE_NCC_STYLE=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_INTEL_CPU=ON \
-DENABLE_INTEL_GPU=OFF \
-DENABLE_PROFILING_ITT=OFF \
-DENABLE_SAMPLES=OFF \
-DENABLE_OV_PADDLE_FRONTEND=OFF \
@@ -78,5 +71,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}/python_api/python3.8:${PYTHONPATH}
ENV PYTHONPATH=/openvino/bin/intel64/${BUILD_TYPE}/python_api/python3.10:${PYTHONPATH}
CMD tox

1
.gitattributes vendored
View File

@@ -64,6 +64,7 @@
*.gif filter=lfs diff=lfs merge=lfs -text
*.vsdx filter=lfs diff=lfs merge=lfs -text
*.bmp filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
#POT attributes
tools/pot/tests/data/test_cases_refs/* filter=lfs diff=lfs merge=lfs -text

View File

@@ -14,8 +14,8 @@ import json
from pathlib import Path
if sys.version_info[:2] < (3, 6):
raise Exception("Python version must be >= 3.6")
if sys.version_info[:2] < (3, 7):
raise Exception("Python version must be >= 3.7")
class ConfigException(Exception):

View File

@@ -1,6 +1,9 @@
name: Documentation
on: [push, pull_request]
env:
DOXY_VER: '1.9.6'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
@@ -13,18 +16,51 @@ jobs:
- name: Clone OpenVINO
uses: actions/checkout@v2
with:
submodules: recursive
submodules: true
lfs: true
# cache from ccache
- name: Cache ccache
id: cache_restore
uses: actions/cache@v3
with:
path: .ccache
key: doc-ccache-cache
- name: Install ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: doc-ccache-cache
save: false
# cache from doxygen build
- name: Cache doxygen make
id: cache_doxygen_make
uses: actions/cache@v3
with:
path: doxygen-build
key: build-doxygen-cache
# cache from python packages
- name: Cache python requirements
id: cache_python_requirements
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: doc-python-requirements
- name: Install apt-get tools
uses: awalsh128/cache-apt-pkgs-action@v1.1.3
# install doc dependencies
with:
packages: graphviz texlive liblua5.2-0
version: 3.0
- name: Install dependencies
run: |
set -e
# install doc dependencies
sudo apt update
sudo apt --assume-yes install libusb-1.0-0-dev graphviz texlive liblua5.2-0
cd docs
python3 -m pip install -r requirements.txt --user
cd openvino_sphinx_theme
python3 -m pip install -r docs/requirements.txt --user
cd docs/openvino_sphinx_theme
python3 setup.py install --user
cd ../..
# install doxyrest
@@ -32,27 +68,30 @@ jobs:
tar -xf doxyrest-2.1.3-linux-amd64.tar.xz
echo "$(pwd)/doxyrest-2.1.3-linux-amd64/bin/" >> $GITHUB_PATH
# install doxygen
mkdir doxygen
cd doxygen
git clone https://github.com/doxygen/doxygen.git
cd doxygen
git checkout Release_1_9_2
mkdir build
cd build
cmake ..
cmake --build . -j`nproc`
sudo make install
wget https://www.doxygen.nl/files/doxygen-$DOXY_VER.linux.bin.tar.gz
tar -xzf doxygen-$DOXY_VER.linux.bin.tar.gz
echo "$(pwd)/doxygen-$DOXY_VER/bin/" >> $GITHUB_PATH
- name: CMake doc
run: |
mkdir build
cd build
cmake -DENABLE_DOCS=ON -DENABLE_PYTHON=ON -DCMAKE_BUILD_TYPE=Release ..
cmake \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DENABLE_INTEL_MYRIAD_COMMON=OFF \
-DENABLE_DOCS=ON \
-DCMAKE_BUILD_TYPE=Release \
-B build
- name: Cache documentation
id: cache_sphinx_docs
uses: actions/cache@v3
with:
path: build/docs/_build/.doctrees
key: sphinx-docs-cache
- name: Build doc
run: |
cmake --build . --target sphinx_docs -j`nproc`
working-directory: build
cmake --build build --target sphinx_docs -j`nproc`
- name: Archive HTML
run: |

View File

@@ -27,22 +27,19 @@ jobs:
submodules: recursive
lfs: true
- name: Check cmake
run: |
which cmake
cmake --version
- name: Install OpenCL
uses: awalsh128/cache-apt-pkgs-action@v1.2.4
if: runner.os == 'Linux'
with:
packages: ocl-icd-opencl-dev opencl-headers
version: 3.0
- name: CMake
run: |
mkdir build
cd build
cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -DCMAKE_BUILD_TYPE=Release ..
- name: CMake configure
run: cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -DCMAKE_BUILD_TYPE=Release -B build
- 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
run: cmake --build build --target ie_docs_snippets -j${{ steps.cpu-cores.outputs.count }}

View File

@@ -2,10 +2,15 @@ name: MO
on:
push:
paths:
- 'openvino/tools/mo/**'
- 'tools/mo/**'
- '.github/workflows/mo.yml'
branches:
- 'master'
- 'releases/**'
pull_request:
paths:
- 'openvino/tools/mo/**'
- 'tools/mo/**'
- '.github/workflows/mo.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -17,53 +22,36 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.10'
- name: Cache pip
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('openvino/tools/mo/requirements*.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('tools/mo/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
# tensorflow 1.15 causes modules import
# errors, most likely due to https://github.com/PyCQA/pylint/issues/2603
# for tensorflow.core.framework and tensorflow.contrib
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
# For UT
pip install unittest-xml-reporting==3.0.2
# MO requirements
pip install -r requirements.txt
pip install -r requirements_mxnet.txt
pip install -r requirements_caffe.txt
pip install -r requirements_kaldi.txt
pip install -r requirements_onnx.txt
pip install -r requirements_tf2.txt
pip install -r requirements_dev.txt
# requrements for CMake
sudo apt update
sudo apt --assume-yes install libusb-1.0-0-dev
working-directory: openvino/tools/mo
working-directory: tools/mo
- name: Pylint
run: pylint -d C,R,W openvino/tools/mo/ openvino/tools/mo/mo.py
working-directory: openvino/tools/mo
- name: CMake
run: |
mkdir build
cd build
cmake ..
- name: UT
run: |
export PYTHONPATH=$PYTHONPATH:`pwd`
export MO_ROOT=`pwd`
env
mkdir ../mo-ut-logs
python3 -m xmlrunner discover -p *_test.py --output=../mo-ut-logs
working-directory: openvino/tools/mo
run: pylint -d C,R,W openvino/tools/mo
working-directory: tools/mo

1
.gitignore vendored
View File

@@ -12,6 +12,7 @@ cmake-build*
# developer tools
*.idea
.vscode
.vs/
.DS_Store
**/tags
compile_commands.json

4
.gitmodules vendored
View File

@@ -63,7 +63,3 @@
path = thirdparty/json/nlohmann_json
url = https://github.com/nlohmann/json.git
shallow = true
[submodule "thirdparty/json/nlohmann_json_schema_validator"]
path = thirdparty/json/nlohmann_json_schema_validator
url = https://github.com/pboettch/json-schema-validator.git
shallow = true

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -50,6 +50,8 @@ message (STATUS "CMAKE_C_COMPILER_ID ................... " ${CMAKE_C_COMPILER_ID
message (STATUS "CMAKE_CXX_COMPILER_ID ................. " ${CMAKE_CXX_COMPILER_ID})
message (STATUS "CMAKE_BUILD_TYPE ...................... " ${CMAKE_BUILD_TYPE})
message (STATUS "CMAKE_TOOLCHAIN_FILE .................. " ${CMAKE_TOOLCHAIN_FILE})
message (STATUS "GLIBC_VERSION....... .................. " ${OV_GLIBC_VERSION})
# remove file with exported developer targets to force its regeneration
file(REMOVE "${CMAKE_BINARY_DIR}/ngraphTargets.cmake")
@@ -105,7 +107,10 @@ endif()
add_subdirectory(thirdparty)
add_subdirectory(src)
add_subdirectory(samples)
if(ENABLE_SAMPLES OR ENABLE_TESTS OR ENABLE_COMPILE_TOOL)
add_subdirectory(samples)
endif()
# Enable interpreter backend for tests
if (ENABLE_TESTS OR ENABLE_TEMPLATE)

View File

@@ -150,7 +150,7 @@ The latest documentation for OpenVINO™ Toolkit is available [here](https://doc
The list of OpenVINO tutorials:
- [Jupiter notebooks](https://github.com/openvinotoolkit/openvino_notebooks)
- [Jupyter notebooks](https://github.com/openvinotoolkit/openvino_notebooks)
## Products which use OpenVINO

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -86,6 +86,18 @@ function(ov_download_tbb)
set(IE_PATH_TO_DEPS "${THIRDPARTY_SERVER_PATH}")
endif()
if(NOT DEFINED ENV{TBBROOT} AND (DEFINED ENV{TBB_DIR} OR DEFINED TBB_DIR))
if(DEFINED ENV{TBB_DIR})
set(TEMP_ROOT $ENV{TBB_DIR})
elseif (DEFINED TBB_DIR)
set(TEMP_ROOT ${TBB_DIR})
endif()
while(NOT EXISTS "${TEMP_ROOT}/include")
get_filename_component(TEMP_ROOT ${TEMP_ROOT} PATH)
endwhile()
set(TBBROOT ${TEMP_ROOT})
endif()
if(WIN32 AND X86_64)
# TODO: add target_path to be platform specific as well, to avoid following if
RESOLVE_DEPENDENCY(TBB
@@ -94,7 +106,7 @@ function(ov_download_tbb)
ENVIRONMENT "TBBROOT"
SHA256 "01cac3cc48705bd52b83a6e1fa1ed95c708928be76160f5b9c5c37f954d56df4"
USE_NEW_LOCATION TRUE)
elseif(ANDROID AND X86_64) # Should be before LINUX due LINUX is detected as well
elseif(ANDROID AND X86_64)
RESOLVE_DEPENDENCY(TBB
ARCHIVE_ANDROID "tbb2020_20200404_android.tgz"
TARGET_PATH "${TEMP}/tbb"
@@ -102,10 +114,11 @@ function(ov_download_tbb)
SHA256 "f42d084224cc2d643314bd483ad180b081774608844000f132859fca3e9bf0ce")
elseif(LINUX AND X86_64)
RESOLVE_DEPENDENCY(TBB
ARCHIVE_LIN "tbb2020_20200415_lin_strip.tgz"
ARCHIVE_LIN "tbb2020_617e9a71_lin_strip.tgz"
TARGET_PATH "${TEMP}/tbb"
ENVIRONMENT "TBBROOT"
SHA256 "95b2f3b0b70c7376a0c7de351a355c2c514b42c4966e77e3e34271a599501008")
SHA256 "e7a38f68059fb36de8b59d40b283a849f26275e34a58d2acadfdb84d49e31b9b"
USE_NEW_LOCATION TRUE)
elseif(YOCTO_AARCH64)
RESOLVE_DEPENDENCY(TBB
ARCHIVE_LIN "keembay/tbb2020_38404_kmb_lic.tgz"
@@ -114,10 +127,11 @@ function(ov_download_tbb)
SHA256 "321261ff2eda6d4568a473cb883262bce77a93dac599f7bd65d2918bdee4d75b")
elseif(APPLE AND X86_64)
RESOLVE_DEPENDENCY(TBB
ARCHIVE_MAC "tbb2020_20200404_mac.tgz"
ARCHIVE_MAC "tbb2020_617e9a71_mac.tgz"
TARGET_PATH "${TEMP}/tbb"
ENVIRONMENT "TBBROOT"
SHA256 "ad9cf52e657660058aa6c6844914bc0fc66241fec89a392d8b79a7ff69c3c7f6")
SHA256 "67a44b695bef3348416eaf5bf2baca2b1401576c0e09c394304eba1e0eee96cd"
USE_NEW_LOCATION TRUE)
else()
message(WARNING "Prebuilt TBB is not available on current platform")
endif()
@@ -171,7 +185,7 @@ function(ov_download_tbbbind_2_5)
TARGET_PATH "${TEMP}/tbbbind_2_5"
ENVIRONMENT "TBBBIND_2_5_ROOT"
SHA256 "a67afeea8cf194f97968c800dab5b5459972908295242e282045d6b8953573c1")
elseif((LINUX AND NOT ANDROID) AND X86_64)
elseif(LINUX AND X86_64)
RESOLVE_DEPENDENCY(TBBBIND_2_5
ARCHIVE_LIN "tbbbind_2_5_static_lin_v2.tgz"
TARGET_PATH "${TEMP}/tbbbind_2_5"
@@ -239,30 +253,28 @@ if(ENABLE_OPENCV)
if(YOCTO_AARCH64)
set(OPENCV_SUFFIX "yocto_kmb")
set(OPENCV_BUILD "${OPENCV_BUILD_YOCTO}")
elseif(ARM)
set(OPENCV_SUFFIX "debian9arm")
set(OPENCV_HASH "4274f8c40b17215f4049096b524e4a330519f3e76813c5a3639b69c48633d34e")
elseif((LINUX_OS_NAME STREQUAL "CentOS 7" OR
CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9") AND X86_64)
elseif((OV_GLIBC_VERSION VERSION_GREATER_EQUAL 2.17 AND
CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9") AND X86_64)
set(OPENCV_SUFFIX "centos7")
set(OPENCV_HASH "5fa76985c84fe7c64531682ef0b272510c51ac0d0565622514edf1c88b33404a")
elseif(LINUX_OS_NAME MATCHES "CentOS 8" AND X86_64)
set(OPENCV_SUFFIX "centos8")
set(OPENCV_HASH "db087dfd412eedb8161636ec083ada85ff278109948d1d62a06b0f52e1f04202")
elseif(LINUX_OS_NAME STREQUAL "Ubuntu 16.04" AND X86_64)
set(OPENCV_SUFFIX "ubuntu16")
set(OPENCV_HASH "cd46831b4d8d1c0891d8d22ff5b2670d0a465a8a8285243059659a50ceeae2c3")
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 "Ubuntu 21.10" OR
LINUX_OS_NAME STREQUAL "Ubuntu 22.04" OR
LINUX_OS_NAME STREQUAL "LinuxMint 20.1") AND X86_64)
elseif(OV_GLIBC_VERSION VERSION_GREATER_EQUAL 2.31 AND X86_64)
set(OPENCV_SUFFIX "ubuntu20")
set(OPENCV_HASH "2fe7bbc40e1186eb8d099822038cae2821abf617ac7a16fadf98f377c723e268")
elseif(OV_GLIBC_VERSION VERSION_GREATER_EQUAL 2.27 AND X86_64)
set(OPENCV_SUFFIX "ubuntu18")
set(OPENCV_HASH "db087dfd412eedb8161636ec083ada85ff278109948d1d62a06b0f52e1f04202")
elseif(OV_GLIBC_VERSION VERSION_GREATER_EQUAL 2.24 AND ARM)
set(OPENCV_SUFFIX "debian9arm")
set(OPENCV_HASH "4274f8c40b17215f4049096b524e4a330519f3e76813c5a3639b69c48633d34e")
elseif(OV_GLIBC_VERSION VERSION_GREATER_EQUAL 2.23 AND X86_64)
set(OPENCV_SUFFIX "ubuntu16")
set(OPENCV_HASH "cd46831b4d8d1c0891d8d22ff5b2670d0a465a8a8285243059659a50ceeae2c3")
# elseif((LINUX_OS_NAME STREQUAL "CentOS 8" OR
# LINUX_OS_NAME STREQUAL "CentOS 9") AND X86_64)
# set(OPENCV_SUFFIX "centos8")
# set(OPENCV_HASH "db087dfd412eedb8161636ec083ada85ff278109948d1d62a06b0f52e1f04202")
elseif(NOT DEFINED OpenCV_DIR AND NOT DEFINED ENV{OpenCV_DIR})
message(FATAL_ERROR "OpenCV is not available on current platform (${LINUX_OS_NAME})")
message(FATAL_ERROR "OpenCV is not available on current platform (OS = ${CMAKE_SYSTEM_NAME}, glibc ${OV_GLIBC_VERSION})")
endif()
RESOLVE_DEPENDENCY(OPENCV
ARCHIVE_LIN "opencv/opencv_${OPENCV_VERSION}-${OPENCV_BUILD}_${OPENCV_SUFFIX}.txz"
@@ -294,8 +306,8 @@ if(ENABLE_INTEL_GNA)
GNA_LIB_DIR
libGNA_INCLUDE_DIRS
libGNA_LIBRARIES_BASE_PATH)
set(GNA_VERSION "03.00.00.1815.1")
set(GNA_HASH "682eb01e5a148ea03b90ee12b7fd67afb1479f35ccf2966f83b208e50e91633c")
set(GNA_VERSION "03.00.00.1910")
set(GNA_HASH "894ddbc0ae3459f04513b853b0cabc32890dd4ea37228a022b6a32101bdbb7f8")
set(FILES_TO_EXTRACT_LIST gna_${GNA_VERSION}/include)
if(WIN32)
@@ -305,7 +317,7 @@ 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

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -24,7 +24,6 @@ function(set_ci_build_number)
endfunction()
include(features)
include(message)
set_ci_build_number()
@@ -215,6 +214,8 @@ set(CMAKE_POLICY_DEFAULT_CMP0026 NEW)
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.12+: find_package() uses <PackageName>_ROOT variables.
set(CMAKE_POLICY_DEFAULT_CMP0074 NEW)
# CMake 3.13+: option() honors normal variables.
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# CMake 3.22+ :cmake_dependent_option() supports full Condition Syntax

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,64 +1,81 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
if(WIN32)
set(PROGRAMFILES_ENV "ProgramFiles(X86)")
file(TO_CMAKE_PATH $ENV{${PROGRAMFILES_ENV}} PROGRAMFILES)
set(UWP_SDK_PATH "${PROGRAMFILES}/Windows Kits/10/bin/${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}/x64")
message(STATUS "Trying to find apivalidator in: ${UWP_SDK_PATH}")
find_host_program(UWP_API_VALIDATOR
set(WDK_PATHS "${PROGRAMFILES}/Windows Kits/10/bin/${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}/x64"
"${PROGRAMFILES}/Windows Kits/10/bin/x64")
message(STATUS "Trying to find apivalidator in: ")
foreach(wdk_path IN LISTS WDK_PATHS)
message(" * ${wdk_path}")
endforeach()
find_host_program(ONECORE_API_VALIDATOR
NAMES apivalidator
PATHS "${UWP_SDK_PATH}"
DOC "ApiValidator for UWP compliance")
PATHS ${WDK_PATHS}
DOC "ApiValidator for OneCore compliance")
if(UWP_API_VALIDATOR)
message(STATUS "Found apivalidator: ${UWP_API_VALIDATOR}")
if(ONECORE_API_VALIDATOR)
message(STATUS "Found apivalidator: ${ONECORE_API_VALIDATOR}")
endif()
endif()
function(_ie_add_api_validator_post_build_step_recursive)
cmake_parse_arguments(API_VALIDATOR "" "TARGET" "" ${ARGN})
list(APPEND API_VALIDATOR_TARGETS ${API_VALIDATOR_TARGET})
set(API_VALIDATOR_TARGETS ${API_VALIDATOR_TARGETS} PARENT_SCOPE)
get_target_property(IS_IMPORTED ${API_VALIDATOR_TARGET} IMPORTED)
if(IS_IMPORTED)
return()
endif()
get_target_property(LIBRARY_TYPE ${API_VALIDATOR_TARGET} TYPE)
if(LIBRARY_TYPE STREQUAL "EXECUTABLE" OR LIBRARY_TYPE STREQUAL "SHARED_LIBRARY")
get_target_property(LINKED_LIBRARIES ${API_VALIDATOR_TARGET} LINK_LIBRARIES)
if(LINKED_LIBRARIES)
foreach(ITEM IN LISTS LINKED_LIBRARIES)
if(NOT TARGET ${ITEM})
continue()
endif()
get_target_property(LIBRARY_TYPE_DEPENDENCY ${ITEM} TYPE)
if(LIBRARY_TYPE_DEPENDENCY STREQUAL "SHARED_LIBRARY")
_ie_add_api_validator_post_build_step_recursive(TARGET ${ITEM})
endif()
endforeach()
endif()
if(LIBRARY_TYPE MATCHES "^(SHARED_LIBRARY|MODULE_LIBRARY|EXECUTABLE)$" AND
NOT ${API_VALIDATOR_TARGET} IN_LIST API_VALIDATOR_TARGETS)
list(APPEND API_VALIDATOR_TARGETS ${API_VALIDATOR_TARGET})
endif()
# keep checks target list to track cyclic dependencies, leading to infinite recursion
list(APPEND checked_targets ${API_VALIDATOR_TARGET})
if(NOT LIBRARY_TYPE STREQUAL "INTERFACE_LIBRARY")
get_target_property(LINKED_LIBRARIES ${API_VALIDATOR_TARGET} LINK_LIBRARIES)
else()
set(LINKED_LIBRARIES)
endif()
get_target_property(INTERFACE_LINKED_LIBRARIES ${API_VALIDATOR_TARGET} INTERFACE_LINK_LIBRARIES)
foreach(library IN LISTS LINKED_LIBRARIES INTERFACE_LINKED_LIBRARIES)
if(TARGET "${library}")
get_target_property(orig_library ${library} ALIASED_TARGET)
if(orig_library IN_LIST checked_targets OR library IN_LIST checked_targets)
# in case of cyclic dependencies, we need to skip current target
continue()
endif()
if(TARGET "${orig_library}")
_ie_add_api_validator_post_build_step_recursive(TARGET ${orig_library})
else()
_ie_add_api_validator_post_build_step_recursive(TARGET ${library})
endif()
endif()
endforeach()
set(API_VALIDATOR_TARGETS ${API_VALIDATOR_TARGETS} PARENT_SCOPE)
endfunction()
set(VALIDATED_LIBRARIES "" CACHE INTERNAL "")
set(VALIDATED_TARGETS "" CACHE INTERNAL "")
function(_ov_add_api_validator_post_build_step)
set(UWP_API_VALIDATOR_APIS "${PROGRAMFILES}/Windows Kits/10/build/universalDDIs/x64/UniversalDDIs.xml")
set(UWP_API_VALIDATOR_EXCLUSION "${UWP_SDK_PATH}/BinaryExclusionlist.xml")
find_file(ONECORE_API_VALIDATOR_APIS NAMES UniversalDDIs.xml
PATHS "${PROGRAMFILES}/Windows Kits/10/build/${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}/universalDDIs/x64"
"${PROGRAMFILES}/Windows Kits/10/build/universalDDIs/x64"
DOC "Path to UniversalDDIs.xml file")
find_file(ONECORE_API_VALIDATOR_EXCLUSION NAMES BinaryExclusionlist.xml
PATHS ${WDK_PATHS}
DOC "Path to BinaryExclusionlist.xml file")
if((NOT UWP_API_VALIDATOR) OR (WINDOWS_STORE OR WINDOWS_PHONE))
if((NOT ONECORE_API_VALIDATOR) OR (WINDOWS_STORE OR WINDOWS_PHONE))
return()
endif()
cmake_parse_arguments(API_VALIDATOR "" "TARGET" "" ${ARGN})
cmake_parse_arguments(API_VALIDATOR "" "TARGET" "EXTRA" "" ${ARGN})
if(NOT API_VALIDATOR_TARGET)
message(FATAL_ERROR "RunApiValidator requires TARGET to validate!")
@@ -69,74 +86,81 @@ function(_ov_add_api_validator_post_build_step)
endif()
# collect targets
_ie_add_api_validator_post_build_step_recursive(TARGET ${API_VALIDATOR_TARGET})
if (API_VALIDATOR_EXTRA)
foreach(target IN LISTS API_VALIDATOR_EXTRA)
_ie_add_api_validator_post_build_step_recursive(TARGET ${target})
endforeach()
endif()
# remove targets which were tested before
foreach(target IN LISTS API_VALIDATOR_TARGETS)
list(FIND VALIDATED_LIBRARIES ${target} index)
if (NOT index EQUAL -1)
list(APPEND VALIDATED_TARGETS ${target})
endif()
if(TARGET "${target}")
get_target_property(orig_target ${target} ALIASED_TARGET)
list(FIND VALIDATED_LIBRARIES ${orig_target} index)
if (NOT index EQUAL -1)
list(APPEND VALIDATED_TARGETS ${target})
endif()
endif()
endforeach()
foreach(item IN LISTS VALIDATED_TARGETS)
list(REMOVE_ITEM API_VALIDATOR_TARGETS ${item})
endforeach()
list(REMOVE_DUPLICATES API_VALIDATOR_TARGETS)
if(NOT API_VALIDATOR_TARGETS)
return()
endif()
# apply check
macro(api_validator_get_target_name)
get_target_property(IS_IMPORTED ${target} IMPORTED)
get_target_property(is_imported ${target} IMPORTED)
get_target_property(orig_target ${target} ALIASED_TARGET)
if(IS_IMPORTED)
get_target_property(target_location ${target} LOCATION)
get_filename_component(target_name "${target_location}" NAME_WE)
if(is_imported)
get_target_property(imported_configs ${target} IMPORTED_CONFIGURATIONS)
foreach(imported_config RELEASE RELWITHDEBINFO DEBUG)
if(imported_config IN_LIST imported_configs)
get_target_property(target_location ${target} IMPORTED_LOCATION_${imported_config})
get_filename_component(target_name "${target_location}" NAME_WE)
break()
endif()
endforeach()
unset(imported_configs)
elseif(TARGET "${orig_target}")
set(target_name ${orig_target})
set(target_location $<TARGET_FILE:${orig_target}>)
else()
set(target_name ${target})
set(target_location $<TARGET_FILE:${target}>)
endif()
unset(orig_target)
unset(is_imported)
endmacro()
foreach(target IN LISTS API_VALIDATOR_TARGETS)
api_validator_get_target_name()
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.21 AND OV_GENERATOR_MULTI_CONFIG)
set(output_file "${CMAKE_BINARY_DIR}/api_validator/$<CONFIG>/${target_name}.txt")
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.20 AND OV_GENERATOR_MULTI_CONFIG)
set(output_file "${OpenVINO_BINARY_DIR}/api_validator/$<CONFIG>/${target_name}.txt")
else()
set(output_file "${CMAKE_BINARY_DIR}/api_validator/${target_name}.txt")
set(output_file "${OpenVINO_BINARY_DIR}/api_validator/${target_name}.txt")
endif()
add_custom_command(TARGET ${API_VALIDATOR_TARGET} POST_BUILD
COMMAND ${CMAKE_COMMAND} --config $<CONFIG>
-D UWP_API_VALIDATOR=${UWP_API_VALIDATOR}
-D UWP_API_VALIDATOR_TARGET=$<TARGET_FILE:${target}>
-D UWP_API_VALIDATOR_APIS=${UWP_API_VALIDATOR_APIS}
-D UWP_API_VALIDATOR_EXCLUSION=${UWP_API_VALIDATOR_EXCLUSION}
-D UWP_API_VALIDATOR_OUTPUT=${output_file}
list(APPEND post_build_commands
${CMAKE_COMMAND} --config $<CONFIG>
-D ONECORE_API_VALIDATOR=${ONECORE_API_VALIDATOR}
-D ONECORE_API_VALIDATOR_TARGET=${target_location}
-D ONECORE_API_VALIDATOR_APIS=${ONECORE_API_VALIDATOR_APIS}
-D ONECORE_API_VALIDATOR_EXCLUSION=${ONECORE_API_VALIDATOR_EXCLUSION}
-D ONECORE_API_VALIDATOR_OUTPUT=${output_file}
-D CMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
-P "${IEDevScripts_DIR}/api_validator/api_validator_run.cmake"
BYPRODUCTS ${output_file}
COMMENT "[apiValidator] Check ${target_name} for OneCore compliance"
VERBATIM)
-P "${IEDevScripts_DIR}/api_validator/api_validator_run.cmake")
list(APPEND byproducts_files ${output_file})
unset(target_name)
unset(target_location)
endforeach()
add_custom_command(TARGET ${API_VALIDATOR_TARGET} POST_BUILD
COMMAND ${post_build_commands}
BYPRODUCTS ${byproducts_files}
COMMENT "[apiValidator] Check ${API_VALIDATOR_TARGET} and dependencies for OneCore compliance"
VERBATIM)
# update list of validated libraries
list(APPEND VALIDATED_LIBRARIES ${API_VALIDATOR_TARGETS})
set(VALIDATED_LIBRARIES "${VALIDATED_LIBRARIES}" CACHE INTERNAL "" FORCE)
list(APPEND VALIDATED_TARGETS ${API_VALIDATOR_TARGETS})
set(VALIDATED_TARGETS "${VALIDATED_TARGETS}" CACHE INTERNAL "" FORCE)
endfunction()
#

View File

@@ -1,12 +1,12 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
cmake_policy(SET CMP0012 NEW)
foreach(var UWP_API_VALIDATOR UWP_API_VALIDATOR_TARGET
UWP_API_VALIDATOR_APIS UWP_API_VALIDATOR_EXCLUSION
UWP_API_VALIDATOR_OUTPUT CMAKE_TOOLCHAIN_FILE)
foreach(var ONECORE_API_VALIDATOR ONECORE_API_VALIDATOR_TARGET
ONECORE_API_VALIDATOR_APIS ONECORE_API_VALIDATOR_EXCLUSION
ONECORE_API_VALIDATOR_OUTPUT CMAKE_TOOLCHAIN_FILE)
if(NOT DEFINED ${var})
message(FATAL_ERROR "Variable ${var} is not defined")
endif()
@@ -14,18 +14,18 @@ endforeach()
# create command
if(NOT EXISTS "${UWP_API_VALIDATOR_APIS}")
message(FATAL_ERROR "${UWP_API_VALIDATOR_APIS} does not exist")
if(NOT EXISTS "${ONECORE_API_VALIDATOR_APIS}")
message(FATAL_ERROR "${ONECORE_API_VALIDATOR_APIS} does not exist")
endif()
set(command "${UWP_API_VALIDATOR}"
-SupportedApiXmlFiles:${UWP_API_VALIDATOR_APIS}
-DriverPackagePath:${UWP_API_VALIDATOR_TARGET})
if(EXISTS "${UWP_API_VALIDATOR_EXCLUSION}")
set(command "${ONECORE_API_VALIDATOR}"
-SupportedApiXmlFiles:${ONECORE_API_VALIDATOR_APIS}
-DriverPackagePath:${ONECORE_API_VALIDATOR_TARGET})
if(EXISTS "${ONECORE_API_VALIDATOR_EXCLUSION}")
list(APPEND command
-BinaryExclusionListXmlFile:${UWP_API_VALIDATOR_EXCLUSION}
-BinaryExclusionListXmlFile:${ONECORE_API_VALIDATOR_EXCLUSION}
-StrictCompliance:TRUE)
set(UWP_HAS_BINARY_EXCLUSION ON)
set(ONECORE_HAS_BINARY_EXCLUSION ON)
endif()
# execute
@@ -36,13 +36,13 @@ execute_process(COMMAND ${command}
RESULT_VARIABLE exit_code
OUTPUT_STRIP_TRAILING_WHITESPACE)
file(WRITE "${UWP_API_VALIDATOR_OUTPUT}" "${output_message}\n\n\n${error_message}")
file(WRITE "${ONECORE_API_VALIDATOR_OUTPUT}" "CMAKE COMMAND: ${command}\n\n\n${output_message}\n\n\n${error_message}")
# post-process output
get_filename_component(name "${UWP_API_VALIDATOR_TARGET}" NAME)
get_filename_component(name "${ONECORE_API_VALIDATOR_TARGET}" NAME)
if(NOT UWP_HAS_BINARY_EXCLUSION)
if(NOT ONECORE_HAS_BINARY_EXCLUSION)
if(CMAKE_TOOLCHAIN_FILE MATCHES "onecoreuap.toolchain.cmake$")
# empty since we compile with static MSVC runtime
else()
@@ -66,7 +66,7 @@ endif()
# write output
if(UWP_HAS_BINARY_EXCLUSION AND NOT exit_code EQUAL 0)
if(ONECORE_HAS_BINARY_EXCLUSION AND NOT exit_code EQUAL 0)
message(FATAL_ERROR "${error_message}")
endif()

View File

@@ -1,24 +1,25 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
if(ENABLE_CLANG_FORMAT)
set(CLANG_FORMAT_FILENAME clang-format-9 clang-format)
set(clang_format_required_version 9)
set(CLANG_FORMAT_FILENAME clang-format-${clang_format_required_version} 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)
message(WARNING "Supported clang-format version is 9!")
message(WARNING "Supported clang-format version is ${clang_format_required_version}!")
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)
if(NOT CLANG_FORMAT_MAJOR_VERSION EQUAL clang_format_required_version)
message(WARNING "Supported clang-format version is 9! Provided version ${CLANG_FORMAT_MAJOR_VERSION}")
set(ENABLE_CLANG_FORMAT OFF)
endif()
endif()
else()
message(WARNING "Supported clang-format version is not found!")
message(WARNING "Supported clang-format-${clang_format_required_version} is not found!")
set(ENABLE_CLANG_FORMAT OFF)
endif()
endif()
@@ -65,6 +66,10 @@ function(add_clang_format_target TARGET_NAME)
continue()
endif()
if(IS_DIRECTORY "${source_file}")
message(FATAL_ERROR "Directory ${source_file} cannot be passed to clang-format")
endif()
file(RELATIVE_PATH source_file_relative "${CMAKE_CURRENT_SOURCE_DIR}" "${source_file}")
set(output_file "${CMAKE_CURRENT_BINARY_DIR}/clang_format/${source_file_relative}.clang")
string(REPLACE ".." "__" output_file "${output_file}")

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -268,6 +268,9 @@ if(WIN32)
if (CMAKE_VERSION VERSION_LESS 3.24)
ie_add_compiler_flags(/WX)
endif()
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /WX")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /WX")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /WX")
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
ie_add_compiler_flags(/Qdiag-warning:47,1740,1786)
endif()
@@ -310,7 +313,7 @@ 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()
if (CMAKE_COMPILE_WARNING_AS_ERROR AND CMAKE_VERSION VERSION_LESS 3.24)
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")
@@ -321,9 +324,9 @@ else()
ie_add_compiler_flags(-Wreturn-type)
ie_add_compiler_flags(-Wunused-variable)
if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
if(OV_COMPILER_IS_APPLECLANG)
ie_add_compiler_flags(-Wswitch)
elseif(UNIX)
else()
ie_add_compiler_flags(-Wuninitialized -Winit-self)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
ie_add_compiler_flags(-Winconsistent-missing-override
@@ -350,7 +353,7 @@ else()
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-dead_strip")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-dead_strip")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-dead_strip")
elseif(LINUX)
else()
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--exclude-libs,ALL")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--gc-sections -Wl,--exclude-libs,ALL")
if(NOT ENABLE_FUZZING)
@@ -380,3 +383,11 @@ function(link_system_libraries TARGET_NAME)
endif()
endforeach()
endfunction()
function(ov_try_use_gold_linker)
# gold linker on ubuntu20.04 may fail to link binaries build with sanitizer
if(CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_SANITIZER AND NOT CMAKE_CROSSCOMPILING)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fuse-ld=gold" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-ld=gold" PARENT_SCOPE)
endif()
endfunction()

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -31,7 +31,15 @@ function (GetNameAndUrlToDownload name url archive_name_unified archive_name_win
endif()
set (${name} ${archive_name} PARENT_SCOPE)
set (${url} "thirdparty/${PLATFORM_FOLDER}/${archive_name}" PARENT_SCOPE)
set(HDDL_DEPENDENCIES "")
string(REGEX MATCH "hddl_.*_19.*" HDDL_DEPENDENCIES ${archive_name})
if(NOT ${HDDL_DEPENDENCIES} EQUAL "")
set (${url} "${archive_name}" PARENT_SCOPE)
else()
set (${url} "thirdparty/${PLATFORM_FOLDER}/${archive_name}" PARENT_SCOPE)
endif()
endif()
endfunction(GetNameAndUrlToDownload)

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -7,7 +7,8 @@ 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 OR (APPLE AND AARCH64);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)
@@ -87,8 +88,8 @@ if(ENABLE_AVX512F)
if ((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6))
set(ENABLE_AVX512F OFF CACHE BOOL "" FORCE)
endif()
if ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10))
# TBD: clarify which AppleClang version supports avx512
if (OV_COMPILER_IS_APPLECLANG AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10)
# TODO: clarify which AppleClang version supports avx512
set(ENABLE_AVX512F OFF CACHE BOOL "" FORCE)
endif()
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9))

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -166,7 +166,7 @@ macro(ov_add_frontend)
add_library(openvino::frontend::${OV_FRONTEND_NAME} ALIAS ${TARGET_NAME})
endif()
# Shutdown protobuf when unloading the front dynamic library
# Shutdown protobuf when unloading the frontend dynamic library
if(proto_files AND BUILD_SHARED_LIBS)
target_link_libraries(${TARGET_NAME} PRIVATE ov_protobuf_shutdown)
endif()
@@ -201,8 +201,6 @@ macro(ov_add_frontend)
ie_add_vs_version_file(NAME ${TARGET_NAME}
FILEDESCRIPTION ${OV_FRONTEND_FILEDESCRIPTION})
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
target_link_libraries(${TARGET_NAME} PUBLIC openvino::runtime)
target_link_libraries(${TARGET_NAME} PRIVATE ${OV_FRONTEND_LINK_LIBRARIES})
ov_add_library_version(${TARGET_NAME})
@@ -235,10 +233,15 @@ macro(ov_add_frontend)
endif()
add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME}
EXCLUDE_PATTERNS ${PROTO_SRCS} ${PROTO_HDRS})
EXCLUDE_PATTERNS ${PROTO_SRCS} ${PROTO_HDRS} ${proto_files})
add_dependencies(ov_frontends ${TARGET_NAME})
# must be called after all target_link_libraries
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
# installation
if(NOT OV_FRONTEND_SKIP_INSTALL)
if(BUILD_SHARED_LIBS)
# Note:

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2018-2022 Intel Corporation
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

View File

@@ -1,23 +1,24 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
include(target_flags)
if (LINUX)
if(LINUX)
function(get_linux_name res_var)
if (NOT EXISTS "/etc/lsb-release")
execute_process(COMMAND find -L /etc/ -maxdepth 1 -type f -name *-release -exec cat {} \;
OUTPUT_VARIABLE release_data RESULT_VARIABLE result)
string(REPLACE "Red Hat" "CentOS" release_data "${release_data}")
set(name_regex "NAME=\"([^ \"\n]*).*\"\n")
set(version_regex "VERSION=\"([0-9]+(\\.[0-9]+)?)[^\n]*\"")
else ()
if(EXISTS "/etc/lsb-release")
# linux version detection using cat /etc/lsb-release
file(READ "/etc/lsb-release" release_data)
set(name_regex "DISTRIB_ID=([^ \n]*)\n")
set(version_regex "DISTRIB_RELEASE=([0-9]+(\\.[0-9]+)?)")
endif ()
else()
execute_process(COMMAND find -L /etc/ -maxdepth 1 -type f -name *-release -exec cat {} \;
OUTPUT_VARIABLE release_data
RESULT_VARIABLE result)
string(REPLACE "Red Hat" "CentOS" release_data "${release_data}")
set(name_regex "NAME=\"([^ \"\n]*).*\"\n")
set(version_regex "VERSION=\"([0-9]+(\\.[0-9]+)?)[^\n]*\"")
endif()
string(REGEX MATCH ${name_regex} name ${release_data})
set(os_name ${CMAKE_MATCH_1})
@@ -25,7 +26,7 @@ if (LINUX)
string(REGEX MATCH ${version_regex} version ${release_data})
set(os_name "${os_name} ${CMAKE_MATCH_1}")
if (os_name)
if(os_name)
set(${res_var} ${os_name} PARENT_SCOPE)
else ()
set(${res_var} NOTFOUND PARENT_SCOPE)

View File

@@ -1,27 +0,0 @@
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
if(UNIX AND ENABLE_ERROR_HIGHLIGHT)
function(message)
string(ASCII 27 ESC)
set(RESET "${ESC}[m")
set(RED "${ESC}[31;1m")
set(YELLOW "${ESC}[33;1m")
list(GET ARGV 0 MessageType)
list(REMOVE_AT ARGV 0)
foreach(arg IN LISTS ARGV)
set(_msg "${_msg}${arg}")
endforeach()
if(MessageType STREQUAL FATAL_ERROR OR MessageType STREQUAL SEND_ERROR)
_message(${MessageType} "${RED}${_msg}${RESET}")
elseif(MessageType STREQUAL WARNING)
_message(${MessageType} "${YELLOW}${_msg}${RESET}")
else()
_message(${MessageType} "${_msg}")
endif()
endfunction()
endif()

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -3,7 +3,7 @@ CppMethod: '^(operator\W+|[a-z_\d]+|signaling_NaN|quiet_NaN)$'
ClassName: '^([A-Z][\w]+|b?float16|numeric_limits|ngraph_error|stopwatch|unsupported_op)$'
StructName: '^([A-Z][\w]+|element_type_traits|hash|oi_pair)$'
FunctionName: '^(operator\W+|[a-z_\d]+)|PrintTo$'
Namespace: '^([a-z\d_]+|InferenceEngine)$'
Namespace: '^([a-z\d_]*|InferenceEngine)$'
NamespaceAlias: '^([a-z\d_]+|InferenceEngine)$'
UnionName: '[A-Z][\w]+$'
TemplateTemplateParameter: '[A-Z][\w]+'

View File

@@ -1,6 +1,6 @@
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'
clang==14.0; python_version == '3.11'
pyyaml

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2018-2022 Intel Corporation
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2018-2022 Intel Corporation
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2018-2022 Intel Corporation
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -14,10 +14,14 @@ macro(ov_common_libraries_cpack_set_dirs)
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})
if(WIN32)
set(OV_CPACK_RUNTIMEDIR ${CMAKE_INSTALL_BINDIR})
else()
set(OV_CPACK_RUNTIMEDIR ${CMAKE_INSTALL_LIBDIR})
endif()
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_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR}/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})
@@ -65,7 +69,7 @@ macro(ov_override_component_names)
# 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}")
# set(OV_CPACK_COMP_CORE_TOOLS "${OV_CPACK_COMP_CORE_DEV}")
endmacro()
ov_override_component_names()

View File

@@ -1,31 +0,0 @@
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'.

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -13,14 +13,23 @@ 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})
if(CMAKE_CROSSCOMPILING)
if(ARM)
set(OV_CPACK_RUNTIMEDIR "${OV_CPACK_RUNTIMEDIR}/arm-linux-gnueabihf")
elseif(AARCH64)
set(OV_CPACK_RUNTIMEDIR "${OV_CPACK_RUNTIMEDIR}/aarch64-linux-gnu")
elseif(X86)
set(OV_CPACK_RUNTIMEDIR "${OV_CPACK_RUNTIMEDIR}/i386-linux-gnu")
endif()
endif()
set(OV_CPACK_LIBRARYDIR ${OV_CPACK_RUNTIMEDIR})
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_ARCHIVEDIR ${OV_CPACK_RUNTIMEDIR})
set(OV_CPACK_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR}/openvino-${OpenVINO_VERSION})
set(OV_CPACK_IE_CMAKEDIR ${OV_CPACK_RUNTIMEDIR}/cmake/inferenceengine${OpenVINO_VERSION})
set(OV_CPACK_NGRAPH_CMAKEDIR ${OV_CPACK_RUNTIMEDIR}/cmake/ngraph${OpenVINO_VERSION})
set(OV_CPACK_OPENVINO_CMAKEDIR ${OV_CPACK_RUNTIMEDIR}/cmake/openvino${OpenVINO_VERSION})
set(OV_CPACK_DOCDIR ${CMAKE_INSTALL_DATADIR}/doc/openvino-${OpenVINO_VERSION})
set(OV_CPACK_PYTHONDIR lib/python3/dist-packages)
@@ -34,7 +43,7 @@ macro(ov_debian_cpack_set_dirs)
set(OV_CPACK_WHEELSDIR "tools")
# for BW compatibility
set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR})
set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_RUNTIMEDIR})
set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR})
set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR})
endmacro()
@@ -61,7 +70,7 @@ macro(ov_override_component_names)
# 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}")
# set(OV_CPACK_COMP_CORE_TOOLS "${OV_CPACK_COMP_CORE_DEV}")
endmacro()
ov_override_component_names()
@@ -82,7 +91,7 @@ macro(ov_debian_specific_settings)
# 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")
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)
@@ -145,9 +154,9 @@ file(WRITE "${def_triggers}" "${triggers_content}")
#
#
# ov_debian_add_changelog_and_copyright(<comp name>)
# ov_debian_add_changelog_and_copyright(<comp name> <copyright_name>)
#
function(ov_debian_add_changelog_and_copyright comp)
function(ov_debian_add_changelog_and_copyright comp copyright_name)
string(TOUPPER "${comp}" ucomp)
if(NOT DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
@@ -158,9 +167,10 @@ function(ov_debian_add_changelog_and_copyright comp)
# copyright
install(FILES "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/copyright"
install(FILES "${OpenVINO_SOURCE_DIR}/cmake/packaging/copyrights/${copyright_name}"
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/${package_name}/
COMPONENT ${comp})
COMPONENT ${comp}
RENAME "copyright")
# create changelog.gz
@@ -169,7 +179,7 @@ function(ov_debian_add_changelog_and_copyright comp)
message(FATAL_ERROR "Failed to find gzip tool")
endif()
set(changelog_src "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/changelog")
set(changelog_src "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/debian/changelog")
set(package_bin_dir "${OpenVINO_BINARY_DIR}/_CPack_Packages/${package_name}")
set(changelog_output "${package_bin_dir}/changelog")
@@ -267,6 +277,7 @@ macro(ov_debian_add_latest_component comp)
set(CPACK_COMPONENT_${upper_case}_DESCRIPTION "${CPACK_COMPONENT_${ucomp}_DESCRIPTION}")
set(CPACK_COMPONENT_${upper_case}_ARCHITECTURE "all")
set(CPACK_COMPONENT_${upper_case}_DEPENDS "${comp}")
set(${comp_name}_copyright "generic")
# take package name
if(DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
@@ -277,10 +288,6 @@ macro(ov_debian_add_latest_component comp)
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()

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -157,9 +157,9 @@ ov_define_component_names()
# - ov_add_lintian_suppression()
# - ov_add_latest_component()
if(CPACK_GENERATOR STREQUAL "DEB")
include(packaging/debian)
include(packaging/debian/debian)
elseif(CPACK_GENERATOR STREQUAL "RPM")
include(packaging/rpm)
include(packaging/rpm/rpm)
elseif(CPACK_GENERATOR STREQUAL "NSIS")
include(packaging/nsis)
elseif(CPACK_GENERATOR MATCHES "^(CONDA-FORGE|BREW)$")
@@ -171,7 +171,7 @@ macro(ie_cpack)
set(CPACK_GENERATOR "TGZ")
endif()
set(CPACK_SOURCE_GENERATOR "") # not used
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenVINO™ Toolkit for Deep Learning Inference")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenVINO™ Toolkit")
set(CPACK_COMPONENT_UNSPECIFIED_REQUIRED OFF)
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
set(CPACK_PACKAGE_VENDOR "Intel Corporation")

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -20,7 +20,7 @@ foreach(rpm_file IN LISTS CPACK_PACKAGE_FILES)
set(file_option --file "${rpmlint_overrides}")
endif()
execute_process(COMMAND "${rpmlint_PROGRAM}" ${file_option} ${rpm_file}
execute_process(COMMAND "${rpmlint_PROGRAM}" --strict ${file_option} ${rpm_file}
RESULT_VARIABLE rpmlint_exit_code
OUTPUT_VARIABLE rpmlint_output)
@@ -29,6 +29,8 @@ foreach(rpm_file IN LISTS CPACK_PACKAGE_FILES)
message("${rpmlint_output}")
set(rpmlint_passed OFF)
endif()
unset(file_option)
endforeach()
if(NOT rpmlint_passed)

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
@@ -22,6 +22,7 @@ macro(ov_rpm_cpack_set_dirs)
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)
ov_get_pyversion(pyversion)
if(pyversion)
@@ -29,7 +30,7 @@ macro(ov_rpm_cpack_set_dirs)
endif()
# non-native stuff
set(OV_CPACK_SHAREDIR ${CMAKE_INSTALL_DATADIR}/openvino-${OpenVINO_VERSION}) # internal
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)
@@ -66,7 +67,7 @@ macro(ov_override_component_names)
# 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}")
# set(OV_CPACK_COMP_CORE_TOOLS "${OV_CPACK_COMP_CORE_DEV}")
endmacro()
ov_override_component_names()
@@ -80,8 +81,6 @@ macro(ov_rpm_specific_settings)
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
@@ -90,9 +89,9 @@ macro(ov_rpm_specific_settings)
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")
# set(CPACK_RPM_CHANGELOG_FILE "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/rpm/changelog")
# use rpmlint to check packages in post-build step
set(CPACK_POST_BUILD_SCRIPTS "${IEDevScripts_DIR}/packaging/rpm_post_build.cmake")
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)
@@ -101,16 +100,28 @@ macro(ov_rpm_specific_settings)
# 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")
set(CPACK_RPM_PACKAGE_RELEASE "1")
# enable this if someday we change the version scheme
# set(CPACK_RPM_PACKAGE_EPOCH "2")
# temporary WA for rpm 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_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")
set(triggers_content "# /bin/sh -p\n/sbin/ldconfig\n")
file(WRITE "${def_triggers}" "${triggers_content}")
#
@@ -118,9 +129,9 @@ file(WRITE "${def_triggers}" "${triggers_content}")
#
#
# ov_rpm_copyright(<comp name>)
# ov_rpm_copyright(<comp name> <copyright_name>)
#
function(ov_rpm_copyright comp)
function(ov_rpm_copyright comp copyright_name)
string(TOUPPER "${comp}" ucomp)
if(NOT DEFINED CPACK_RPM_${ucomp}_PACKAGE_NAME)
message(FATAL_ERROR "CPACK_RPM_${ucomp}_PACKAGE_NAME is not defined")
@@ -131,9 +142,10 @@ function(ov_rpm_copyright comp)
# copyright
install(FILES "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/copyright"
install(FILES "${OpenVINO_SOURCE_DIR}/cmake/packaging/copyrights/${copyright_name}"
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/${package_name}/
COMPONENT ${comp})
COMPONENT ${comp}
RENAME "copyright")
endfunction()
#
@@ -160,15 +172,21 @@ function(ov_rpm_add_rpmlint_suppression comp)
if(DEFINED CPACK_RPM_${ucomp}_PACKAGE_ARCHITECTURE)
set(arch "${CPACK_RPM_${ucomp}_PACKAGE_ARCHITECTURE}")
elseif(DEFINED CPACK_RPM_PACKAGE_ARCHITECTURE)
set(arch "${CPACK_RPM_PACKAGE_ARCHITECTURE}")
elseif(X86_64)
set(arch "x86_64")
elseif(X86)
set(arch "i686")
elseif(AARCH64)
set(arch "aarch64")
elseif(ARM)
set(arch "armhf")
else()
message(FATAL_ERROR "RPM: Unsupported architecture ${CMAKE_SYSTEM_PROCESSOR}")
endif()
set(package_file_name "${package_name}-${OpenVINO_VERSION}-1.${arch}.rpm")
set(package_file_name "${package_name}-${CPACK_PACKAGE_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})
@@ -215,8 +233,9 @@ macro(ov_rpm_add_latest_component comp)
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_REQUIRES "${CPACK_RPM_${ucomp}_PACKAGE_NAME} = ${cpack_full_ver}")
set(CPACK_RPM_${upper_case}_PACKAGE_ARCHITECTURE "noarch")
set(${comp_name}_copyright "generic")
# take package name
if(DEFINED CPACK_RPM_${ucomp}_PACKAGE_NAME)

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2018-2022 Intel Corporation
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
# Target system specific flags
@@ -53,6 +53,8 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm64.*|aarch64.*|AARCH64.*)")
set(AARCH64 ON)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*)")
set(ARM ON)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^riscv64$")
set(RISCV64 ON)
endif()
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
@@ -63,9 +65,11 @@ 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)
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^riscv64$")
set(HOST_RISCV64 ON)
endif()
if(UNIX AND NOT APPLE)
if(UNIX AND NOT (APPLE OR ANDROID))
set(LINUX ON)
endif()
@@ -73,12 +77,50 @@ 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)
if(EXISTS "/etc/debian_version")
set(OV_OS_DEBIAN ON)
elseif(EXISTS "/etc/redhat-release")
set(OV_OS_RHEL ON)
endif()
if(CMAKE_CXX_COMPILER MATCHES ".*conda.*")
set(OV_COMPILER_IS_CONDA ON)
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
set(OV_COMPILER_IS_CLANG ON)
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
set(OV_COMPILER_IS_APPLECLANG ON)
endif()
endif()
get_property(OV_GENERATOR_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
function(ov_glibc_version)
if(LINUX)
function(ov_get_definition definition var)
execute_process(COMMAND echo "#include <errno.h>"
COMMAND "${CMAKE_CXX_COMPILER}" -xc - -E -dM
COMMAND grep -E "^#define ${definition} "
OUTPUT_VARIABLE glibc_version_component
ERROR_VARIABLE error_message
RESULT_VARIABLE exit_code
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT exit_code EQUAL 0)
message(FATAL_ERROR "Failed to detect glibc version: ${error_message}\n${glibc_version_component}")
endif()
if(glibc_version_component MATCHES "^#define ${definition} ([0-9]+)")
set("${var}" "${CMAKE_MATCH_1}" PARENT_SCOPE)
else()
message(FATAL_ERROR "Internal error: failed to parse ${definition} from '${glibc_version_component}'")
endif()
endfunction()
ov_get_definition("__GLIBC__" _ov_glibc_major)
ov_get_definition("__GLIBC_MINOR__" _ov_glibc_minor)
set(OV_GLIBC_VERSION "${_ov_glibc_major}.${_ov_glibc_minor}" PARENT_SCOPE)
else()
set(OV_GLIBC_VERSION "0.0" PARENT_SCOPE)
endif()
endfunction()
ov_glibc_version()

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
# TBB_FOUND should not be set explicitly. It is defined automatically by CMake.

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 Intel Corporation
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

Some files were not shown because too many files have changed in this diff Show More