Compare commits

...

329 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
13106 changed files with 46411 additions and 41831 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
@@ -107,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
@@ -134,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.10 &&
RUN_PREFIX: . $(SETUPVARS) &&
maxParallel: 2
# About 150% of total time
@@ -94,8 +96,6 @@ jobs:
CMAKE_VERSION: 3.24.0
BUILD_PYTHON: $(WORK_DIR)/build_python
INSTALL_PYTHON: $(INSTALL_OPENVINO)/extras/python
PY_VENV: $(WORK_DIR)/.venv
PYTHON_VERSION: 3.10.7
steps:
- script: |
@@ -143,33 +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 libbz2-dev clang
# For opencv-python: python3-setuptools and pip upgrade
wget https://www.python.org/ftp/python/"$PYTHON_VERSION"/Python-"$PYTHON_VERSION".tgz
tar -xzf Python-"$PYTHON_VERSION".tgz
cd Python-"$PYTHON_VERSION" || exit
./configure --enable-optimizations --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make python
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
/usr/local/bin/python3.10 -m venv $(PY_VENV)
. $(PY_VENV)/bin/activate
echo Python3 info ; which python3 ; python3 --version
python3 --version
python3.10 --version
curl https://bootstrap.pypa.io/get-pip.py | python3
# 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
@@ -180,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
@@ -232,7 +214,6 @@ jobs:
-DENABLE_PYTHON=ON
-DBUILD_SHARED_LIBS=$(CMAKE_BUILD_SHARED_LIBS)
-DENABLE_ONEDNN_FOR_GPU=$(CMAKE_BUILD_SHARED_LIBS)
-DPYTHON_EXECUTABLE=$(PY_VENV)/bin/python3.10
-DENABLE_TESTS=ON
-DENABLE_OV_ONNX_FRONTEND=ON
-DENABLE_FASTER_BUILD=ON
@@ -286,9 +267,7 @@ jobs:
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: |
. $(PY_VENV)/bin/activate
python3 -m pip install openvino-dev --find-links=$(INSTALL_DIR)/tools
- script: python3 -m pip install openvino-dev --find-links=$(INSTALL_DIR)/tools
displayName: 'Install python wheels'
- script: |
set -e
@@ -299,11 +278,10 @@ jobs:
# Skip test_onnx/test_zoo_models and test_onnx/test_backend due to long execution time
- script: |
. $(PY_VENV)/bin/activate
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 \
@@ -313,11 +291,10 @@ jobs:
# Skip test_onnx/test_zoo_models and test_onnx/test_backend due to long execution time
- script: |
. $(PY_VENV)/bin/activate
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
@@ -331,9 +308,8 @@ jobs:
continueOnError: false
- script: |
. $(PY_VENV)/bin/activate
# 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
@@ -505,16 +481,13 @@ jobs:
workingDirectory: $(BUILD_SAMPLES_TESTS_DIR)
displayName: 'Install Samples Tests'
- script: |
. $(PY_VENV)/bin/activate
python3 -m pip install -r $(INSTALL_TEST_DIR)/smoke_tests/requirements.txt
- 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
- script: |
. $(PY_VENV)/bin/activate
export PATH=$HOME/.local/bin:$PATH
export IE_APP_PATH=$(INSTALL_DIR)/samples_bin
export LD_LIBRARY_PATH=$IE_APP_PATH:$LD_LIBRARY_PATH
@@ -526,7 +499,6 @@ jobs:
continueOnError: false
- script: |
. $(PY_VENV)/bin/activate
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(REPO_DIR)/tools/mo/:$(LAYER_TESTS_DIR):$PYTHONPATH
export TEST_DEVICE=CPU
@@ -535,7 +507,6 @@ jobs:
continueOnError: false
- script: |
. $(PY_VENV)/bin/activate
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(REPO_DIR)/tools/mo/:$(LAYER_TESTS_DIR):$PYTHONPATH
export TEST_DEVICE=CPU
@@ -544,7 +515,6 @@ jobs:
continueOnError: false
- script: |
. $(PY_VENV)/bin/activate
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(LAYER_TESTS_DIR):$PYTHONPATH
$(RUN_PREFIX) python3 -m pytest $(LAYER_TESTS_DIR)/tensorflow_tests/test_tf_Roll.py --ir_version=10 --junitxml=$(INSTALL_TEST_DIR)/TEST-tf_Roll.xmlTEST
@@ -552,7 +522,6 @@ jobs:
continueOnError: false
- script: |
. $(PY_VENV)/bin/activate
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(LAYER_TESTS_DIR):$PYTHONPATH
export TEST_DEVICE=CPU
@@ -561,7 +530,6 @@ jobs:
continueOnError: false
- script: |
. $(PY_VENV)/bin/activate
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(LAYER_TESTS_DIR):$PYTHONPATH
export TEST_DEVICE=CPU
@@ -570,7 +538,6 @@ jobs:
continueOnError: false
- script: |
. $(PY_VENV)/bin/activate
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(LAYER_TESTS_DIR):$PYTHONPATH
export TEST_DEVICE=CPU
@@ -579,7 +546,6 @@ jobs:
continueOnError: false
- script: |
. $(PY_VENV)/bin/activate
python3 -m pip install -r $(LAYER_TESTS_DIR)/requirements.txt
export PYTHONPATH=$(LAYER_TESTS_DIR):$PYTHONPATH
export TEST_DEVICE=CPU

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
@@ -127,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
@@ -177,7 +179,6 @@ jobs:
-DENABLE_PYTHON=OFF
-DENABLE_TESTS=ON
-DENABLE_DATA=OFF
-DENABLE_LTO=ON
-DCMAKE_TOOLCHAIN_FILE=$(OPENVINO_REPO_DIR)/cmake/arm64.toolchain.cmake
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DENABLE_INTEL_MYRIAD=OFF

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,6 +32,7 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: releases/2022/3
jobs:
- job: LinCC
@@ -85,21 +88,7 @@ jobs:
- script: |
set -e
$(REPO_DIR)/install_build_dependencies.sh
wget https://www.python.org/ftp/python/3.10.6/Python-3.10.6.tgz
tar -xzf Python-3.10.6.tgz
cd Python-3.10.6 || exit
./configure --enable-optimizations --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make -j 1 python
sudo make -j 1 install
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
/usr/local/bin/python3.10 -m venv $(WORK_DIR)/.venv
. $(WORK_DIR)/.venv/bin/activate
echo Python3 info ; which python3 ; python3 --version
python3 --version
python3.10 --version
curl https://bootstrap.pypa.io/get-pip.py | python3
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
@@ -122,17 +111,13 @@ jobs:
-DENABLE_FASTER_BUILD=ON
-DENABLE_PROFILING_ITT=ON
-DSELECTIVE_BUILD=COLLECT
-DPYTHON_EXECUTABLE=$(WORK_DIR)/.venv/bin/python3.10
-DENABLE_CLDNN=OFF
-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
@@ -157,36 +142,18 @@ jobs:
inputs:
cmakeArgs: >
-GNinja
-DVERBOSE_BUILD=ON
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DENABLE_FASTER_BUILD=ON
-DENABLE_PROFILING_ITT=OFF
-DENABLE_CLDNN=OFF
-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
-DSELECTIVE_BUILD=ON
-DSELECTIVE_BUILD_STAT=$(BUILD_DIR)/*.csv
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: cmake --build .
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'
- 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
@@ -79,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
@@ -424,8 +428,7 @@ jobs:
export IE_APP_PYTHON_PATH=$(PYTHON_SAMPLES_INSTALL_DIR)/
export SHARE=$(INSTALL_TEST_DIR)/smoke_tests/samples_smoke_tests_data/
export WORKSPACE=$(INSTALL_DIR)
# GNA isn't a part of Debian package, so filter out that tests
python3 -m pytest $(INSTALL_TEST_DIR)/smoke_tests/ -k "not GNA" --env_conf $(INSTALL_TEST_DIR)/smoke_tests/env_config.yml -s --junitxml=$(INSTALL_TEST_DIR)/TEST-SamplesSmokeTests.xml
python3 -m pytest $(INSTALL_TEST_DIR)/smoke_tests/ --env_conf $(INSTALL_TEST_DIR)/smoke_tests/env_config.yml -s --junitxml=$(INSTALL_TEST_DIR)/TEST-SamplesSmokeTests.xml
displayName: 'Samples Smoke Tests'
continueOnError: false

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/
@@ -94,39 +96,30 @@ jobs:
- script: |
set -e
apt-get update && apt-get install -y lsb-release && apt-get clean all
sudo apt-get -y install libssl-dev zlib1g-dev
sudo apt-get -y install build-essential
wget https://www.python.org/ftp/python/3.10.7/Python-3.10.7.tgz
tar -xzf Python-3.10.7.tgz
cd Python-3.10.7 || exit
./configure --enable-optimizations --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make python
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
/usr/local/bin/python3.10 -m venv $(WORK_DIR)/.venv
. $(WORK_DIR)/.venv/bin/activate
echo Python3 info ; which python3 ; python3 --version
python3 --version
python3.10 --version
curl https://bootstrap.pypa.io/get-pip.py | python3
sudo apt --assume-yes install git-lfs uidmap
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
- script:
. $(WORK_DIR)/.venv/bin/activate
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/
@@ -47,8 +49,6 @@ jobs:
BUILD_DIR: $(WORK_DIR)/build
ONNXRUNTIME_UTILS: $(REPO_DIR)/.ci/azure/ci_utils/onnxruntime
ONNXRUNTIME_BUILD_DIR: $(ONNXRUNTIME_REPO_DIR)/build
PY_VENV: $(WORK_DIR)/.venv
PYTHON_VERSION: 3.10.7
steps:
- script: |
@@ -92,24 +92,7 @@ jobs:
- script: |
set -e
$(REPO_DIR)/install_build_dependencies.sh
wget https://www.python.org/ftp/python/"$PYTHON_VERSION"/Python-"$PYTHON_VERSION".tgz
tar -xzf Python-"$PYTHON_VERSION".tgz
cd Python-"$PYTHON_VERSION" || exit
./configure --enable-optimizations --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make python
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
/usr/local/bin/python3.10 -m venv $(PY_VENV)
. $(PY_VENV)/bin/activate
echo Python3 info ; which python3 ; python3 --version
python3 --version
python3.10 --version
curl https://bootstrap.pypa.io/get-pip.py | python3
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
@@ -126,17 +109,15 @@ jobs:
-GNinja
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
-DENABLE_PYTHON=ON
-DPYTHON_EXECUTABLE=$(PY_VENV)/bin/python3.10
-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)
@@ -150,17 +131,15 @@ jobs:
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
workingDirectory: $(BUILD_DIR)
displayName: 'Install'
displayName: 'Install OpenVINO'
- script: |
. $(PY_VENV)/bin/activate
source $(INSTALL_DIR)/setupvars.sh
CXXFLAGS="-Wno-error=deprecated-declarations" ./build.sh --config RelWithDebInfo --use_openvino CPU_FP32 --build_shared_lib --parallel --skip_tests --build_dir $(ONNXRUNTIME_BUILD_DIR)
workingDirectory: $(ONNXRUNTIME_REPO_DIR)
displayName: 'Build Lin ONNX Runtime'
- script: |
. $(PY_VENV)/bin/activate
source $(INSTALL_DIR)/setupvars.sh
skip_tests=`tr -s '\n ' ':' < $(ONNXRUNTIME_UTILS)/skip_tests`
./onnxruntime_test_all --gtest_filter=-$skip_tests
@@ -168,35 +147,30 @@ jobs:
displayName: 'Run onnxruntime_test_all'
- script: |
. $(PY_VENV)/bin/activate
source $(INSTALL_DIR)/setupvars.sh
./onnxruntime_shared_lib_test
workingDirectory: $(ONNXRUNTIME_BUILD_DIR)/RelWithDebInfo
displayName: 'Run onnxruntime_shared_lib_test'
- script: |
. $(PY_VENV)/bin/activate
source $(INSTALL_DIR)/setupvars.sh
./onnxruntime_global_thread_pools_test
workingDirectory: $(ONNXRUNTIME_BUILD_DIR)/RelWithDebInfo
displayName: 'Run onnxruntime_global_thread_pools_test'
- script: |
. $(PY_VENV)/bin/activate
source $(INSTALL_DIR)/setupvars.sh
./onnxruntime_api_tests_without_env
workingDirectory: $(ONNXRUNTIME_BUILD_DIR)/RelWithDebInfo
displayName: 'Run onnxruntime_api_tests_without_env'
- script: |
. $(PY_VENV)/bin/activate
source $(INSTALL_DIR)/setupvars.sh
./onnx_test_runner "$(ONNXRUNTIME_REPO_DIR)/cmake/external/onnx/onnx/backend/test/data/pytorch-converted"
workingDirectory: $(ONNXRUNTIME_BUILD_DIR)/RelWithDebInfo
displayName: 'Run pytorch-converted tests'
- script: |
. $(PY_VENV)/bin/activate
source $(INSTALL_DIR)/setupvars.sh
./onnx_test_runner "$(ONNXRUNTIME_REPO_DIR)/cmake/external/onnx/onnx/backend/test/data/pytorch-operator"
workingDirectory: $(ONNXRUNTIME_BUILD_DIR)/RelWithDebInfo

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
@@ -128,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,8 +73,6 @@ 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.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
@@ -122,12 +122,6 @@ jobs:
set
displayName: 'System info'
- 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
@@ -155,6 +149,8 @@ jobs:
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
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
@@ -192,15 +188,15 @@ jobs:
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-S $(REPO_DIR) -B $(BUILD_DIR)
displayName: 'CMake Samples Tests'
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'
@@ -222,7 +218,7 @@ jobs:
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-S $(REPO_DIR)\tests\samples_tests ^
-B $(BUILD_SAMPLES_TESTS_DIR)
displayName: 'CMake'
displayName: 'CMake Samples Tests'
- script: |
$(CMAKE_CMD) -DCOMPONENT=tests -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P $(BUILD_SAMPLES_TESTS_DIR)\cmake_install.cmake
@@ -300,8 +296,6 @@ jobs:
displayName: 'Transformations 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)\InferenceEngineUnitTests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-InferenceEngineUnitTests.xml
displayName: 'IE UT old'
continueOnError: false
@@ -338,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
@@ -371,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/
@@ -30,6 +32,7 @@ resources:
type: github
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
ref: releases/2022/3
jobs:
- job: WinCC
@@ -102,7 +105,6 @@ jobs:
-DSELECTIVE_BUILD=COLLECT ^
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DENABLE_CLDNN=OFF ^
-DENABLE_INTEL_GPU=OFF ^
-DENABLE_MULTI=OFF ^
-DENABLE_AUTO=OFF ^
@@ -145,7 +147,6 @@ jobs:
-DSELECTIVE_BUILD_STAT=$(BUILD_DIR)\*.csv ^
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DENABLE_CLDNN=OFF ^
-DENABLE_INTEL_GPU=OFF ^
-DENABLE_MULTI=OFF ^
-DENABLE_AUTO=OFF ^

View File

@@ -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 \

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

@@ -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
@@ -65,16 +68,9 @@ 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 --depth 1 https://github.com/doxygen/doxygen.git -b Release_1_9_2
cmake \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-S doxygen \
-B ../doxygen-build
cmake --build ../doxygen-build -j`nproc`
sudo cmake --build ../doxygen-build --target 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: |

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

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,8 +86,8 @@ 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})
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})
@@ -106,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"
@@ -185,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"
@@ -253,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"
@@ -308,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)
@@ -319,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
#
@@ -313,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")
@@ -324,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
@@ -353,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)
@@ -386,7 +386,7 @@ endfunction()
function(ov_try_use_gold_linker)
# gold linker on ubuntu20.04 may fail to link binaries build with sanitizer
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT ENABLE_SANITIZER AND NOT CMAKE_CROSSCOMPILING)
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()

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,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
#
@@ -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()

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
#
@@ -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)
@@ -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
@@ -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}")
#
@@ -161,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})
@@ -216,7 +233,7 @@ 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")

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
@@ -69,7 +69,7 @@ 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()
@@ -77,8 +77,50 @@ if(ENV{OECORE_NATIVE_SYSROOT} AND AARCH64)
set(YOCTO_AARCH64 ON)
endif()
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_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
#

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
#
@@ -33,7 +33,7 @@ function(ieTargetLinkWholeArchive targetName)
"-WHOLEARCHIVE:\"$<TARGET_FILE:${staticLib}>\""
)
endif()
elseif(APPLE)
elseif(OV_COMPILER_IS_APPLECLANG)
list(APPEND libs
"-Wl,-all_load"
${staticLib}

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
#
@@ -6,7 +6,7 @@
# Common cmake options
#
ie_dependent_option (ENABLE_INTEL_CPU "CPU plugin for inference engine" ON "X86_64" OFF)
ie_dependent_option (ENABLE_INTEL_CPU "CPU plugin for OpenVINO Runtime" ON "X86_64" OFF)
ie_option (ENABLE_TESTS "unit, behavior and functional tests" OFF)
@@ -14,11 +14,9 @@ ie_option (ENABLE_COMPILE_TOOL "Enables compile_tool" ON)
ie_option (ENABLE_STRICT_DEPENDENCIES "Skip configuring \"convinient\" dependencies for efficient parallel builds" ON)
ie_dependent_option (ENABLE_CLDNN "clDnn based plugin for inference engine" ON "X86_64;NOT APPLE;NOT MINGW;NOT WINDOWS_STORE;NOT WINDOWS_PHONE" OFF)
ie_dependent_option (ENABLE_INTEL_GPU "GPU plugin for inference engine on Intel GPU" ON "ENABLE_CLDNN" OFF)
ie_dependent_option (ENABLE_INTEL_GPU "GPU OpenCL-based plugin for OpenVINO Runtime" ON "X86_64;NOT APPLE;NOT MINGW;NOT WINDOWS_STORE;NOT WINDOWS_PHONE" OFF)
if (NOT ENABLE_CLDNN OR ANDROID OR
(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0))
if (ANDROID OR (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0))
# oneDNN doesn't support old compilers and android builds for now, so we'll
# build GPU plugin without oneDNN
set(ENABLE_ONEDNN_FOR_GPU_DEFAULT OFF)
@@ -26,7 +24,7 @@ else()
set(ENABLE_ONEDNN_FOR_GPU_DEFAULT ON)
endif()
ie_option (ENABLE_ONEDNN_FOR_GPU "Enable oneDNN with GPU support" ${ENABLE_ONEDNN_FOR_GPU_DEFAULT})
ie_dependent_option (ENABLE_ONEDNN_FOR_GPU "Enable oneDNN with GPU support" ${ENABLE_ONEDNN_FOR_GPU_DEFAULT} "ENABLE_INTEL_GPU" OFF)
ie_option (ENABLE_PROFILING_ITT "Build with ITT tracing. Optionally configure pre-built ittnotify library though INTEL_VTUNE_DIR variable." OFF)
@@ -43,15 +41,13 @@ In case SELECTIVE_BUILD is enabled, the SELECTIVE_BUILD_STAT variable should con
Usage: -DSELECTIVE_BUILD=ON -DSELECTIVE_BUILD_STAT=/path/*.csv" OFF
ALLOWED_VALUES ON OFF COLLECT)
ie_option(ENABLE_ERROR_HIGHLIGHT "Highlight errors and warnings during compile time" ON)
ie_option (ENABLE_DOCS "Build docs using Doxygen" OFF)
find_package(PkgConfig QUIET)
ie_dependent_option (ENABLE_PKGCONFIG_GEN "Enable openvino.pc pkg-config file generation" ON "LINUX OR APPLE;PkgConfig_FOUND;BUILD_SHARED_LIBS" OFF)
#
# Inference Engine specific options
# OpenVINO Runtime specific options
#
# "OneDNN library based on OMP or TBB or Sequential implementation: TBB|OMP|SEQ"
@@ -74,7 +70,7 @@ endif()
ie_dependent_option (ENABLE_TBBBIND_2_5 "Enable TBBBind_2_5 static usage in OpenVINO runtime" ${ENABLE_TBBBIND_2_5_DEFAULT} "THREADING MATCHES TBB" OFF)
ie_dependent_option (ENABLE_INTEL_GNA "GNA support for inference engine" ON
ie_dependent_option (ENABLE_INTEL_GNA "GNA support for OpenVINO Runtime" ON
"NOT APPLE;NOT ANDROID;X86_64;CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.4" OFF)
if(ENABLE_TESTS OR BUILD_SHARED_LIBS)
@@ -104,7 +100,7 @@ else()
set(ENABLE_INTEL_MYRIAD_DEFAULT ON)
endif()
ie_dependent_option (ENABLE_INTEL_MYRIAD "myriad targeted plugin for inference engine" ${ENABLE_INTEL_MYRIAD_DEFAULT} "NOT RISCV64;ENABLE_INTEL_MYRIAD_COMMON" OFF)
ie_dependent_option (ENABLE_INTEL_MYRIAD "myriad targeted plugin for OpenVINO Runtime" ${ENABLE_INTEL_MYRIAD_DEFAULT} "NOT RISCV64;ENABLE_INTEL_MYRIAD_COMMON" OFF)
ie_dependent_option (ENABLE_MYRIAD_NO_BOOT "myriad plugin will skip device boot" OFF "ENABLE_INTEL_MYRIAD" OFF)
@@ -116,11 +112,11 @@ ie_dependent_option (ENABLE_MYRIAD_MVNC_TESTS "functional and behavior tests for
ie_dependent_option (ENABLE_DATA "fetch models from testdata repo" ON "ENABLE_FUNCTIONAL_TESTS;NOT ANDROID" OFF)
ie_dependent_option (ENABLE_BEH_TESTS "tests oriented to check inference engine API correctness" ON "ENABLE_TESTS" OFF)
ie_dependent_option (ENABLE_BEH_TESTS "tests oriented to check OpenVINO Runtime API correctness" ON "ENABLE_TESTS" OFF)
ie_dependent_option (ENABLE_FUNCTIONAL_TESTS "functional tests" ON "ENABLE_TESTS" OFF)
ie_option (ENABLE_SAMPLES "console samples are part of inference engine package" ON)
ie_option (ENABLE_SAMPLES "console samples are part of OpenVINO Runtime package" ON)
ie_option (ENABLE_OPENCV "enables custom OpenCV download" OFF)
@@ -128,22 +124,24 @@ ie_option (ENABLE_V7_SERIALIZE "enables serialization to IR v7" OFF)
set(OPENVINO_EXTRA_MODULES "" CACHE STRING "Extra paths for extra modules to include into OpenVINO build")
ie_dependent_option(ENABLE_TBB_RELEASE_ONLY "Only Release TBB libraries are linked to the Inference Engine binaries" ON "THREADING MATCHES TBB;LINUX" OFF)
ie_dependent_option(ENABLE_TBB_RELEASE_ONLY "Only Release TBB libraries are linked to the OpenVINO Runtime binaries" ON "THREADING MATCHES TBB;LINUX" OFF)
if(LINUX)
# Debian packages are enabled on Ubuntu systems
# so, system TBB / pugixml can be tried for usage
# so, system TBB / pugixml / OpenCL can be tried for usage
set(ENABLE_SYSTEM_LIBS_DEFAULT ON)
else()
set(ENABLE_SYSTEM_LIBS_DEFAULT OFF)
endif()
# try to search TBB from brew by default
if(APPLE AND AARCH64)
set(ENABLE_SYSTEM_TBB_DEFAULT ON)
else()
set(ENABLE_SYSTEM_TBB_DEFAULT ${ENABLE_SYSTEM_LIBS_DEFAULT})
endif()
# users wants to use his own TBB version, specific either via env vars or cmake options
if(DEFINED ENV{TBBROOT} OR DEFINED ENV{TBB_DIR} OR DEFINED TBB_DIR OR DEFINED TBBROOT)
set(ENABLE_SYSTEM_TBB_DEFAULT OFF)
endif()
@@ -153,18 +151,14 @@ ie_dependent_option (ENABLE_SYSTEM_PUGIXML "use the system copy of pugixml" ${EN
ie_dependent_option (ENABLE_SYSTEM_TBB "use the system version of TBB" ${ENABLE_SYSTEM_TBB_DEFAULT} "THREADING MATCHES TBB" OFF)
ie_dependent_option (ENABLE_SYSTEM_OPENCL "Use the system version of OpenCL" ${ENABLE_SYSTEM_LIBS_DEFAULT} "BUILD_SHARED_LIBS;ENABLE_INTEL_GPU" OFF)
ie_option (ENABLE_DEBUG_CAPS "enable OpenVINO debug capabilities at runtime" OFF)
ie_dependent_option (ENABLE_GPU_DEBUG_CAPS "enable GPU debug capabilities at runtime" ON "ENABLE_DEBUG_CAPS" OFF)
ie_dependent_option (ENABLE_CPU_DEBUG_CAPS "enable CPU debug capabilities at runtime" ON "ENABLE_DEBUG_CAPS" OFF)
if(ANDROID OR WINDOWS_STORE OR (MSVC AND (ARM OR AARCH64)))
set(protoc_available OFF)
else()
set(protoc_available ON)
endif()
find_host_package(PythonInterp 3 QUIET)
ie_option(ENABLE_OV_ONNX_FRONTEND "Enable ONNX FrontEnd" ${PYTHONINTERP_FOUND})
ie_option(ENABLE_OV_PADDLE_FRONTEND "Enable PaddlePaddle FrontEnd" ON)
@@ -195,24 +189,8 @@ if (ENABLE_PROFILING_RAW)
add_definitions(-DENABLE_PROFILING_RAW=1)
endif()
if (ENABLE_INTEL_MYRIAD)
add_definitions(-DENABLE_INTEL_MYRIAD=1)
endif()
if (ENABLE_MYRIAD_NO_BOOT AND ENABLE_INTEL_MYRIAD)
add_definitions(-DENABLE_MYRIAD_NO_BOOT=1)
endif()
if (ENABLE_INTEL_GPU)
add_definitions(-DENABLE_INTEL_GPU=1)
endif()
if (ENABLE_INTEL_CPU)
add_definitions(-DENABLE_INTEL_CPU=1)
endif()
if (ENABLE_INTEL_GNA)
add_definitions(-DENABLE_INTEL_GNA)
endif()
print_enabled_features()

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