Skip to content

Commit 9e3d56d

Browse files
authored
NPU Driver 1.22.0 release unified 2025WW28
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 d7726ce commit 9e3d56d

File tree

106 files changed

+2697
-1858
lines changed

Some content is hidden

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

106 files changed

+2697
-1858
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
url = https://github.com/jbeder/yaml-cpp.git
1616
[submodule "third_party/perfetto"]
1717
path = third_party/perfetto
18-
url = https://android.googlesource.com/platform/external/perfetto
18+
url = https://github.com/google/perfetto.git

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.19.0 CACHE STRING "Main project version")
13+
set(STACK_VERSION 1.22.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")

compiler/compiler_source.cmake

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ endif()
2323
include(ExternalProject)
2424

2525
set(OPENVINO_REPOSITORY https://github.com/openvinotoolkit/openvino.git)
26-
set(OPENVINO_REVISION 649eec15cfeb1e1dc92164b8886d96637260e487)
26+
set(OPENVINO_REVISION c01cd93e24d1cd78bfbb401eed51c08fb93e0816)
2727
set(OPENCV_REVISION 4d6d6fb18fb859f176e5ce2ad3295097a42cd8af)
2828
set(GENAI_REVISION 01f0fe1eded5934871fef866ed217a60fa2c6049)
29-
set(ONNXRUNTIME_REVISION v1.21.1)
29+
set(ONNXRUNTIME_TAG microsoft:dfc27cd7c7ea327e3610e0f90ae56b54f9be614c)
30+
set(ONNXRUNTIME_REVISION dfc27cd7c7ea327e3610e0f90ae56b54f9be614c)
3031

31-
set(NPU_COMPILER_TAG npu_ud_2025_24_rc2)
32-
set(NPU_COMPILER_REVISION b806f941c88c8690a5cab4b50a9760c6daf822db)
32+
set(NPU_COMPILER_TAG npu_ud_2025_28_rc1)
33+
set(NPU_COMPILER_REVISION 90b6098b9ee96055d633dc520354434bae22e336)
3334
# Compiler might use different OpenVINO revision
34-
set(NPU_COMPILER_OPENVINO_REVISION d72b76159445bfa066c13815ff2948fde86dfec2)
35+
set(NPU_COMPILER_OPENVINO_REVISION dd611339928e5637b1ea43d9557a88ac1b938060)
3536

3637
set(OPENVINO_SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/src/openvino")
3738
file(MAKE_DIRECTORY ${OPENVINO_SOURCE_DIR})

compiler/include/npu_driver_compiler.h

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ extern "C" {
2323
#endif
2424

2525
#define VCL_COMPILER_VERSION_MAJOR 7
26-
#define VCL_COMPILER_VERSION_MINOR 3
26+
#define VCL_COMPILER_VERSION_MINOR 4
2727
#define VCL_PROFILING_VERSION_MAJOR 2
2828
#define VCL_PROFILING_VERSION_MINOR 0
2929

30+
#ifndef DEPRECATED
31+
#define DEPRECATED // for documentation only
32+
#endif
33+
3034
///////////////////////////////////////////////////////////////////////////////
3135
#ifndef VCL_APICALL
3236
#if defined(_WIN32)
@@ -240,18 +244,30 @@ VCL_APIEXPORT vcl_result_t VCL_APICALL vclQueryNetworkDestroy(vcl_query_handle_t
240244
///////////////////////////////////////////////////////////////////////////////
241245
/// @brief Creates an executable object and returns the executable handle.
242246
/// Parse modelIRData in the executable descriptor to blob and store it in the executable.
243-
VCL_APIEXPORT vcl_result_t VCL_APICALL vclExecutableCreate(vcl_compiler_handle_t compiler, vcl_executable_desc_t desc,
244-
vcl_executable_handle_t* executable);
247+
DEPRECATED VCL_APIEXPORT vcl_result_t VCL_APICALL vclExecutableCreate(vcl_compiler_handle_t compiler,
248+
vcl_executable_desc_t desc,
249+
vcl_executable_handle_t* executable);
245250

246-
typedef struct __vcl_allocator_t {
251+
DEPRECATED typedef struct __vcl_allocator_t {
247252
uint8_t* (*allocate)(uint64_t);
248253
void (*deallocate)(uint8_t*);
249254
} vcl_allocator_t;
250255

251-
VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate(vcl_compiler_handle_t compiler,
252-
vcl_executable_desc_t desc,
253-
vcl_allocator_t const* allocator,
254-
uint8_t** blobBuffer, uint64_t* blobSize);
256+
typedef struct __vcl_allocator2_t {
257+
uint8_t* (*allocate)(struct __vcl_allocator2_t*, uint64_t);
258+
void (*deallocate)(struct __vcl_allocator2_t*, uint8_t*);
259+
} vcl_allocator2_t;
260+
261+
DEPRECATED VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate(vcl_compiler_handle_t compiler,
262+
vcl_executable_desc_t desc,
263+
vcl_allocator_t const* allocator,
264+
uint8_t** blobBuffer,
265+
uint64_t* blobSize);
266+
267+
VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate2(vcl_compiler_handle_t compiler,
268+
vcl_executable_desc_t desc,
269+
vcl_allocator2_t* allocator, uint8_t** blobBuffer,
270+
uint64_t* blobSize);
255271

256272
///////////////////////////////////////////////////////////////////////////////
257273
/// @brief Destroys the executable and releases the cached blob.

compiler/openvino_build.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ if (ENABLE_ONNXRUNTIME_PACKAGE)
9898
set(ONNXRUNTIME_SOURCE_DIR "${CMAKE_BINARY_DIR}/third_party/onnxruntime")
9999
ExternalProject_Add(
100100
onnxruntime_build
101-
GIT_REPOSITORY https://github.com/microsoft/onnxruntime.git
101+
GIT_REPOSITORY https://github.com/intel/onnxruntime.git
102102
GIT_TAG ${ONNXRUNTIME_REVISION}
103103
DEPENDS openvino_build
104104
SOURCE_DIR ${ONNXRUNTIME_SOURCE_DIR}
@@ -110,7 +110,7 @@ if (ENABLE_ONNXRUNTIME_PACKAGE)
110110
BUILD_IN_SOURCE ON)
111111

112112
set(ONNXRUNTIME_PACKAGE_DIR "${CMAKE_BINARY_DIR}/third_party/onnxruntime-package")
113-
set(ONNXRUNTIME_PACKAGE_NAME "onnxruntime-${TARGET_DISTRO}-${ONNXRUNTIME_REVISION}-${BUILD_NUMBER}")
113+
set(ONNXRUNTIME_PACKAGE_NAME "onnxruntime-${TARGET_DISTRO}-${ONNXRUNTIME_TAG}-${BUILD_NUMBER}")
114114
add_custom_target(onnxruntime_package ALL
115115
COMMAND
116116
mkdir -p ${ONNXRUNTIME_PACKAGE_DIR}/bin &&

firmware/bin/vpu_37xx_v1.bin

1.73 KB
Binary file not shown.

firmware/bin/vpu_40xx_v1.bin

7.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)