From 008d9a83cecbd6414587158b298c439ea9fd1e54 Mon Sep 17 00:00:00 2001 From: Maciej Smyk Date: Wed, 14 Jun 2023 10:45:47 +0200 Subject: [PATCH] Update build_linux.md (#18035) --- docs/dev/build_linux.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/docs/dev/build_linux.md b/docs/dev/build_linux.md index 6ffda5114a1..1dc58ba157e 100644 --- a/docs/dev/build_linux.md +++ b/docs/dev/build_linux.md @@ -12,7 +12,13 @@ The software was validated on: - [CMake](https://cmake.org/download/) 3.13 or higher - GCC 7.5 or higher to build OpenVINO Runtime - 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 @@ -36,17 +42,17 @@ The software was validated on: ```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: -```sh - mkdir build && cd build -``` + ```sh + 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: -```sh - cmake -DCMAKE_BUILD_TYPE=Release .. - make --jobs=$(nproc --all) -``` + ```sh + cmake -DCMAKE_BUILD_TYPE=Release .. + make --jobs=$(nproc --all) + ``` The process may take some time to finish. ### Additional Build Options @@ -59,6 +65,8 @@ You can use the following additional build options: cmake -DCMAKE_TOOLCHAIN_FILE=/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: 1. Install all additional packages (e.g., cython and opencv) listed in the `/src/bindings/python/src/compatibility/openvino/requirements-dev.txt` file: ```sh