Commit Graph

68 Commits

Author SHA1 Message Date
Jan Iwaszkiewicz 0c65b35bb8
[PyOV] Optimize dtype to Type conversion (#24588)
### Details:
- Remove costly conversion to string by replacing it with unique ids of
each dtype.
- More on `dtype.num`:
https://numpy.org/devdocs/reference/generated/numpy.dtype.num.html#numpy.dtype.num

### Tickets:
 - *...*
2024-05-21 15:50:04 +00:00
Ilya Lavrenov 007ed84886
Improved cross-compilation with python (#24160)
### Details:
 - Improved cross-compilation with python
 - It's important for RISC-V enablement 
 - Depends on https://github.com/openvinotoolkit/openvino/pull/24140
2024-04-22 18:33:05 +04:00
Ilya Lavrenov 5b07693667
Updated pybind11 to 2.12.0 (#24140)
### Details:
 - Removed WA for cross-compilation case
- It's possible because fix https://github.com/pybind/pybind11/pull/4856
is included to latest released version
2024-04-22 15:03:02 +04:00
Mikhail Ryzhov f2bd4d36bd
Python bindings build conflict (#24060)
### Details:
custom cmake commands run in parallel and one of them removes the
directory used by another one.

### Tickets:
 - CVS-138323
2024-04-19 10:19:04 +01:00
Ilya Lavrenov 0b9f1ddccf
Revert "Revert "Add openvino-telemetry to debian / rpm package (#23913)"" (#23935)
Reverts openvinotoolkit/openvino#23930
2024-04-09 15:53:40 +00:00
Mikhail Ryzhov c556fc3c09
Revert "Add openvino-telemetry to debian / rpm package (#23913)" (#23930)
This reverts commit a7c7de4c65.

### Details:
 - PR #23913 introduced regression

### Tickets:
 - *138078*
2024-04-09 11:24:21 +02:00
Ilya Lavrenov a7c7de4c65
Add openvino-telemetry to debian / rpm package (#23913)
### Details:
- Install openvino-telementry as part of `python3-openvino` debian
package

### Tickets:
 - Closes https://github.com/openvinotoolkit/openvino/issues/23876
2024-04-09 00:02:56 +04:00
Vitaliy Urusovskij 8bf50807ee
Additional cleaning of `InferenceEngine` (#22959) 2024-02-20 13:26:53 +00:00
Jacek Pawlak 5e7e51dc77
Onetbb license alignment (#22838)
Removed old tbb license and added onetbb license

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2024-02-15 15:18:23 +04:00
Anastasia Kuporosova 5048299d97
Update year in src/bindings/python folder (#22186)
* Update year in src/bindings/python folder

* fix ci
2024-01-16 18:58:06 +01:00
Ilya Lavrenov a301038694
Updated build docs for Python API (#22134)
* Updated build docs for Python API

* Removed legacy variables

* Update docs/dev/build_windows.md

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>

---------

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>
2024-01-12 18:55:02 +04:00
Anastasia Kuporosova d843a33551
[PyOV] clean up after legacy python api removal (#22101) 2024-01-11 20:14:04 +01:00
Anastasia Kuporosova a561a2a484
[PyOV] Legacy IE Python API removal (#20908)
* [PyOV] Legacy IE Python API removal

* clean configs &cmake

* remove ngraph

* remove from yml

* try to fix build

* clean up

* remove old api from python snippets and docs (#170)

* remove old api from python snippets

* pysnippets removal p2

* remove ngraph snippet

* remove old api from docs

* remove migration snippets

* remove compatibility req after refactoring on master

* fix after merge

* fix after merge

* Update docs/articles_en/documentation/openvino_legacy_features/api_2_0_transition_guide/graph_construction.rst
2024-01-11 13:46:49 +01:00
Maciej Smyk 2f65827f9f
[DOCS] Moving files to new location for master (#21575)
* repo update

* repo update

* repo update

* Update LowPrecisionModelRepresentation.rst

* Update LowPrecisionModelRepresentation.rst

* Update CMakeLists.txt

* Update QuantizedNetworks.rst

* separate location for pypi publishing files

* Update src/bindings/python/CMakeLists.txt

fixing path in src/bindings/python/CMakeLists.txt

---------

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-12 16:27:01 +04:00
Helena Kloosterman 309539667a
Add hint to install patchelf with pip (#21237) 2023-11-22 16:19:11 +04:00
Mikhail Ryzhov 49c5099f5e
[GHA] Removed dependency on git repo in python tests (#20390)
* Removed repo deps in py tests

* fixed typo

* changed test cmd

* add test_utils to pythonpath

* set test_utils to LD_LIBRARY_PATH

* changed path

* changed path

* source python site-packages

* fixed LD_LIBRARY_PATH

* print pip dir

* changed python install path

* source all openvino dir

* isolate test_utils

* system deps

* reordered deps

* dep conflict

* tests reorder

* changed test_utils path

* cpack test dir

* rebase fix

* fixed env

* frontend tests fix

* removed already installed reqs

* debug

* debug 2

* added python action path

* test

* reset 3rdparties

* set pip install path globally

* reset 3rdparties

* removed parallel code

* moved doc snippets

* switched back 4-core runner

* removed global unused vars

* removed unused requirements.txt

* removed unused requirements

* test

* Revert "test"

This reverts commit bdf22d22fd6ec5d488930bc362bdb0741c5bea76.
2023-10-25 20:16:01 +00:00
Ilya Lavrenov 00618a429b
Relocatable OpenVINO Dev package improvements (#20461) 2023-10-16 12:54:30 +04:00
Ilya Lavrenov 56d74a82cb
Relocatable developer package (#20327)
* Merge Linux CC + static build + clang compiler

* Improvements

* Removed ie prefixes from cmake scripts

* Fixes for NPU

* Initial relocatable OpenVINO Developer package

* Improvements

* Try to fix

* improvements

* Export a lot of headers

* Removed NVIDIA pipeline; make it to be a job

* Fixes

* Fixes 2

* Try ilya-lavrenov repo

* Clean-up

* More imrpovements

* Even more improvements

* Override export, install

* Override export, install

* Disable pythonwheel generation for relocatable OV dev package

* Fixed issues with versions

* Fixed android build

* Fixed android build

* Fixed NPU build

* Update src/bindings/python/CMakeLists.txt
2023-10-12 22:59:04 +00:00
Jan Iwaszkiewicz 6a326455b9
[PyOV] Propagate errors on imports from runtime module (#20273)
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-11 11:53:34 +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
Ilya Lavrenov 8349849e1c
Use FindPython3.cmake (#19847)
* Use FindPython3.cmake

* Fixed compilation on macOS 14 with new core development tools

* Try to use Python3_SOABI instead of PYTHON_MODULE_EXTENSION

* Use Development.Module

* Keep specifying only Python3_EXECUTABLE

* Print PYTHON_MODULE_EXTENSION

* Added check for minimal cmake version for python API

* Returned Python3_INCLUDE_DIR for cross-compilation case

* Try to allow cmake older than 3.18

* Use build python interpreter to check cython dependency

* revert changes in .ci/openvino-onnx/Dockerfile

* removed unused code

* Fixed issue with variables scope

* Experiment: remove include dirs

* Corrected docs

* Use pybind11 function to set extension

* Revert "Experiment: remove include dirs"

This reverts commit 6f7f90211c.

* Refactor ConvolutionBackpropDataLayerTest, ConvolutionLayerTest, DeformableConvolutionLayerTest (#19810)

* Refactor ConvolutionBackpropDataLayerTest

* Refactor ConvolutionLayerTest

* Refactor DeformableConvolutionLayerTest

* Apply comments

* Apply comments

* Fix

* Updated minimum cmake version for Windows

* Simplified check

* Removed useless message status

* Use puiblic option

---------

Co-authored-by: Oleg Pipikin <oleg.pipikin@intel.com>
2023-09-26 20:57:29 +02:00
Ilya Lavrenov c67c0663fc
Use target python packages (#19928) 2023-09-20 11:16:15 +04:00
Przemyslaw Wysocki e34c5a09c6
[PyOV] Add an `__init__.py` alignment check in CMake (#19882)
* Add init check

* Apply CR
2023-09-19 00:36:13 +04:00
Ilya Lavrenov c7850276dd
Check only build requirements for Python API (#19919) 2023-09-19 00:11:05 +04:00
Anastasia Kuporosova 8723b5dd6d
resolve gil (#19631) 2023-09-06 10:04:52 +02:00
Ilya Lavrenov e49b208393
Enabled debug build for Python wheels (#19197) 2023-08-17 16:45:18 +04:00
Ilya Lavrenov 1ffab2fe30
Added --single-version-externally-managed during python package build (#19177) 2023-08-14 17:45:23 +04:00
Ilya Lavrenov 678c2954ed
Properly handle python-package in cpack exclude components (#19089) 2023-08-09 21:10:13 +04:00
Ilya Lavrenov 41750e1ada
Added a WA for running Python API in debug mode (#18848) 2023-07-28 17:29:09 +04:00
Ilya Lavrenov 4df6ef3a26
Removed ie, ngraph and core_tools cpack components (#18636)
* Removed ie, ngraph cpack components

* Introduced new components
2023-07-20 17:46:16 +04:00
Ilya Lavrenov 96d16b141d
Ability to configure setup.py via env variables (#18538) 2023-07-13 23:12:07 +04:00
Ilya Lavrenov 15e69c280a
Used pip wheel to build OpenVINO wheel (#18029)
* Used pip wheel to build OpenVINO wheel

* Improvements

* Added python api properly into deb / rpm packages

* Use cmake -E variant from cmake 3.13

* Improvements to fix CI

* Some refactoring

* Don't use developer package for scripts projects

* Final fixes
2023-06-23 09:17:02 +04:00
Ilya Lavrenov 6a562268d3
Avoid global targets in thirdparty dependencies (#17755)
* Added dependencies via vcpkg

* Try to remove global imported targets

* Fix for conan

* Fixed RHEL case

* Fixed RHEL, U18 cases

* Returned OpenCV finding

* Update cmake/templates/OpenVINOConfig.cmake.in

Fixed IMPORTED_GLOBAL => GLOBAL in OpenVINOConfig.cmake.in template file

* Apply suggestions from code review

Properply used NAMES in find_package

* Fixed case with zlib

* Final fixes

* Fixes

* Removed CONFIG from find package ZLIB

* Fixed RHEL

* Reverted changes with gflags back

* Turn off LTO after thirdparty dependencies are built
2023-05-27 10:47:41 +04:00
Ilya Lavrenov 02b848d0b8
Unified cmake find_host_package and other host commands (#17662)
* Unified cmake find_host_package and other host commands

* should work

* Moved files
2023-05-24 08:43:59 +00:00
Ilya Lavrenov 4c92ffa563
Build wheel arm64 packages using cross-compilation (#17635) 2023-05-23 00:31:35 +04:00
Ilya Lavrenov 2ae23dd1ad
Fixed Python API build for Ubuntu 22.04 with python3.11 (#17297) (#17298)
* Fixed Python API build for Ubuntu 22.04 with python3.11

* Update ONNX CI docker to test python 3.11 and system pybind11
2023-04-29 04:34:10 +04:00
Ilya Lavrenov e1fbb7d768
Fixes for multi-config generators (#16097) 2023-03-05 10:46:53 +04:00
Ilya Lavrenov 1d5839fb92
Fixed compilation with clang (#15801) 2023-02-19 16:22:18 +04:00
Ilya Lavrenov de1631d67d
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
2023-02-03 15:36:47 +00:00
Ilya Lavrenov d092f5d7dd
Setup minimum supported version for pybind11 (#15397) 2023-01-31 11:48:15 +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
Przemyslaw Wysocki 21267269da
Use Python 3.10 on Azure from GitHub actions (#13550)
* Merge master, use new token

* Minor changes

* Relax Python version

* Apply new python to rest of jobs

* Revert changes to custom images

* Minor changes

* Revert win changes

* Upgrade cython

* Test with lower cython

* Remove venv

* Cleanup

* Relax version spec

* Fix lin

* Revert changes to linux.yml

* Minor changes
2023-01-11 17:46:24 +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
Ilya Lavrenov c51ee524ad
Tuned wheels build (#14038) 2022-11-17 00:03:34 +04:00
Ilya Lavrenov d1c1680a81
Fixed openvino-dev version (#13962) 2022-11-11 22:43:06 +04:00
Ilya Lavrenov 2e336e4bb8
Fixes for brew support on OSX (#13476)
* Fixes for brew support on OSX

* Added new policy

* added quotes

* Used OpenVINODeveloperPackage

* Extra fixes

* Use standard verbose variable

* Fixed pkg-config generation
2022-10-15 00:15:03 +03:00
Ilya Lavrenov c2911adf94
Conda-forge fixes (#13392) 2022-10-12 12:16:13 +04:00
Ilya Lavrenov 07d68b5895
Ability to build OpenVINO wheel based on OV developer package (#13197)
* Allow to compile wheel package based on OpenVINO developer package

* Added wheel specific runtime dir to avoid issues with generator expressions

* Added backward compatibility

* Trying to fix RHEL, U20

* Fixed cmake options in setup.py
2022-09-26 11:33:50 +04:00
Pawel Raasz 4f683687de
Enable mock fe tests in python api 2.0 tests (#12978)
* Building python frontend tests

* Enable mock tests in new python API:
- Fix mock_py frontend library name
- Set same destination for mock_py frontend as others frontends
- Fix importing mock_py frontend
- Minor changes in mock_py tests

* Fix flake8 issue

* Fix linking issue on windows

* Remove DISABLE_PYBIND11 option

* Build mock_py always as shared library
- put mock_py into ov::frontend namespace
- minor re-factor of mock_py

* Add mock c API fix warning on windows

* Fix installation of mock_py frontend

* Install mock_py frontend library in tests

* More detailed error message in python test
when cannot import frontend

* Restore IMPLEMENT_OPENVINO_API for windows build
of pybind_mock_frontend

* Set env paths for python API test on Azure CI
- skip tensorflow conversion ext test when not installed

* Correct skip tensorflow test decorator

* Add C API macro for mock1 frontend

* Ignore E999 error reported by flake8

* Fix conversion extension name for tf imports

* Fix flake8 issues

* Remove python3.8 path from LD_LIBRARY_PATH
on debian CI

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-09-20 11:56:46 +03:00
Pawel Raasz 2449ab066a
Delete pybind11 cross compile workaround (#12775)
Co-authored-by: sikorsl1 <leonard.sikorski@intel.com>
2022-09-07 10:54:11 +04:00