Update build_linux.md (#18035)
This commit is contained in:
parent
67dc220d38
commit
008d9a83ce
@ -12,7 +12,13 @@ The software was validated on:
|
|||||||
- [CMake](https://cmake.org/download/) 3.13 or higher
|
- [CMake](https://cmake.org/download/) 3.13 or higher
|
||||||
- GCC 7.5 or higher to build OpenVINO Runtime
|
- GCC 7.5 or higher to build OpenVINO Runtime
|
||||||
- Python 3.7 - 3.11 for OpenVINO Runtime Python API
|
- Python 3.7 - 3.11 for OpenVINO Runtime Python API
|
||||||
- (Optional) [Install Intel® Graphics Compute Runtime for OpenCL™ Driver package 23.13.26032.30](https://github.com/intel/compute-runtime/releases/tag/23.13.26032.30) to enable inference on Intel integrated GPUs.
|
- (Optional) Install Intel® Graphics Compute Runtime for OpenCL™ Driver package to enable inference on Intel integrated GPUs. Select a driver package from the table below depending on what version of Ubuntu you are installing on.
|
||||||
|
|
||||||
|
| Ubuntu | Driver package |
|
||||||
|
| --- | ----------- |
|
||||||
|
| 22.04 | [23.13.26032.30](https://github.com/intel/compute-runtime/releases/tag/23.13.26032.30) |
|
||||||
|
| 20.04 | [22.24.23453](https://github.com/intel/compute-runtime/releases/tag/22.24.23453) |
|
||||||
|
| 18.04 | [21.38.21026](https://github.com/intel/compute-runtime/releases/tag/21.38.21026) |
|
||||||
|
|
||||||
## How to build
|
## How to build
|
||||||
|
|
||||||
@ -36,12 +42,12 @@ The software was validated on:
|
|||||||
```sh
|
```sh
|
||||||
sudo ./install_build_dependencies.sh
|
sudo ./install_build_dependencies.sh
|
||||||
```
|
```
|
||||||
> **NOTE**: By default, the build enables the OpenVINO Runtime GPU plugin to infer models on your Intel® Processor Graphics. This requires you to [Install Intel® Graphics Compute Runtime for OpenCL™ Driver package 23.13.26032.30](https://github.com/intel/compute-runtime/releases/tag/23.13.26032.30) before running the build. If you don't want to use the GPU plugin, use the `-DENABLE_INTEL_GPU=OFF` CMake build option and skip the installation of the Intel® Graphics Compute Runtime for OpenCL™ Driver.
|
|
||||||
|
|
||||||
3. Create a build folder:
|
3. Create a build folder:
|
||||||
```sh
|
```sh
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
```
|
```
|
||||||
|
|
||||||
4. OpenVINO Runtime uses a CMake-based build system. In the created `build` directory, run `cmake` to fetch project dependencies and create Unix makefiles, then run `make` to build the project:
|
4. OpenVINO Runtime uses a CMake-based build system. In the created `build` directory, run `cmake` to fetch project dependencies and create Unix makefiles, then run `make` to build the project:
|
||||||
```sh
|
```sh
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release ..
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||||
@ -59,6 +65,8 @@ You can use the following additional build options:
|
|||||||
cmake -DCMAKE_TOOLCHAIN_FILE=<openvino_repo>/cmake/toolchains/ia32.linux.toolchain.cmake ..
|
cmake -DCMAKE_TOOLCHAIN_FILE=<openvino_repo>/cmake/toolchains/ia32.linux.toolchain.cmake ..
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- If you don't want to use the GPU plugin, use the `-DENABLE_INTEL_GPU=OFF` CMake build option and skip the installation of the Intel® Graphics Compute Runtime for OpenCL™ Driver.
|
||||||
|
|
||||||
- To build the OpenVINO Runtime Python API:
|
- To build the OpenVINO Runtime Python API:
|
||||||
1. Install all additional packages (e.g., cython and opencv) listed in the `/src/bindings/python/src/compatibility/openvino/requirements-dev.txt` file:
|
1. Install all additional packages (e.g., cython and opencv) listed in the `/src/bindings/python/src/compatibility/openvino/requirements-dev.txt` file:
|
||||||
```sh
|
```sh
|
||||||
|
Loading…
Reference in New Issue
Block a user