Skip to content

Commit d8cbe92

Browse files
Updated OpenVINO build docs (#25982)
### Details: - *item1* - *...* ### Tickets: - *ticket-id*
1 parent 358c428 commit d8cbe92

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/dev/cmake_options_for_custom_compilation.md

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This document provides description and default values for CMake options that can
1919
* `ON` is default for x86 platforms; `OFF`, otherwise.
2020
* `ENABLE_INTEL_GPU` enables Intel GPU plugin compilation:
2121
* `ON` is default for x86 platforms; not available, otherwise.
22+
* `ENABLE_INTEL_NPU` enables Intel NPU plugin compilation:
23+
* `ON` is default for Windows and Linux x86 platforms; not available, otherwise.
2224
* `ENABLE_HETERO` enables HETERO plugin build:
2325
* `ON` is default.
2426
* `ENABLE_MULTI` enables MULTI plugin build:
@@ -191,3 +193,4 @@ In this case OpenVINO CMake scripts take `TBBROOT` environment variable into acc
191193
[PyTorch]:https://pytorch.org/
192194
[FlatBuffers]:https://google.github.io/flatbuffers/
193195
[oneTBB]:https://github.com/oneapi-src/oneTBB
196+
[JAX]:https://github.com/google/jax

docs/dev/static_libaries.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ It is possible because not all interface symbols of OpenVINO Runtime libraries a
2828
## Configure OpenVINO Runtime in the CMake stage
2929

3030
The default architecture of OpenVINO Runtime assumes that the following components are subject to dynamic loading during execution:
31-
* (Device) Inference backends (CPU, GPU, MULTI, HETERO, etc.)
32-
* (Model) Frontends (IR, ONNX, PDPD, etc.)
33-
* Preprocessing library (to perform preprocessing, e.g. resize and color space conversions)
31+
* (Device) Inference backends (CPU, GPU, NPU, MULTI, HETERO, etc.)
32+
* (Model) Frontends (IR, ONNX, PDPD, TF, JAX, etc.)
3433

3534
With the static OpenVINO Runtime, all these modules should be linked into a final user application and **the list of modules/configuration must be known for the CMake configuration stage**. To minimize the total binary size, you can explicitly turn `OFF` unnecessary components. Use [[CMake Options for Custom Compilation|CMakeOptionsForCustomCompilation ]] as a reference for OpenVINO CMake configuration.
3635

3736
For example, to enable only IR v11 reading and CPU inference capabilities, use:
3837
```sh
3938
cmake -DENABLE_INTEL_GPU=OFF \
39+
-DENABLE_INTEL_NPU=OFF \
4040
-DENABLE_TEMPLATE=OFF \
4141
-DENABLE_HETERO=OFF \
4242
-DENABLE_MULTI=OFF \
@@ -46,6 +46,7 @@ cmake -DENABLE_INTEL_GPU=OFF \
4646
-DENABLE_OV_PADDLE_FRONTEND=OFF \
4747
-DENABLE_OV_TF_FRONTEND=OFF \
4848
-DENABLE_OV_TF_LITE_FRONTEND=OFF \
49+
-DENABLE_OV_JAX_FRONTEND=OFF \
4950
-DENABLE_OV_PYTORCH_FRONTEND=OFF \
5051
-DENABLE_OV_JAX_FRONTEND=OFF \
5152
-DENABLE_INTEL_CPU=ON \
@@ -133,21 +134,16 @@ cmake -DCMAKE_TOOLCHAIN_FILE=<openvino source dir>/cmake/toolchains/mt.runtime.w
133134
* The enabled and tested capabilities of OpenVINO Runtime in a static build:
134135
* OpenVINO common runtime - work with `ov::Model`, perform model loading on particular device
135136
* MULTI, HETERO, AUTO, and BATCH inference modes
136-
* IR, ONNX, PDPD, and TF frontends to read `ov::Model`
137+
* IR, ONNX, PDPD, TF and TF Lite frontends to read `ov::Model`
137138
* Static build support for building static libraries only for OpenVINO Runtime libraries. All other third-party prebuilt dependencies remain in the same format:
138-
* `libGNA` is a shared library.
139139
* `TBB` is a shared library; to provide your own TBB build from [[oneTBB source code|https://github.com/oneapi-src/oneTBB]] use `export TBBROOT=<tbb_root>` before OpenVINO CMake scripts are run.
140140

141141
> **NOTE**: The TBB team does not recommend using oneTBB as a static library, see [[Why onetbb does not like a static library?|https://github.com/oneapi-src/oneTBB/issues/646]]
142142
143143
* `TBBBind_2_5` is not available on Windows x64 during a static OpenVINO build (see description for `ENABLE_TBBBIND_2_5` CMake option [[here|CMakeOptionsForCustomCompilation]] to understand what this library is responsible for). So, capabilities enabled by `TBBBind_2_5` are not available. To enable them, build [[oneTBB from source code|https://github.com/oneapi-src/oneTBB]] and provide the path to built oneTBB artifacts via `TBBROOT` environment variable before OpenVINO CMake scripts are run.
144144

145-
* `ov::Op::type_info` static member is deprecated and not available in static build. Don't use `type_info` during implementation of your own custom operations, use `ov::Op::get_type_info_static()` instead.
146-
147145
## See also
148146

149147
* [OpenVINO README](../../README.md)
150148
* [OpenVINO Developer Documentation](index.md)
151149
* [How to Build OpenVINO](build.md)
152-
153-

0 commit comments

Comments
 (0)