Skip to content

Commit 1aed8a4

Browse files
authored
NPU Driver 1.24.0 release unified 2025WW38 (#114)
* Updated Level Zero to v1.24.2 * Updated vpux_elf submodule to ad07093 * Updated compiler to npu_ud_2025_38_rc1 * New Firmware binaries * New driver and umd-test changes Signed-off-by: Schulfer, Magdalena [email protected] Signed-off-by: Wludzik, Jozef [email protected] Co-authored-by: Pawlak, Jakub [email protected] Co-authored-by: Tabaka, Mateusz [email protected]
1 parent ed53882 commit 1aed8a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+383
-413
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24")
1010
cmake_policy(SET CMP0135 NEW)
1111
endif()
1212

13-
set(STACK_VERSION 1.23.0 CACHE STRING "Main project version")
13+
set(STACK_VERSION 1.24.0 CACHE STRING "Main project version")
1414
project(npu-linux-driver VERSION ${STACK_VERSION})
1515

1616
set(BUILD_NUMBER "dev-0" CACHE STRING "Build number composed of name and unique number used as driver version")

cmake/compiler_flags.cmake

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# Copyright 2022-2024 Intel Corporation.
1+
# Copyright (C) 2022-2025 Intel Corporation
22
#
3-
# This software and the related documents are Intel copyrighted materials, and
4-
# your use of them is governed by the express license under which they were
5-
# provided to you ("License"). Unless the License provides otherwise, you may
6-
# not use, modify, copy, publish, distribute, disclose or transmit this
7-
# software or the related documents without Intel's prior written permission.
8-
#
9-
# This software and the related documents are provided as is, with no express
10-
# or implied warranties, other than those that are expressly stated in
11-
# the License.
3+
# SPDX-License-Identifier: MIT
124

135
add_compile_options(
146
# Compiler warnings

cmake/detect_linux_system.cmake

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# Copyright 2022-2024 Intel Corporation.
1+
# Copyright (C) 2022-2025 Intel Corporation
22
#
3-
# This software and the related documents are Intel copyrighted materials, and
4-
# your use of them is governed by the express license under which they were
5-
# provided to you ("License"). Unless the License provides otherwise, you may
6-
# not use, modify, copy, publish, distribute, disclose or transmit this
7-
# software or the related documents without Intel's prior written permission.
8-
#
9-
# This software and the related documents are provided as is, with no express
10-
# or implied warranties, other than those that are expressly stated in
11-
# the License.
3+
# SPDX-License-Identifier: MIT
124

135
function(read_os_release ENTRY VAR_OUTPUT)
146
if (ANDROID)

cmake/packaging/postinst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
#!/bin/bash
22

3-
# Copyright 2024 Intel Corporation.
3+
# Copyright (C) 2024-2025 Intel Corporation
44
#
5-
# This software and the related documents are Intel copyrighted materials, and
6-
# your use of them is governed by the express license under which they were
7-
# provided to you ("License"). Unless the License provides otherwise, you may
8-
# not use, modify, copy, publish, distribute, disclose or transmit this
9-
# software or the related documents without Intel's prior written permission.
10-
#
11-
# This software and the related documents are provided as is, with no express
12-
# or implied warranties, other than those that are expressly stated in
13-
# the License.
5+
# SPDX-License-Identifier: MIT
146

157
set -e -o pipefail
168

cmake/sanitizer.cmake

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# Copyright 2022-2023 Intel Corporation.
1+
# Copyright (C) 2022-2025 Intel Corporation
22
#
3-
# This software and the related documents are Intel copyrighted materials, and
4-
# your use of them is governed by the express license under which they were
5-
# provided to you ("License"). Unless the License provides otherwise, you may
6-
# not use, modify, copy, publish, distribute, disclose or transmit this
7-
# software or the related documents without Intel's prior written permission.
8-
#
9-
# This software and the related documents are provided as is, with no express
10-
# or implied warranties, other than those that are expressly stated in
11-
# the License.
3+
# SPDX-License-Identifier: MIT
124

135
# Add options for building with sanitizers
146
if(NOT ENABLE_SANITIZER)

compiler/CMakeLists.txt

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# Copyright 2022-2024 Intel Corporation.
1+
# Copyright (C) 2022-2025 Intel Corporation
22
#
3-
# This software and the related documents are Intel copyrighted materials, and
4-
# your use of them is governed by the express license under which they were
5-
# provided to you ("License"). Unless the License provides otherwise, you may
6-
# not use, modify, copy, publish, distribute, disclose or transmit this
7-
# software or the related documents without Intel's prior written permission.
8-
#
9-
# This software and the related documents are provided as is, with no express
10-
# or implied warranties, other than those that are expressly stated in
11-
# the License.
3+
# SPDX-License-Identifier: MIT
124

135
include(openvino.cmake)
146
include(npu_compiler.cmake)

compiler/compiler_source.cmake

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# Copyright 2022-2025 Intel Corporation.
1+
# Copyright (C) 2022-2025 Intel Corporation
22
#
3-
# This software and the related documents are Intel copyrighted materials, and
4-
# your use of them is governed by the express license under which they were
5-
# provided to you ("License"). Unless the License provides otherwise, you may
6-
# not use, modify, copy, publish, distribute, disclose or transmit this
7-
# software or the related documents without Intel's prior written permission.
8-
#
9-
# This software and the related documents are provided as is, with no express
10-
# or implied warranties, other than those that are expressly stated in
11-
# the License.
3+
# SPDX-License-Identifier: MIT
124

135
if(TARGET npu_compiler_source)
146
return()
@@ -23,16 +15,16 @@ endif()
2315
include(ExternalProject)
2416

2517
set(OPENVINO_REPOSITORY https://github.com/openvinotoolkit/openvino.git)
26-
set(OPENVINO_REVISION c01cd93e24d1cd78bfbb401eed51c08fb93e0816)
27-
set(OPENCV_REVISION 4d6d6fb18fb859f176e5ce2ad3295097a42cd8af)
28-
set(GENAI_REVISION 01f0fe1eded5934871fef866ed217a60fa2c6049)
29-
set(ONNXRUNTIME_TAG microsoft:9001123f6813409bce2d8ec24888ac73e348c26e)
30-
set(ONNXRUNTIME_REVISION 9001123f6813409bce2d8ec24888ac73e348c26e)
18+
set(OPENVINO_REVISION 44526285f241251e9543276572676365fbe542a4)
19+
set(OPENCV_REVISION 252403bbf2fc560007c2c9057db5a9a151e99dd7)
20+
set(GENAI_REVISION 3c0e2d3e7e13fa5e1dd5ea9ef1df59ce9fa852b5)
21+
set(ONNXRUNTIME_TAG microsoft:7a919c693692d50f7c222660b76fb5b0c9926738)
22+
set(ONNXRUNTIME_REVISION 7a919c693692d50f7c222660b76fb5b0c9926738)
3123

32-
set(NPU_COMPILER_TAG npu_ud_2025_32_rc1)
33-
set(NPU_COMPILER_REVISION df25c7815507db20f903ce585f3976ff927890d6)
24+
set(NPU_COMPILER_TAG npu_ud_2025_38_rc1)
25+
set(NPU_COMPILER_REVISION 5aa47b4f67f9eec535316adf449a6aca58c635b2)
3426
# Compiler might use different OpenVINO revision
35-
set(NPU_COMPILER_OPENVINO_REVISION d97acfdce00ea5229e4c2d0ab03256ce0dff0a68)
27+
set(NPU_COMPILER_OPENVINO_REVISION 7ced823330831da23d1985ee27e32b96ebfcf110)
3628

3729
set(OPENVINO_SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/src/openvino")
3830
file(MAKE_DIRECTORY ${OPENVINO_SOURCE_DIR})

compiler/npu_compiler.cmake

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright 2022-2025 Intel Corporation.
1+
# Copyright (C) 2022-2025 Intel Corporation
22
#
3-
# This software and the related documents are Intel copyrighted materials, and
4-
# your use of them is governed by the express license under which they were
5-
# provided to you ("License"). Unless the License provides otherwise, you may
6-
# not use, modify, copy, publish, distribute, disclose or transmit this software
7-
# or the related documents without Intel's prior written permission.
8-
#
9-
# This software and the related documents are provided as is, with no express or
10-
# implied warranties, other than those that are expressly stated in the License.
3+
# SPDX-License-Identifier: MIT
114

125
add_library(npu_compiler INTERFACE)
136

compiler/npu_compiler_build.cmake

Lines changed: 78 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# Copyright 2022-2025 Intel Corporation.
1+
# Copyright (C) 2022-2025 Intel Corporation
22
#
3-
# This software and the related documents are Intel copyrighted materials, and
4-
# your use of them is governed by the express license under which they were
5-
# provided to you ("License"). Unless the License provides otherwise, you may
6-
# not use, modify, copy, publish, distribute, disclose or transmit this
7-
# software or the related documents without Intel's prior written permission.
8-
#
9-
# This software and the related documents are provided as is, with no express
10-
# or implied warranties, other than those that are expressly stated in
11-
# the License.
3+
# SPDX-License-Identifier: MIT
124

135
include(compiler_source.cmake)
146

@@ -25,54 +17,91 @@ set(NPU_COMPILER_PACKAGE_DIR ${NPU_COMPILER_INSTALL_PREFIX}/cid)
2517

2618
include(ExternalProject)
2719

20+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D CMAKE_BUILD_TYPE=Release")
21+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D CMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}")
22+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D BUILD_COMPILER_FOR_DRIVER=ON")
23+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D BUILD_SHARED_LIBS=OFF")
24+
# CLANG_FORMAT and NCC_STYLE is set to OFF to avoid LLVMDemangle doubled target issue
25+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_CLANG_FORMAT=OFF")
26+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_CLANG_TIDY=OFF")
27+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_NCC_STYLE=OFF")
28+
# Copied from "how_to_build_driver_compiler" document
29+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_AUTO=OFF")
30+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_AUTO_BATCH=OFF")
31+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_BLOB_DUMP=OFF")
32+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_FUNCTIONAL_TESTS=OFF")
33+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_HETERO=OFF")
34+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_INTEL_CPU=OFF")
35+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_INTEL_GPU=OFF")
36+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_JS=OFF")
37+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_MULTI=OFF")
38+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_INTEL_NPU=ON")
39+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_INTEL_NPU_INTERNAL=OFF")
40+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_INTEL_NPU_PROTOPIPE=OFF")
41+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_OV_IR_FRONTEND=ON")
42+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_OV_JAX_FRONTEND=OFF")
43+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_OV_ONNX_FRONTEND=OFF")
44+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_OV_PADDLE_FRONTEND=OFF")
45+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_OV_PYTORCH_FRONTEND=OFF")
46+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_OV_TF_FRONTEND=OFF")
47+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_OV_TF_LITE_FRONTEND=OFF")
48+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_PROXY=OFF")
49+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_SAMPLES=OFF")
50+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_TBBBIND_2_5=OFF")
51+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_TEMPLATE=OFF")
52+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ENABLE_TESTS=OFF")
53+
# WA in case libgflags is installed in system
54+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D gflags_DIR=${CMAKE_CURRENT_SOURCE_DIR}/openvino_modules")
55+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D OPENVINO_EXTRA_MODULES=${NPU_COMPILER_SOURCE_DIR}")
56+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D OUTPUT_ROOT=${NPU_COMPILER_BINARY_DIR}")
57+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D THREADING=${THREADING}")
58+
59+
if (ANDROID)
60+
# First build native tools required for NPU compiler
61+
set(NPU_COMPILER_NATIVE_TOOLS_BUILD npu_compiler_native_tools_build)
62+
set(NPU_COMPILER_NATIVE_TOOLS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/build_npu_compiler_native_tools)
63+
64+
ExternalProject_Add(
65+
${NPU_COMPILER_NATIVE_TOOLS_BUILD}
66+
DOWNLOAD_COMMAND ""
67+
DEPENDS npu_compiler_source ${NPU_COMPILER_BUILD_DEPENDS}
68+
SOURCE_DIR ${NPU_COMPILER_OPENVINO_SOURCE_DIR}
69+
BINARY_DIR ${NPU_COMPILER_NATIVE_TOOLS_BINARY_DIR}
70+
CMAKE_ARGS
71+
${NPU_COMPILER_CMAKE_ARGS}
72+
BUILD_COMMAND
73+
${CMAKE_COMMAND}
74+
--build ${NPU_COMPILER_NATIVE_TOOLS_BINARY_DIR}
75+
--target npureg-tblgen mlir-headers mlir-generic-headers mlir-linalg-ods-yaml-gen flatc
76+
--parallel ${PARALLEL_PROCESSES}
77+
INSTALL_COMMAND
78+
mkdir -p ${NPU_COMPILER_BINARY_DIR}/build-modules/npu_compiler/thirdparty/llvm-project/llvm/NATIVE &&
79+
cp -r ${NPU_COMPILER_NATIVE_TOOLS_BINARY_DIR}/build-modules/npu_compiler/thirdparty/llvm-project/llvm/bin ${NPU_COMPILER_BINARY_DIR}/build-modules/npu_compiler/thirdparty/llvm-project/llvm/NATIVE/
80+
BYPRODUCTS
81+
${NPU_COMPILER_BINARY_DIR}/bin/intel64/Release/flatc
82+
${NPU_COMPILER_BINARY_DIR}/bin/intel64/Release/npureg-tblgen
83+
)
84+
85+
# Android specific settings
86+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ANDROID_ABI=${ANDROID_ABI}")
87+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ANDROID_PLATFORM=${ANDROID_PLATFORM}")
88+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D ANDROID_STL=${ANDROID_STL}")
89+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D CMAKE_CXX_FLAGS_INIT='-frtti'")
90+
endif()
91+
92+
list(APPEND NPU_COMPILER_CMAKE_ARGS "-D CMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
93+
2894
ExternalProject_Add(
2995
npu_compiler_build
3096
DOWNLOAD_COMMAND ""
31-
DEPENDS npu_compiler_source ${NPU_COMPILER_BUILD_DEPENDS}
97+
DEPENDS npu_compiler_source ${NPU_COMPILER_BUILD_DEPENDS} ${NPU_COMPILER_NATIVE_TOOLS_BUILD}
3298
SOURCE_DIR ${NPU_COMPILER_OPENVINO_SOURCE_DIR}
3399
BINARY_DIR ${NPU_COMPILER_BINARY_DIR}
34100
CMAKE_ARGS
35-
-D CMAKE_BUILD_TYPE=Release
36-
-D CMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
37-
-D CMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
38-
-D BUILD_COMPILER_FOR_DRIVER=ON
39-
-D BUILD_SHARED_LIBS=OFF
40-
# CLANG_FORMAT and NCC_STYLE is set to OFF to avoid LLVMDemangle doubled target issue
41-
-D ENABLE_CLANG_FORMAT=OFF
42-
-D ENABLE_CLANG_TIDY=OFF
43-
-D ENABLE_NCC_STYLE=OFF
44-
# Copied from "how_to_build_driver_compiler" document
45-
-D ENABLE_AUTO=OFF
46-
-D ENABLE_AUTO_BATCH=OFF
47-
-D ENABLE_BLOB_DUMP=OFF
48-
-D ENABLE_FUNCTIONAL_TESTS=OFF
49-
-D ENABLE_HETERO=OFF
50-
-D ENABLE_INTEL_CPU=OFF
51-
-D ENABLE_INTEL_GPU=OFF
52-
-D ENABLE_JS=OFF
53-
-D ENABLE_MULTI=OFF
54-
-D ENABLE_INTEL_NPU_PROTOPIPE=OFF
55-
-D ENABLE_OV_IR_FRONTEND=ON
56-
-D ENABLE_OV_JAX_FRONTEND=OFF
57-
-D ENABLE_OV_ONNX_FRONTEND=OFF
58-
-D ENABLE_OV_PADDLE_FRONTEND=OFF
59-
-D ENABLE_OV_PYTORCH_FRONTEND=OFF
60-
-D ENABLE_OV_TF_FRONTEND=OFF
61-
-D ENABLE_OV_TF_LITE_FRONTEND=OFF
62-
-D ENABLE_PROXY=OFF
63-
-D ENABLE_SAMPLES=OFF
64-
-D ENABLE_TBBBIND_2_5=OFF
65-
-D ENABLE_TEMPLATE=OFF
66-
-D ENABLE_TESTS=OFF
67-
# WA in case libgflags is installed in system
68-
-D gflags_DIR=${CMAKE_CURRENT_SOURCE_DIR}/openvino_modules
69-
-D OPENVINO_EXTRA_MODULES=${NPU_COMPILER_SOURCE_DIR}
70-
-D OUTPUT_ROOT=${NPU_COMPILER_BINARY_DIR}
71-
-D THREADING=${THREADING}
101+
${NPU_COMPILER_CMAKE_ARGS}
72102
BUILD_COMMAND
73103
${CMAKE_COMMAND}
74104
--build ${NPU_COMPILER_BINARY_DIR}
75-
--config Release
76105
--target compilerTest profilingTest vpuxCompilerL0Test loaderTest
77106
--parallel ${PARALLEL_PROCESSES}
78107
INSTALL_COMMAND

compiler/openvino.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#
21
# Copyright (C) 2024-2025 Intel Corporation
32
#
43
# SPDX-License-Identifier: MIT
5-
#
64

75
if (ENABLE_OPENVINO_PACKAGE)
86
include(openvino_build.cmake)

0 commit comments

Comments
 (0)