Commit Graph

181 Commits

Author SHA1 Message Date
Zlobin Vladimir 00d525f5a2
Export OpenVINOGenAI_DIR (#24683) (#24870)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2024-06-05 22:43:26 +04:00
oogee c76b5f2776
Use shell parameter expansion to make getting source path work in non-bash shells (#24598)
Currently `BASH_SOURCE[0]` was used, which is only available on bash.

I changed it to `${BASH_SOURCE:-$0}` which is supported by at least
bash, zsh and dash, as explained by
[https://stackoverflow.com/a/68359914/9028340](https://stackoverflow.com/a/68359914/9028340)

It uses shell parameter expansion

https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html

https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parameter-Expansion

Addresses #17392
2024-05-21 15:28:52 +00:00
Ilya Lavrenov 92e88b28e7
Use custom TBB even on Linux (#24359)
### Details:
- System TBB provides lower performance than newer versions, so we have
to distribute our own one.
2024-05-17 09:07:41 +04:00
Ilya Lavrenov eb025fad1e
Supported Ubuntu 24.04 (#23905)
### Details:
 - Supported Ubuntu 24.04
2024-04-16 14:26:41 +00:00
Jacek Pawlak 239466ca5d
copyright year update (#23370)
New PR due to merge
conflicts(https://github.com/openvinotoolkit/openvino/pull/22917)

Updated the copyright year from 2018-2023 to 2018-2024 in all openvino
files

Ref. to script: CVS-101144

Command used:
```bash
git grep -lz '2018-2023 Intel Corporation' | xargs -0 sed -i '' -e 's/2018-2023 Intel Corporation/2018-2024 Intel Corporation/g'
```
2024-03-14 09:37:02 +00:00
Vitaliy Urusovskij 8bf50807ee
Additional cleaning of `InferenceEngine` (#22959) 2024-02-20 13:26:53 +00:00
Andrei Kashchikhin 9e2933c29e
[SCRIPTS] Introduce `setupvars` for Powershell (#22013)
* start with pwsh setupvars

* formatting, add last sections with python checks

* use script path for dir setting; add ps1 script to install

* use pwsh script

* rm from other distr; rm unnecessary OpenCV

* use the same component for both win setupvars; rm obsolete env vars

* rm spaces

* use single install; rm unused var
2024-01-11 10:29:32 +04:00
Ilya Lavrenov 5bab612ecc
Allow to build and use OpenVINO with Python 3.12 (#21233) 2023-11-22 15:48:09 +04:00
Zlobin Vladimir f97e7f1c9d
`setupvars.sh`: ignore `cd` output (#20657)
* `setupvars.sh`: ignore `cd` output

Having `function cd() { builtin cd "$@" && l; }` defined in bash breaks `setupvars.sh`

* Use `builtin cd` to enable `function cd() { builtin cd "$@" && l; }`, remove wrapping `echo $()` because `pwd` already prints
2023-11-13 16:15:30 +04:00
Ilya Lavrenov b13cb8ce12
Make RPM packages compatible with wide range of RHEL systems (#20762) 2023-10-31 10:25:35 +04:00
Ilya Lavrenov ead4b8a0ec
Moved cmake functions, variables to API 2.0 naming style (#20281)
* Merge Linux CC + static build + clang compiler

* Improvements

* Removed ie prefixes from cmake scripts

* Fixes for NPU
2023-10-09 22:30:32 +04:00
Przemyslaw Wysocki 9fe6be21ea
[PyOV] Drop Python 3.7 in OpenVINO Runtime (#19534)
* Drop 37

* Fix linter

* Minor change

* Minor changes

* update add_lib_path

* Minor changes

* Update pypi pages

* Update pypi pages

* Fix linter

* Minor changes

---------

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-10-06 08:28:27 +00:00
HenryLin-png 514f9864af
CVS-98205 and CVS-114018 (#18592)
* Changed ls calls to /bin/ls, unset python_version before parsing cmd line

* Update setupvars.sh

Unset all temporary variables

---------

Co-authored-by: henry1.lin <linhenry@ttoycron01u.tor.intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-09-12 12:22:24 +04:00
Anastasiya(Asya) Pronina 84d35ab6f9
Removed compile_tool and benchmark_app_legacy from OpenVINO repo (#18350) 2023-07-04 19:35:51 +04:00
Artyom Anokhov e3a2d3d14a
Updated 3lvl domain for RPMs from fedoraproject.org (#18288) 2023-06-29 11:47:39 +02:00
Ilya Lavrenov c05d8862cf
Added ocl-icd as dependency for GPU to install_dependencies.sh (#18123) 2023-06-20 19:40:35 +04:00
Ilya Lavrenov 2799fe9855
Install all python build artifacts to a single folder (#17883) 2023-06-05 18:12:17 +02:00
Ilya Lavrenov bd0117d648
Vcpkg conan fixes (#17765)
* Small fixes for openvino::pugixml creation for Dev packages

* Flexiable components installation

* Fixed compilation for x86

* Added extra checks for ENABLE_NCC_STYLE

* Fixed typo in RPM
2023-05-29 15:40:51 +04:00
Ilya Lavrenov c5f4406c34
Install libtbb12 on U22 (#17655) 2023-05-22 17:51:52 +04:00
Ilya Lavrenov a34ef680f2
Made plugins.hpp generation to be CONFIG dependent (#17139) 2023-04-24 14:48:45 +04:00
Przemyslaw Wysocki d72d833a96
[PyOV] Enable Python 3.11 (#15144)
* Bump ONNX version

* Bump protobuf

* Add xfails and skips

* Add tickets

* Skip ONNX Serialization tests

* Compile ONNX with C++17

* Force cpp17 - 2

* Use MSVC check

* Relax python reqs, enable 311 in azure

* Fix setupvars error

* Ignore watchdog error

* Update tensorflow

* Minor change

* Bump onnx to 1.13.1

* Bump protobuf to 3.20.3

* Debug test tf

* Xfail tests in comp

* Update comp tests

* Update tf reqs

* Remove deprecated ONNX function

* Align PDPD FE protobuf req with 2.4.1

* Satisfy dependency review

* Attempt to fix dependency review

* Revert pdpd protobuf

* Skip pdpd tests

* Fix MO-TF-PB test

* Skip TF test case

* Enable py311 on rest of jobs

* Try disabling pdpd req

* Exclude pdpd form cmake

* Update .ci/azure/linux.yml

Fixed unmerged merge-conflict

* CR

* Fix reqs

* Skip pdpd tests

* Disable pdpd tests building in cmake

* Skip another pdpd cmake

* Add file

* Add paddle constraint to tests

* Disable paddle reqs

* Debug prints

* Skip TF test if Python ver is 3.11

* Apply Mish cr comments

* Debug

* Debug

* Constrain tensorflow_addons

* Fix pdpd skipping

* Add debug prints

* Update skips

* Remove prints

* Minor change

* Update OMZ commit

* Fix some tests

* Minor change

* Disable pdpd at all

* Disable pdpd at all

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-04-17 13:30:17 +04:00
Irina Efode 3849d5aa02
[INSTALL] Fix setupvars (installation for MacOS) and build python (#16514)
* Fix installation + Python build on MacOS

* Update setupvars.sh

* Update setupvars.sh

* Revert

* revert

* Update scripts/setupvars/setupvars.sh

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-03-28 22:03:22 +04:00
Ilya Churaev a205c675db
Fix leftovers after removing plugins.xml (#16487)
* Fixed comments

* Rename ie_plugins to ov_plugins

* Remove dependency from tests
2023-03-23 04:32:36 +00:00
Ilya Lavrenov 3d52fc843a
Fixed RelWithDebInfo build (#16159) 2023-03-08 20:00:30 +04:00
Ilya Lavrenov e1fbb7d768
Fixes for multi-config generators (#16097) 2023-03-05 10:46:53 +04:00
Ilya Lavrenov f7ccfd9b6e
Install libtbb2 instead of libtbb12 on U22.04 (#15992) 2023-02-28 15:32:53 +04:00
Ilya Lavrenov 87bcbc1747
Supported OpenSUSE 15.3 (#15897) 2023-02-23 11:25:33 +04:00
Ilya Lavrenov 98392a043b
Fixed issues in setupvars.sh (#15884)
* Fixed issues with setupvar.sh

* Fixes setupvars realpath error

---------

Co-authored-by: Otoka, Tomasz <tomasz.otoka@intel.com>
2023-02-22 19:36:23 +04:00
Artyom Anokhov 8d2eae95a7
Port changes for installing GPU driver from 2022.3 branch (#15408)
* Port changes for installing GPU driver from 2022.3 branch.

* install_openvino_dependencies: Fixed syntax after ShellCheck

---------

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2023-02-08 18:37:51 +04:00
Ilya Lavrenov fef775b981
Removed shellcheck suppression for GPU configure script (#15509) 2023-02-04 15:08:35 +04:00
Zlobin Vladimir 52eefb8fb0
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 !
2023-02-04 12:04:33 +04:00
Ilya Lavrenov c4eeecfec5
Remove myriad plugin (#15131)
* Removed Intel MYRIAD plugin

* Removed Intel MYIAD from CI files

* Removed Intel MYRIAD from cmake folder

* Removed MYRIAD, HDDL from samples

* Removed MYRIAD, HDDL from scripts folder

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

* Removed MYRIAD tests

* Removed MYRIAD from tests folder

* Removed MYRIAD from tools folder

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

* Fixed build for AUTO unit tests

* Fixed clang code style

* Fixed comments and issues

* removed MYRIAD from AUTO tests

* Disabled MULTI tests in CI

* Update docs/OV_Runtime_UG/auto_device_selection.md

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

* Update docs/get_started/get_started_demos.md

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

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

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

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2023-01-18 15:19:44 +04:00
Ilya Lavrenov 8eed22b477
Remove excess dependencies from scripts (#14995)
* Remove excess Azure Pipelines steps

* Installed unzip inside Azure pipelibes

* Added --no-install-recommends

* Move ccache to build tools

* Added libffi-dev for python _stypes

* Exit if debian packages cannot be installed

* Added comment

* Install wget for cmake downloading

* Update Azure

* Try to fix samples tests on Debian Linux

* Fixes

* Moved env

* More refactoring

* Fixes

* Revert: bash => script back

* Fixed arm64 linux

* Fixed CUDA

* Fixed mac

* Try to fix

* Try to fix cuda

* Fixed CUDA

* Fixes

* Optimize Mac build

* Fixed windows

* Try to fix debian

* Build CC COLLECT

* Use ninja for CC

* Try to fix WinCC

* Apply suggestions from code review

* Fixed sample spath

* Update .ci/azure/windows_conditional_compilation.yml

* Apply suggestions from code review

* Fixed CC ON compilation with ninja

* Improvements

* Print CC header content

* Try to fix Ninja build for Win CC

* Added explicit dependency between targets

* Reverted changes in Windows CC Azure config

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

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

This reverts commit 372699ec49.
2023-01-16 11:02:17 +04:00
Ilya Lavrenov b9df7793fa
Fixed shellcheck (#14882) 2023-01-02 11:30:54 +04:00
Ilya Lavrenov 1cb4800c03
Added ocl-icd for ubi8 image (#14525) (#14539)
* 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>

Co-authored-by: Artyom Anokhov <artyom.anokhov@intel.com>
2022-12-09 15:42:05 +04:00
Trawinski, Dariusz b914a8c71c
fix syntax (#14436) 2022-12-06 16:04:46 +04:00
Ilya Lavrenov 0357a97c40
Don't install scripts which are not used (#14414) 2022-12-05 23:35:02 +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
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
Ilya Lavrenov 6dd8a93735
Made OpenVINO cmake scripts Linux flavors agnostic (#14384)
* Use prebuilt cmake in install-dependencies steps

* Removed building of custom python to save Azure CI time

* Adjusted conditions in cmake

* Download VPU custom kernels compiler only for x86

* Removed -pyver argument

* Improvements

* Detect glibc version

* Usage of new glic variable

* Fixed typo

* Increased glibc version for MYRIAD case

* Made OpenVINO cmake Linux flavors agnostic

* Detect glibc version on RedHat

* Use clcompiler only since ubuntu 18.04

* Universal way to detect glibc version

* Revert some changes

* Apply suggestions from code review

fixes issue with GNA

* Apply suggestions from code review

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

* Added Fedora support

* Improvements for RPM generation

* Refactored work with gflags

* Apply suggestions from code review

* Improvements

* Several improvements for Ubuntu 18.04

* Improvements in gflags

* Update thirdparty/CMakeLists.txt

temporary install samples dependencies

* Fixed several mistakes

* Fixed issues with gflags

* Don't install dependencies on Linux

* Added nlohmann findinds on debian9 case

* Added FATAL_ERROR is gflags is not found in samples

* Fixes for samples on CentOS 7

* Cross-compiled debian packakges with proper libraries location

* Fixed include for old nlohman-json versions

* Fixed compilation with old json

* Applied review comments

* Added support of old nlohmann versions via submodule

* Temporary WA for CentOS 7

* Fixed compilation with old gflags

* Fixed compilation of C samples

* Fixed gflags on RHEL8.2 / Debian 9
2022-12-01 23:57:23 +04:00
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
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
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
Anastasia Kuporosova 822e069a3e
One more tbb path in setupvars.bat (#14228) 2022-11-25 04:25:41 +04:00
Anastasia Kuporosova 0f647e6b75
Fix finding onetbb lib on windows (#14018) 2022-11-16 14:13:37 +04:00
Przemyslaw Wysocki d2871fd52c
[PyOV] Enable Python 3.10 on Azure CI (#12578)
* Fix mypy for numpy==1.21.6

* Apply CR changes

* Allow Python 3.6 for open source

* Attempt to silence mypy

* Revert to 3.6 in setup.pys

* Fix merge conflict

* Add newline

* Fix Python version assert

* Test Python 3.10 CI

* Try bumping up pybind to 2.10

* Link default python to python 3.10

* Add sudo to changing default python

* Bump python version in setupvars

* Fix exception in test

* Do the same for compatibility

* Apply same CI changes to other pipelines

* Attempt to fix arm and windows CIs

* Fix win py lib version and links?

* Try to fix CI

* Fix win python path

* Update win path

* Test disable PDPD

* Disable TF for testing CI

* Add sudo to rm

* Test linux

* Update requirements

* RM sudo

* Add debug step to CI on ARM

* build py from source on linux

* Remove debug step from ARM

* Fix err

* Fill num_proc

* Fic py installation

* Bump pdpd to 2.3.1

* Bump np vers

* Try to upgrade onnx to 1.12.0

* Revert onnx upgrade, enable frontends

* Build py shared

* Export library

* activate py env

* Bump scipy for py3.10

* Another scipy bump

* Fix Windows path, add nfs helper for mount

* Attempt to fix win_cc

* Batch of changes

* Try to fix ngraph-onnx-lin

* Install lsb-release for docker on ngraph-onnx-lin

* Link lsb_release

* Try bumping Ubuntu to 22.04

* Revert ubuntu change in dockerfile

* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Upgrade ONNX to 1.12 in cpp

* Skip unsupported ops

* Revert "Fix ONNX compatibility and numpy warnings"

This reverts commit cd8a0e6b8e.

* Small changes

* Remove unnecessary changes

* Bump Python version in github workflows

* Fix flake error

* Another flake error

* Even more flake errors

* Xfail more tests

* Fix mypy errors

* Change onnx version in tests

* Bump ONNX in MO

* Fix onnx utils in comp

* Minor changes

* Import pathlib

* Add xfails to compatibility tests

* Skip segfaulting tests

* Fix onnx nametuple

* Fix flake

* Try to fix py3.6 onnx

* Switch to venv in windows

* Fix model importer and reqs

* Add __test__

* Debug print

* Fix flake

* Update linux.yml

* Update windows.yml

* Update linux.yml

* Update windows.yml

* Install python3.10

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Install py embedded

* Fix dir

* Fix curl

* Add complete file

* CP file

* Bump py ver

* Fix missing venv

* Try to install

* Disable venv

* Bump OMZ commit

* checkout omz

* Revert omz

* Bump omz

* Revert pybind bump

* Update .gitmodules

* Change pybind to fork

* change ssize_t to size_t

* Install bz2 for py build

* Bump omz

* Bump pandas requirement version

* Revert omz

* Install missing clang

* Bump omz

* Bump versions on fork

* Bump numpy in model zoo

* Fix clang

* Skip segfaulting pdpd test

* Skip another pdpd test

* Skip pdpd places.cpp

* Bump py ver in setupvars.bat

* Disable paddle tests

* Use int instead of str

* Fix requirements path

* Enable lin-cc

* Fixes in CI

* lin-cc and ngrpah-onnx changes

* Update num_proc

* Update ngraph-onnx

* Minor change

* Fix env var

* Change ubuntu to 20

* Get compiler on ngraph-onnx

* Add sudo to apt-get

* Add SSL

* Download ssl

* Different way of installing ssl

* Minor changes

* install zlib

* Fix env var

* Fix docker building error

* Revert changes

* Modify dockerfile

* Change pychecks python version

* Cleanup

* Add LayerNorm to expanded ONNX functions

* Revert previous commit

* Add LayerNorm to expanded ONNX functions

* Apply clang

* Move LayerNorm tests to skip_segfault

* Unskip pdpd tests

* Enable pdpd tests on linux

* Refactoring

* Remove 3.6 from reqs

* Refactoring

* Minor changes

* Minor changes

* Relax MO reqs

* Bump torch version

* relax pytest

* Specify pytest version

* Fix pytest pip conflict

* Bump pybind11 to v2.10.1 release tag

* Specify separate pytest version for py3.10

* Bump attrs

* Add py dependency

* Refactor versions

* Add venv activation to tf tests

* Fix fdupes

* Bump OMZ submodule

* Remove find and replace

* Change pybind to upstream fork

* Set pybind to proper commit

* Minor changes

* Try to fix scipy

* Updated exclude patterns for nlohmann json

* [PyOV] Fix wheel requirements for new package versions

* Specify CPU plugin versions

* Bump OMZ version

* Fix linter

* Fix linter 2

* Fix linter 3

* Disable linter

Co-authored-by: Mateusz <mateusz.mikolajczyk@intel.com>
Co-authored-by: jiwaszki <jan.iwaszkiewicz@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-08 11:38:39 +04:00
Przemyslaw Wysocki 520b9ff68c
[PyOV] Disallow Python 3.6 usage (#13240)
* Remove py3.6 constraints

* Cleanup out of date python versions

* Bump pybind11 to v2.10.1 release tag

* [PyOV] Fix wheel requirements for new package versions

Co-authored-by: jiwaszki <jan.iwaszkiewicz@intel.com>
2022-11-06 10:45:42 +04:00
Artyom Anokhov 65293b1492
Added frontends RPMs generation (#13618)
* cmake/packaging/rpm.cmake: Added Frontends

* rpm_post_build: Added link to Fedoraproject wiki with rpmlint errors info

* RPM: Throw warning for rpmlint findings instead of FATAL ERROR till there is no filtering/suppression of errors

debian.cmake: Added one more error to suppress
thirdparty/CMakeLists.txt: added CentOS(RHEL) for gflags shared libs case
install_openvino_dependencies: Added gflags installation

* Fixed gflags issues for RHEL/CentOS

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-10-27 10:08:54 +04:00