Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9146f05
UD2025.32 Update file batch #1
Maxim-Doronin Aug 18, 2025
d77880a
UD2025.32 Update file batch #2
Maxim-Doronin Aug 18, 2025
bdb790f
UD2025.32 Update file batch #3
Maxim-Doronin Aug 18, 2025
dddcf65
UD2025.32 Update file batch #4
Maxim-Doronin Aug 18, 2025
603adee
UD2025.32 Update file batch #5
Maxim-Doronin Aug 18, 2025
5d7d28e
UD2025.32 Update file batch #6
Maxim-Doronin Aug 18, 2025
e495076
UD2025.32 Update file batch #7
Maxim-Doronin Aug 18, 2025
4bbb9a3
UD2025.32 Update file batch #8
Maxim-Doronin Aug 18, 2025
1c84831
UD2025.32 Update file batch #9
Maxim-Doronin Aug 18, 2025
c7a9f1d
UD2025.32 Update file batch #10
Maxim-Doronin Aug 18, 2025
dc40c0d
UD2025.32 Update file batch #11
Maxim-Doronin Aug 18, 2025
b1b222d
UD2025.32 Update file batch #12
Maxim-Doronin Aug 18, 2025
3f12f34
UD2025.32 Update file batch #13
Maxim-Doronin Aug 18, 2025
159314c
UD2025.32 Update file batch #14
Maxim-Doronin Aug 18, 2025
48495ff
UD2025.32 Update file batch #15
Maxim-Doronin Aug 18, 2025
0c18657
UD2025.32 Update file batch #16
Maxim-Doronin Aug 18, 2025
e9a29ea
UD2025.32 Update file batch #17
Maxim-Doronin Aug 18, 2025
563eb98
UD2025.32 Update file batch #18
Maxim-Doronin Aug 18, 2025
2563a1d
UD2025.32 Update file batch #19
Maxim-Doronin Aug 18, 2025
b96acba
UD2025.32 Update file batch #20
Maxim-Doronin Aug 18, 2025
a92cb35
UD2025.32 Update file batch #21
Maxim-Doronin Aug 18, 2025
c844076
UD2025.32 Update file batch #22
Maxim-Doronin Aug 18, 2025
d94ec75
UD2025.32 Update file batch #23
Maxim-Doronin Aug 18, 2025
64c3d01
UD2025.32 Update file batch #24
Maxim-Doronin Aug 18, 2025
28ee018
UD2025.32 Update file batch #25
Maxim-Doronin Aug 18, 2025
2913f3b
UD2025.32 Update file batch #26
Maxim-Doronin Aug 18, 2025
b6bf301
UD2025.32 Update file batch #27
Maxim-Doronin Aug 18, 2025
f645f18
UD2025.32 Update file batch #28
Maxim-Doronin Aug 18, 2025
6b776a1
UD2025.32 Update file batch #29
Maxim-Doronin Aug 18, 2025
4415cd6
UD2025.32 Update file batch #30
Maxim-Doronin Aug 18, 2025
28e83d2
UD2025.32 Update file batch #31
Maxim-Doronin Aug 18, 2025
b5653cd
UD2025.32 Update file batch #32
Maxim-Doronin Aug 18, 2025
0579a26
UD2025.32 Update file batch #33
Maxim-Doronin Aug 18, 2025
abbb903
UD2025.32 Update file batch #34
Maxim-Doronin Aug 18, 2025
65e5b96
UD2025.32 Update file batch #35
Maxim-Doronin Aug 18, 2025
5941525
UD2025.32 Update file batch #36
Maxim-Doronin Aug 18, 2025
5d8287f
UD2025.32 Update file batch #37
Maxim-Doronin Aug 18, 2025
3c0888b
UD2025.32 Update file batch #38
Maxim-Doronin Aug 18, 2025
dc92b26
UD2025.32 Update file batch #39
Maxim-Doronin Aug 18, 2025
da82bf6
UD2025.32 Update file batch #40
Maxim-Doronin Aug 18, 2025
42ea870
UD2025.32 Update ELF
Maxim-Doronin Aug 18, 2025
03387a6
WA for GCC warning
Maxim-Doronin Aug 18, 2025
4f378f4
Revert driver update
Maxim-Doronin Aug 20, 2025
7b68de3
Test fixes
Maxim-Doronin Aug 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/job_build_mlir_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
-DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} \
-DOpenVINODeveloperPackage_DIR=$(realpath ${OPENVINO_BUILD_DIR}) \
-DENABLE_TESTS=${{ env.ENABLE_TESTS_FLAG }} \
-DENABLE_DEVELOPER_BUILD=OFF \
-DENABLE_DEVELOPER_BUILD=ON \
-DENABLE_MLIR_COMPILER=ON \
-DBUILD_COMPILER_FOR_DRIVER=OFF \
-DENABLE_DRIVER_COMPILER_ADAPTER=ON \
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/job_tests_unit_mlir_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ jobs:
echo "VPUX_TRANSLATE_PATH=$(realpath "${OPENVINO_INSTALL_DIR}/tools/vpux-translate")" >> $GITHUB_ENV
chmod +x ${OPENVINO_INSTALL_DIR}/setupvars.sh
chmod +x ${OPENVINO_INSTALL_DIR}/tests/FileCheck
chmod +x ${OPENVINO_INSTALL_DIR}/tests/flatc
chmod +x ${OPENVINO_INSTALL_DIR}/tests/not
chmod +x ${OPENVINO_INSTALL_DIR}/tools/prof_parser/prof_parser
chmod +x ${OPENVINO_INSTALL_DIR}/tools/npu-lsp-server/npu-lsp-server
chmod +x ${OPENVINO_INSTALL_DIR}/tools/vpux-opt/vpux-opt
chmod +x ${OPENVINO_INSTALL_DIR}/tools/vpux-translate/vpux-translate

Expand Down
34 changes: 5 additions & 29 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,44 +24,29 @@ cmake_policy(SET CMP0063 NEW)
# Set PROJECT_VERSION* variables by project command only.
cmake_policy(SET CMP0048 NEW)

project(InferenceEngineVPUXPlugin)
project(VPUX)

#
# Build properties
#

set(NPU_DEVICE_NAME "NPU")
string(TOLOWER "${NPU_DEVICE_NAME}" VPUX_PLUGIN_COMPONENT)
set(VPUX_INTERNAL_COMPONENT "${VPUX_PLUGIN_COMPONENT}_internal")
set(VPUX_TESTS_COMPONENT "${VPUX_PLUGIN_COMPONENT}_tests")
set(VPUX_PLUGIN_COMPONENT "npu")
set(VPUX_INTERNAL_COMPONENT "npu_internal")
set(VPUX_TESTS_COMPONENT "npu_tests")

set(NPU_CPACK_COMPONENTS_ALL ${VPUX_PLUGIN_COMPONENT} ${VPUX_INTERNAL_COMPONENT})

set(IE_MAIN_VPUX_PLUGIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

if (CMAKE_BUILD_TYPE STREQUAL "")
message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used")
set(CMAKE_BUILD_TYPE "Release")
endif()

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY ${MAIN_VPUX_PLUGIN_BINARY_DIR})
set(CMAKE_PDB_OUTPUT_DIRECTORY ${MAIN_VPUX_PLUGIN_BINARY_DIR})
endif()

if(DEFINED ENV{THIRDPARTY_SERVER_PATH})
set(THIRDPARTY_SERVER_PATH "$ENV{THIRDPARTY_SERVER_PATH}")
elseif(DEFINED THIRDPARTY_SERVER_PATH)
set(THIRDPARTY_SERVER_PATH "${THIRDPARTY_SERVER_PATH}")
endif()

include(FetchContent)

# TODO remove after migration
option(ENABLE_NPU_MONO "Please turn it on if you work under `npu_mono` environment" OFF)
if (ENABLE_NPU_MONO)
message(AUTHOR_WARNING "Experimental option ENABLE_NPU_MONO enabled")
set (NPU_MONO_ROOT ${IE_MAIN_VPUX_PLUGIN_SOURCE_DIR}/..)
set (NPU_MONO_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/..)
endif()

find_package(OpenVINODeveloperPackage REQUIRED)
Expand All @@ -82,7 +67,6 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/dependencies.cmake")
include(cmake/dependencies.cmake)
endif()

include(cmake/cross_compilation.cmake)
include(cmake/flatbuffers.cmake)
include(cmake/bundle_static_library.cmake)
include(cmake/embed_bin_file.cmake)
Expand Down Expand Up @@ -179,14 +163,6 @@ if(ENABLE_SOURCE_PACKAGE)
include(cmake/source_package.cmake)
endif()

if(CMAKE_SOURCE_DIR STREQUAL OpenVINO_SOURCE_DIR)
# NPU plugin public headers should be a part of common OpenVINO headers
set(dev_component ${OV_CPACK_COMP_CORE_DEV})
else()
# compatibility mode while NPU plugin is not part of OpenVINO repository and can be built separately
set(dev_component ${VPUX_PLUGIN_COMPONENT})
endif()

#
# CPack
#
Expand Down
42 changes: 13 additions & 29 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@

{
"name": "vpuxDeveloper",
"description": "Default configuration preset for VPUX Compiler development. Enables VPUX compiler and generic OV tests, and disables plugin specific builds. Also, enables IMD backend",
"description": "Default configuration preset for VPUX Compiler development. Enables VPUX compiler and generic OV tests, and disables plugin specific builds.",
"inherits": ["BuildOptimization", "EnableTests", "Disabler"],
"binaryDir": "${sourceDir}/build-x86_64/Debug",
"displayName": "vpuxDeveloper",
Expand All @@ -118,7 +118,7 @@
},
{
"name": "vpuxRelWithDebInfoDeveloper",
"description": "Release with debug info configuration preset for VPUX Compiler development. Enables VPUX compiler and generic OV tests, and disables plugin specific builds. Also, enables IMD backend",
"description": "Release with debug info configuration preset for VPUX Compiler development. Enables VPUX compiler and generic OV tests, and disables plugin specific builds.",
"inherits": ["BuildOptimization", "EnableTests", "Disabler"],
"binaryDir": "${sourceDir}/build-x86_64/RelWithDebInfo",
"displayName": "vpuxRelWithDebInfoDeveloper",
Expand Down Expand Up @@ -217,7 +217,7 @@
{
"name": "cid",
"hidden": true,
"description": "cid build necessary options. Please note the path of NPU plugin when use.",
"description": "Default configuration for NPU driver compiler. Make sure NPU_PLUGIN_HOME environment variable is set to the VPUX plugin root directory.",
"cacheVariables": {
"BUILD_SHARED_LIBS": false,
"ENABLE_OV_IR_FRONTEND": true,
Expand All @@ -235,15 +235,15 @@
}
},
{
"name": "npuCidReleaseLinux",
"description": "Default configuration for NPU Driver Compiler target build on Linux. Please note: 1) Please make sure that NPU_PLUGIN_HOME environment variable is set to NPU plugin path. 2) build Cid is a static build which only build related targets and not include other unrelated options and targets to avoid getting big generated files.",
"binaryDir": "${sourceDir}/build-x86_64/Release",
"displayName": "npuCidRelease",
"name": "npuCidLinux",
"description": "Default CMake configuration to build NPU-CiD targets on Linux. Note: (1) Make sure NPU_PLUGIN_HOME and CONFIG environment variables are set. (2) CiD is a static build that includes only the necessary targets. Irrelevant targets/components are excluded to minimize the size of the build output.",
"binaryDir": "${sourceDir}/build_$env{CONFIG}",
"displayName": "npuCid",
"inherits": ["cid", "BuildOptimization", "Disabler"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Release"
"value": "$env{CONFIG}"
},

"ENABLE_LTO": false,
Expand Down Expand Up @@ -291,15 +291,15 @@
}
},
{
"name": "npuCidReleaseWindows",
"description": "Default configuration for NPU Driver Compiler target build on Windows. Please note: 1) Please make sure that NPU_PLUGIN_HOME environment variable is set to NPU plugin path. 2) build Cid is a static build which only build related targets and not include other unrelated options and targets to avoid getting big generated files.",
"binaryDir": "${sourceDir}/build-x86_64/Release",
"displayName": "npuCidRelease",
"name": "npuCidWindows",
"description": "Default CMake configuration to build NPU-CiD targets on Windows. Note: (1) Make sure NPU_PLUGIN_HOME and CONFIG environment variables are set. (2) CiD is a static build that includes only the necessary targets. Irrelevant targets/components are excluded to minimize the size of the build output.",
"binaryDir": "${sourceDir}/build_$env{CONFIG}",
"displayName": "npuCid",
"inherits": ["cid", "BuildOptimization", "Disabler"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Release"
"value": "$env{CONFIG}"
},
"CMAKE_TOOLCHAIN_FILE":"${sourceDir}\\cmake\\toolchains\\onecoreuap.toolchain.cmake",
"ENABLE_LTO": false,
Expand Down Expand Up @@ -392,22 +392,6 @@
"VPUX_PLUGIN_HOME": "${sourceDir}"
}
},
{
"name": "Simulator",
"hidden": true,
"environment": {
"IE_NPU_USE_IMD_BACKEND": "1",
"IE_NPU_IMD_LAUNCH_MODE": "VPUX_IMD_SIMULATOR"
}
},
{
"name": "Silicon",
"hidden": true,
"environment": {
"IE_NPU_USE_IMD_BACKEND": "1",
"IE_NPU_IMD_LAUNCH_MODE": "VPUX_IMD_MOVI_DEBUG"
}
},
{
"name": "NPU3720/Simulator",
"hidden": true,
Expand Down
152 changes: 0 additions & 152 deletions cmake/cross_compilation.cmake

This file was deleted.

4 changes: 2 additions & 2 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ cmake_policy(SET CMP0054 NEW)
include(ExternalProject)

if(NOT BUILD_SHARED_LIBS)
set(TEMP "${IE_MAIN_VPUX_PLUGIN_SOURCE_DIR}/temp")
set(TEMP "${PROJECT_SOURCE_DIR}/temp")
else()
ov_set_temp_directory(TEMP "${IE_MAIN_VPUX_PLUGIN_SOURCE_DIR}")
ov_set_temp_directory(TEMP "${PROJECT_SOURCE_DIR}")
endif()

# FIXME: Create empty file to avoid errors on CI
Expand Down
3 changes: 1 addition & 2 deletions cmake/embed_bin_file.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#
# Copyright (C) 2022-2025 Intel Corporation.
# Copyright (C) 2025 Intel Corporation.
# SPDX-License-Identifier: Apache-2.0
#


function(vpux_embed_bin_file)
set(options)
set(oneValueArgs SOURCE_FILE HEADER_FILE VARIABLE_NAME)
Expand Down
12 changes: 4 additions & 8 deletions cmake/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ov_dependent_option(ENABLE_NPU_FUZZ_TESTS "NPU Fuzz tests" OFF "ENABLE_TESTS" OF
if(NOT ENABLE_LTO)
set(ENABLE_LTO OFF)
endif()
ov_dependent_option(ENABLE_LTO "Enable Link Time Optimization" ${ENABLE_LTO} "LINUX OR WIN32;NOT CMAKE_CROSSCOMPILING" OFF)
ov_dependent_option(ENABLE_LTO "Enable Link Time Optimization" ${ENABLE_LTO} "LINUX OR WIN32" OFF)

if(NOT ENABLE_FASTER_BUILD)
set(ENABLE_FASTER_BUILD OFF)
Expand Down Expand Up @@ -56,12 +56,8 @@ if(ENABLE_PRIVATE_COMPILER_OPTIONS)
add_definitions(-DPRIVATE_COMPILER_OPTIONS_ENABLED)
endif()

if(NOT DEFINED MV_TOOLS_PATH AND DEFINED ENV{MV_TOOLS_DIR} AND DEFINED ENV{MV_TOOLS_VERSION})
set(MV_TOOLS_PATH $ENV{MV_TOOLS_DIR}/$ENV{MV_TOOLS_VERSION})
endif()

ov_option(ENABLE_NPU_LOADER "Enable npu-loader" OFF)
ov_option(ENABLE_NPU_LSP_SERVER "Enable npu-lsp-server" ON)
ov_option(ENABLE_NPU_LSP_SERVER "Enable npu-lsp-server" OFF)

get_target_property(ov_linked_libs openvino::runtime IMPORTED_LINK_DEPENDENT_LIBRARIES_RELEASE)
if(THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO" OR "TBB::tbb" IN_LIST ov_linked_libs)
Expand All @@ -87,8 +83,8 @@ ov_option(ENABLE_NPU_MICRO_BENCHMARKS "NPU micro benchmarks" OFF)
if(ENABLE_VPUX_DOCS)
find_package(Doxygen)
if(DOXYGEN_FOUND)
set(DOXYGEN_IN ${IE_MAIN_VPUX_PLUGIN_SOURCE_DIR}/docs/VPUX_DG/Doxyfile.in)
set(DOXYGEN_OUT ${IE_MAIN_VPUX_PLUGIN_SOURCE_DIR}/docs/VPUX_DG/generated/Doxyfile)
set(DOXYGEN_IN ${PROJECT_SOURCE_DIR}/docs/VPUX_DG/Doxyfile.in)
set(DOXYGEN_OUT ${PROJECT_SOURCE_DIR}/docs/VPUX_DG/generated/Doxyfile)

configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
message("Doxygen build started")
Expand Down
Loading