Pre-build for Driver Compiler

August 21, 2025 ยท View on GitHub

Pre-build Preparation

Before building, clone the required repositories (or download and extract the source code), and set the required environment variables. Set the cloned OpenVINO Project as environment variable OPENVINO_HOME, set the cloned NPU-Plugin Project as environment variable NPU_PLUGIN_HOME, and update their submodules. Follow these steps:

Commands (Linux shell and Windows x64 Native Tools Command Prompt)
# Set working directory
export WORKDIR=$(pwd)
cd ${WORKDIR}
git clone https://github.com/openvinotoolkit/openvino.git openvino
git clone https://github.com/openvinotoolkit/npu_compiler vpux_plugin

export OPENVINO_HOME=${WORKDIR}/openvino
export NPU_PLUGIN_HOME=${WORKDIR}/vpux_plugin
# On Windows
# set OPENVINO_HOME=%WORKDIR%\openvino
# set NPU_PLUGIN_HOME=%WORKDIR%\vpux_plugin

cd ${OPENVINO_HOME}
git checkout <OpenVINO commit ID> # Replace with your desired commit, tag, or branch
git submodule update --init --recursive
cd ${NPU_PLUGIN_HOME}
git checkout develop # Replace with your desired commit, tag, or branch
git submodule update --init --recursive

Before proceeding with the build, it is recommended to do the following:

Next Steps

Linux: build with CMake Options (Recommended for the first Driver Compiler build):

Linux: build with CMake Presets:

Windows: build with CMake Options (Recommended for the first Driver Compiler build):

Windows: build with CMake Presets: