public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openvino] f45: Merge branch 'rawhide' into f45
@ 2026-11-24 19:41 Pavel Androniychuk
0 siblings, 0 replies; only message in thread
From: Pavel Androniychuk @ 2026-11-24 19:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openvino
Branch : f45
Commit : cce85fed853aa0ca64cae79a00e9f10d4339a09a
Author : Pavel Androniychuk <pavel.androniychuk@intel.com>
Date : 2026-11-24T11:41:32-08:00
Stats : +362/-150 in 18 file(s)
URL : https://src.fedoraproject.org/rpms/openvino/c/cce85fed853aa0ca64cae79a00e9f10d4339a09a?branch=f45
Log:
Merge branch 'rawhide' into f45
---
diff --git a/.gitignore b/.gitignore
index ccbcc46..0f584d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,6 @@
/onednn-*.tar.gz
/level-zero-npu-extensions-*.tar.gz
/npu_compiler-*.tar.gz
-/npu_plugin_elf-*.tar.gz
-/npu-plugin-llvm-*.tar.gz
+/npu_compiler_elf-*.tar.gz
+/npu-compiler-llvm-*.tar.gz
/npu-nn-cost-model-*.tar.gz
-/flatbuffers-*.tar.gz
diff --git a/README.md b/README.md
index 0163f1a..5f0bc68 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,8 @@ recommendation systems.
| `libopenvino-hetero-plugin` | Hetero plugin |
| `libopenvino-intel-cpu-plugin` | Intel CPU plugin (bundles oneDNN + MLAS) |
| `libopenvino-intel-gpu-plugin` | Intel GPU plugin |
+| `libopenvino-intel-npu-plugin` | Intel NPU plugin (bundles level-zero-npu-extensions headers) |
+| `intel-npu-compiler` | Intel NPU compiler used by the NPU plugin and `intel-npu-driver` (bundles the NPU LLVM/MLIR fork, npu-nn-cost-model, npu_compiler_elf) |
| `libopenvino-ir-frontend` | IR model frontend |
| `libopenvino-onnx-frontend` | ONNX model frontend |
| `libopenvino-paddle-frontend` | PaddlePaddle model frontend |
diff --git a/npu-compiler-commit-hash.patch b/npu-compiler-commit-hash.patch
new file mode 100644
index 0000000..e5c5f1d
--- /dev/null
+++ b/npu-compiler-commit-hash.patch
@@ -0,0 +1,34 @@
+diff --git a/thirdparty/npu_compiler/cmake/compiler_commit_hash.cmake b/thirdparty/npu_compiler/cmake/compiler_commit_hash.cmake
+index 7617a6df..1c458336 100644
+--- a/thirdparty/npu_compiler/cmake/compiler_commit_hash.cmake
++++ b/thirdparty/npu_compiler/cmake/compiler_commit_hash.cmake
+@@ -3,6 +3,9 @@
+ # SPDX-License-Identifier: Apache-2.0
+ #
+
++if(COMMIT_HASH)
++ set(CURRENT_COMMIT_HASH ${COMMIT_HASH})
++else()
+ execute_process(
+ COMMAND
+ git rev-parse HEAD
+@@ -15,6 +18,7 @@ execute_process(
+ if (NOT ${ERROR_CODE} EQUAL 0)
+ message(FATAL_ERROR "Failed to capture compiler git commit.")
+ endif()
++endif()
+
+ set(LAST_COMMIT_HASH "")
+ if (EXISTS ${COMMIT_HASH_CACHE})
+diff --git a/thirdparty/npu_compiler/src/vpux_compiler/CMakeLists.txt b/thirdparty/npu_compiler/src/vpux_compiler/CMakeLists.txt
+index 9a7fb2de..da229702 100644
+--- a/thirdparty/npu_compiler/src/vpux_compiler/CMakeLists.txt
++++ b/thirdparty/npu_compiler/src/vpux_compiler/CMakeLists.txt
+@@ -75,6 +75,7 @@ set(COMMIT_HASH_CACHE ${CMAKE_CURRENT_BINARY_DIR}/include/vpux/compiler/compiler
+ add_custom_target(update_compiler_hash ALL
+ COMMAND ${CMAKE_COMMAND}
+ -D REPO_DIR=${PROJECT_SOURCE_DIR}
++ -D COMMIT_HASH=${NPU_COMPILER_COMMIT_HASH}
+ -D COMMIT_HASH_PATTERN=${COMMIT_HASH_PATTERN}
+ -D COMMIT_HASH_FILE=${COMMIT_HASH_FILE}
+ -D COMMIT_HASH_CACHE=${COMMIT_HASH_CACHE}
diff --git a/npu-compiler-cpack-components.patch b/npu-compiler-cpack-components.patch
new file mode 100644
index 0000000..d6635ce
--- /dev/null
+++ b/npu-compiler-cpack-components.patch
@@ -0,0 +1,14 @@
+diff --git a/cmake/packaging/rpm.cmake b/cmake/packaging/rpm.cmake
+index 6c9293a1..070251f9 100644
+--- a/cmake/packaging/rpm.cmake
++++ b/cmake/packaging/rpm.cmake
+@@ -43,6 +43,9 @@ macro(ov_cpack_settings)
+ NOT item MATCHES "node_addon" AND
+ # temporary block npu
+ NOT item STREQUAL "npu" AND
++ # NPU compiler components registered by the npu_compiler extra module
++ NOT item STREQUAL "CiD" AND
++ NOT item STREQUAL "CiP" AND
+ # don't install Intel OpenMP
+ NOT item STREQUAL "omp" AND
+ # the same for pugixml
diff --git a/npu-compiler-driver-tests.patch b/npu-compiler-driver-tests.patch
new file mode 100644
index 0000000..b3cbe87
--- /dev/null
+++ b/npu-compiler-driver-tests.patch
@@ -0,0 +1,15 @@
+diff --git a/thirdparty/npu_compiler/src/vpux_driver_compiler/CMakeLists.txt b/thirdparty/npu_compiler/src/vpux_driver_compiler/CMakeLists.txt
+index f9338e22..4821ad84 100644
+--- a/thirdparty/npu_compiler/src/vpux_driver_compiler/CMakeLists.txt
++++ b/thirdparty/npu_compiler/src/vpux_driver_compiler/CMakeLists.txt
+@@ -14,7 +14,9 @@ endif()
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+ add_subdirectory(src)
+-add_subdirectory(test)
++if(ENABLE_TESTS)
++ add_subdirectory(test)
++endif()
+
+ install(
+ FILES
diff --git a/npu-compiler-no-werror.patch b/npu-compiler-no-werror.patch
new file mode 100644
index 0000000..c27456a
--- /dev/null
+++ b/npu-compiler-no-werror.patch
@@ -0,0 +1,20 @@
+diff --git a/thirdparty/npu_compiler/cmake/compile_options.cmake b/thirdparty/npu_compiler/cmake/compile_options.cmake
+index dfeaae09..47a9508c 100644
+--- a/thirdparty/npu_compiler/cmake/compile_options.cmake
++++ b/thirdparty/npu_compiler/cmake/compile_options.cmake
+@@ -120,8 +120,14 @@ function(enable_warnings_as_errors TARGET_NAME)
+ else()
+ target_compile_options(${TARGET_NAME}
+ PRIVATE
+- -Wall -Wextra -Werror -Werror=suggest-override
++ -Wall -Wextra
+ )
++ if(CMAKE_COMPILE_WARNING_AS_ERROR)
++ target_compile_options(${TARGET_NAME}
++ PRIVATE
++ -Werror -Werror=suggest-override
++ )
++ endif()
+ if(NOT WARNIGS_SKIP_SYSTEM)
+ # Set SYSTEM property on OpenVINO dependencies to suppress extra warnings from their headers
+ # when building via OPENVINO_EXTRA_MODULES
diff --git a/npu-compiler-system-flatbuffers.patch b/npu-compiler-system-flatbuffers.patch
new file mode 100644
index 0000000..a449de5
--- /dev/null
+++ b/npu-compiler-system-flatbuffers.patch
@@ -0,0 +1,50 @@
+diff --git a/thirdparty/npu_compiler/thirdparty/CMakeLists.txt b/thirdparty/npu_compiler/thirdparty/CMakeLists.txt
+index e8ff2bea..90797167 100644
+--- a/thirdparty/npu_compiler/thirdparty/CMakeLists.txt
++++ b/thirdparty/npu_compiler/thirdparty/CMakeLists.txt
+@@ -52,6 +52,12 @@ else()
+ endif()
+ endif()
+
++#
++# flatbuffers
++#
++
++include(flatbuffers.cmake)
++
+ #
+ # nn cost model
+ #
+@@ -106,12 +112,6 @@ if(NOT ENABLE_PREBUILT_LLVM_MLIR_LIBS)
+ include_directories(SYSTEM ${MLIR_SOURCE_DIR} ${MLIR_BINARY_DIR})
+ endif()
+
+-#
+-# flatbuffers
+-#
+-
+-include(flatbuffers.cmake)
+-
+ #
+ # pugixml
+ #
+diff --git a/thirdparty/npu_compiler/thirdparty/flatbuffers.cmake b/thirdparty/npu_compiler/thirdparty/flatbuffers.cmake
+index 70cdf058..df01a4a0 100644
+--- a/thirdparty/npu_compiler/thirdparty/flatbuffers.cmake
++++ b/thirdparty/npu_compiler/thirdparty/flatbuffers.cmake
+@@ -9,6 +9,15 @@ if(TARGET flatbuffers OR TARGET flatc)
+ # and flatbuffers is already built as part of OpenVINO in case of
+ # building in a single tree
+ message(WARNING "Flatbuffers target present. Possible version mismatch.")
++elseif(TARGET flatbuffers::flatc AND flatbuffers_LIBRARY)
++ # system flatbuffers found by OpenVINO (ENABLE_SYSTEM_FLATBUFFERS=ON)
++ add_library(flatbuffers INTERFACE)
++ target_link_libraries(flatbuffers INTERFACE ${flatbuffers_LIBRARY})
++ get_target_property(FLATBUFFERS_SYSTEM_INCLUDE_DIR ${flatbuffers_LIBRARY} INTERFACE_INCLUDE_DIRECTORIES)
++ set_target_properties(flatbuffers PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${FLATBUFFERS_SYSTEM_INCLUDE_DIR}")
++ add_executable(flatc IMPORTED GLOBAL)
++ get_target_property(FLATC_SYSTEM_LOCATION flatbuffers::flatc LOCATION)
++ set_target_properties(flatc PROPERTIES IMPORTED_LOCATION "${FLATC_SYSTEM_LOCATION}")
+ elseif(NOT OpenVINO_SOURCE_DIR)
+ # Using OpenVINO prebuilt developer package
+ set(OPENVINO_INSTALL_DEVELOPER_PACKAGE_DIR "${OpenVINODeveloperPackage_DIR}/..")
diff --git a/npu-system-level-zero.patch b/npu-system-level-zero.patch
new file mode 100644
index 0000000..b152e89
--- /dev/null
+++ b/npu-system-level-zero.patch
@@ -0,0 +1,24 @@
+diff --git a/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt b/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt
+index 1c0f458c..482d32dd 100644
+--- a/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt
++++ b/src/plugins/intel_npu/src/utils/src/vm/CMakeLists.txt
+@@ -40,4 +40,6 @@ endif()
+ # headers are copied into the build directory by prepare_ze_headers; without
+ # this explicit dependency a parallel build may compile ${TARGET_NAME} before
+ # the headers are copied, causing a missing-header error
+-add_dependencies(${TARGET_NAME} prepare_ze_headers)
++if(TARGET prepare_ze_headers)
++ add_dependencies(${TARGET_NAME} prepare_ze_headers)
++endif()
+diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake
+index b6e51758..48881114 100644
+--- a/thirdparty/dependencies.cmake
++++ b/thirdparty/dependencies.cmake
+@@ -90,6 +90,7 @@ if(ENABLE_OV_ZERO_LOADER)
+ level-zero)
+ if(level_zero_FOUND)
+ add_library(LevelZero::LevelZero ALIAS PkgConfig::level_zero)
++ add_library(openvino::ze_loader ALIAS PkgConfig::level_zero)
+ message(STATUS "${PKG_CONFIG_EXECUTABLE}: level_zero (${level_zero_VERSION}) is found at ${level_zero_PREFIX}")
+ endif()
+ endif()
diff --git a/onnx_version.patch b/onnx_version.patch
new file mode 100644
index 0000000..5baef7c
--- /dev/null
+++ b/onnx_version.patch
@@ -0,0 +1,13 @@
+diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake
+index d26ad08d..b6e51758 100644
+--- a/thirdparty/dependencies.cmake
++++ b/thirdparty/dependencies.cmake
+@@ -586,7 +586,7 @@ endif()
+ #
+
+ if(ENABLE_OV_ONNX_FRONTEND)
+- find_package(ONNX 1.22.0 QUIET COMPONENTS onnx onnx_proto NO_MODULE)
++ find_package(ONNX 1.21.0 QUIET COMPONENTS onnx onnx_proto NO_MODULE)
+
+ if(ONNX_FOUND)
+ # conan and vcpkg create imported targets 'onnx' and 'onnx_proto'
diff --git a/opencl-clhpp-deprecated-macro.patch b/opencl-clhpp-deprecated-macro.patch
deleted file mode 100644
index 89c05a0..0000000
--- a/opencl-clhpp-deprecated-macro.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/src/plugins/intel_gpu/src/runtime/ocl/ocl_wrapper.hpp 2026-08-27 16:57:03.609950756 +0300
-+++ b/src/plugins/intel_gpu/src/runtime/ocl/ocl_wrapper.hpp 2026-08-27 16:57:03.613021667 +0300
-@@ -72,7 +72,10 @@
-
- #include "ocl_ext.hpp"
-
--#if CL_HPP_TARGET_OPENCL_VERSION >= 200 && CL_HPP_MINIMUM_OPENCL_VERSION >= 200
-+// Newer OpenCL-CLHPP releases dropped CL_HPP_PARAM_NAME_INFO_1_1_DEPRECATED_IN_2_0_ and instead
-+// declare CL_DEVICE_HOST_UNIFIED_MEMORY unconditionally via CL_HPP_PARAM_NAME_INFO_1_1_, so only
-+// re-declare it here when the older macro is still present to avoid a hard compile error.
-+#if CL_HPP_TARGET_OPENCL_VERSION >= 200 && CL_HPP_MINIMUM_OPENCL_VERSION >= 200 && defined(CL_HPP_PARAM_NAME_INFO_1_1_DEPRECATED_IN_2_0_)
- namespace cl {
- namespace detail {
- CL_HPP_PARAM_NAME_INFO_1_1_DEPRECATED_IN_2_0_(CL_HPP_DECLARE_PARAM_TRAITS_)
diff --git a/openvino.rpmlintrc b/openvino.rpmlintrc
new file mode 100644
index 0000000..f906054
--- /dev/null
+++ b/openvino.rpmlintrc
@@ -0,0 +1,3 @@
+addFilter("openvino-samples\.noarch: E: devel-dependency glibc-devel")
+addFilter("openvino-samples\.noarch: W: devel-file-in-non-devel-package")
+addFilter("openvino-debugsource\.x86_64: E: files-duplicated-waste")
diff --git a/openvino.spec b/openvino.spec
index 74e8738..55909a7 100644
--- a/openvino.spec
+++ b/openvino.spec
@@ -3,7 +3,20 @@
#
# Please submit issues or comments https://github.com/openvinotoolkit/openvino/issues
-%global so_ver 2600
+%global so_ver 2641
+
+# GCC LTO fails to link the NPU compiler against its bundled LLVM/MLIR static libraries
+%global _lto_cflags %{nil}
+
+%global onednn_commit 1289c3b65dd6a119a5ed12a816517d9c3a21d81b
+%global mlas_commit d1bc25ec4660cddd87804fcf03b2411b5dfb2e94
+%global onednn_gpu_commit a3d459721b72c3a9d2685b46c03dafee7af0f25c
+%global l0_npu_ext_commit b11dc98b48f9f0dbb8c3b44f73b42f295a32097f
+%global npu_compiler_commit 37a2ec119255903a3a6066dbe02c91b563dfc44c
+%global npu_llvm_commit 980c1ca33aad7bda278934cbb1e03268b92cf64e
+%global npu_llvm_shortcommit %{sub %{npu_llvm_commit} 1 7}
+%global npu_costmodel_commit 6b89f4285cf17c9bcc763e5b320c996612cf7a87
+%global npu_elf_commit edbd3b0dbb6f51f4f6c18aba3b26d4c20b1a5964
%global desc %{expand:OpenVINO is an open-source toolkit for optimizing and deploying deep learning
models from cloud to edge. It accelerates deep learning inference across
@@ -11,7 +24,7 @@ various use cases, such as generative AI, video, audio, and language with
models from popular frameworks like PyTorch, TensorFlow, ONNX, and more.}
Name: openvino
-Version: 2026.0.0
+Version: 2026.4.1
Release: %autorelease
Summary: Toolkit for optimizing and deploying AI inference
@@ -21,28 +34,38 @@ Summary: Toolkit for optimizing and deploying AI inference
# src/plugins/intel_cpu/src/hash_builder.hpp : BSL-1.0
# src/core/reference/include/openvino/reference/interpolate_pil.hpp : HPND
# oneDNN: BSL-1.0, BSD-3-Clause, (GPL-2.0-only OR BSD-3-Clause), MIT
-License: Apache-2.0 AND MIT AND BSL-1.0 AND HPND AND BSD-3-Clause AND (GPL-2.0-only OR BSD-3-Clause)
+# level-zero-npu-extensions: MIT
+# npu-compiler-llvm: Apache-2.0 WITH LLVM-exception OR NCSA
+License: Apache-2.0 AND MIT AND BSL-1.0 AND HPND AND BSD-3-Clause AND (GPL-2.0-only OR BSD-3-Clause) AND (Apache-2.0 WITH LLVM-exception OR NCSA)
URL: https://github.com/openvinotoolkit/openvino
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
-Source1: https://github.com/openvinotoolkit/oneDNN/archive/c6b79c1207bd5f20b9395536dab1d71a47cfcb1d/onednn-c6b79c1.tar.gz
-Source2: https://github.com/openvinotoolkit/mlas/archive/d1bc25ec4660cddd87804fcf03b2411b5dfb2e94/mlas-d1bc25e.tar.gz
-Source3: https://github.com/oneapi-src/oneDNN/archive/929fe4e5629be2a5e89f1ba13b13458b965ffe57/onednn-gpu-929fe4e.tar.gz
-
-Patch0: protobuf_version.patch
-Patch1: xbyak-gflags-system-modules.patch
-Patch2: samples-system-gflags-json.patch
-# pybind11 3.x (Fedora > 44) forbids py::call_guard<> on the def_property
-# family; older pybind11 needs the original variant.
-%if 0%{?fedora} > 44
-Patch3: pybind11-call_guard-compat-3x.patch
-%else
-Patch3: pybind11-call_guard-compat.patch
-%endif
-# Fedora's opencl-headers package now snapshots a newer OpenCL-CLHPP release
-# that dropped the CL_HPP_PARAM_NAME_INFO_1_1_DEPRECATED_IN_2_0_ macro
-# OpenVINO's GPU plugin relied on.
-Patch4: opencl-clhpp-deprecated-macro.patch
+Source1: https://github.com/openvinotoolkit/oneDNN/archive/%{onednn_commit}/onednn-%{sub %{onednn_commit} 1 7}.tar.gz
+Source2: https://github.com/openvinotoolkit/mlas/archive/%{mlas_commit}/mlas-%{sub %{mlas_commit} 1 7}.tar.gz
+Source3: https://github.com/oneapi-src/oneDNN/archive/%{onednn_gpu_commit}/onednn-gpu-%{sub %{onednn_gpu_commit} 1 7}.tar.gz
+Source4: https://github.com/intel/level-zero-npu-extensions/archive/%{l0_npu_ext_commit}/level-zero-npu-extensions-%{sub %{l0_npu_ext_commit} 1 7}.tar.gz
+Source5: https://github.com/openvinotoolkit/npu_compiler/archive/%{npu_compiler_commit}/npu_compiler-%{sub %{npu_compiler_commit} 1 7}.tar.gz
+Source6: https://github.com/intel-staging/npu-compiler-llvm/archive/%{npu_llvm_commit}/npu-compiler-llvm-%{npu_llvm_shortcommit}.tar.gz
+Source7: https://github.com/intel/npu-nn-cost-model/archive/%{npu_costmodel_commit}/npu-nn-cost-model-%{sub %{npu_costmodel_commit} 1 7}.tar.gz
+Source8: https://github.com/openvinotoolkit/npu_compiler_elf/archive/%{npu_elf_commit}/npu_compiler_elf-%{sub %{npu_elf_commit} 1 7}.tar.gz
+
+Patch0: protobuf_version.patch
+Patch1: xbyak-gflags-system-modules.patch
+Patch2: samples-system-gflags-json.patch
+# Fedora ships ONNX 1.21
+Patch3: onnx_version.patch
+# Use the system flatbuffers found by OpenVINO for the NPU compiler as well
+Patch4: npu-compiler-system-flatbuffers.patch
+# Take the NPU compiler commit hash from the spec instead of git
+Patch5: npu-compiler-commit-hash.patch
+# Do not configure the NPU driver compiler tests when ENABLE_TESTS is OFF
+Patch6: npu-compiler-driver-tests.patch
+# Build the NPU plugin and compiler against system Level Zero
+Patch7: npu-system-level-zero.patch
+# Keep the NPU compiler CiD/CiP components out of the CPack RPM settings
+Patch8: npu-compiler-cpack-components.patch
+# Only add -Werror to the NPU compiler when CMAKE_COMPILE_WARNING_AS_ERROR is set
+Patch9: npu-compiler-no-werror.patch
ExclusiveArch: x86_64
@@ -52,16 +75,14 @@ BuildRequires: flatbuffers-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gflags-devel
+BuildRequires: git-core
BuildRequires: glibc-devel
BuildRequires: nlohmann-json-devel
+BuildRequires: oneapi-level-zero-devel
BuildRequires: onnx-devel
BuildRequires: opencl-headers
BuildRequires: pkgconfig(OpenCL)
-%if 0%{?fedora} > 44
-BuildRequires: protobuf-devel >= 4
-%else
BuildRequires: protobuf-devel
-%endif
BuildRequires: pugixml-devel
BuildRequires: pybind11-devel
BuildRequires: python3-devel
@@ -79,11 +100,13 @@ Requires: lib%{name}-onnx-frontend = %{version}-%{release}
Requires: lib%{name}-paddle-frontend = %{version}-%{release}
Requires: lib%{name}-tensorflow-frontend = %{version}-%{release}
Requires: lib%{name}-tensorflow-lite-frontend = %{version}-%{release}
+Requires: lib%{name}-gguf-frontend = %{version}-%{release}
Recommends: lib%{name}-auto-plugin = %{version}-%{release}
Recommends: lib%{name}-auto-batch-plugin = %{version}-%{release}
Recommends: lib%{name}-hetero-plugin = %{version}-%{release}
Recommends: lib%{name}-intel-cpu-plugin = %{version}-%{release}
Recommends: lib%{name}-intel-gpu-plugin = %{version}-%{release}
+Recommends: lib%{name}-intel-npu-plugin = %{version}-%{release}
%description
%{desc}
@@ -151,6 +174,42 @@ Provides: bundled(onednn-gpu)
This package provides the Intel GPU plugin for OpenVINO.
+%package -n lib%{name}-intel-npu-plugin
+Summary: Intel NPU plugin for OpenVINO
+License: Apache-2.0 AND MIT
+Requires: %{name}%{?_isa} = %{version}-%{release}
+# NPU graph extension headers, not packaged separately in Fedora
+Provides: bundled(level-zero-npu-extensions)
+Recommends: intel-npu-compiler%{?_isa} = %{version}-%{release}
+Recommends: intel-npu-driver%{?_isa}
+
+%description -n lib%{name}-intel-npu-plugin
+%{desc}
+.
+This package provides the Intel NPU plugin for OpenVINO.
+
+
+## NPU Compiler ##
+
+%package -n intel-npu-compiler
+Summary: Intel NPU compiler for OpenVINO and the NPU driver
+License: Apache-2.0 AND MIT AND (Apache-2.0 WITH LLVM-exception OR NCSA)
+Requires: %{name}%{?_isa} = %{version}-%{release}
+# Intel fork of LLVM/MLIR that tracks LLVM main
+Provides: bundled(llvm) = 23.0.0~git%{npu_llvm_shortcommit}
+Provides: bundled(npu-nn-cost-model)
+Provides: bundled(npu_compiler_elf)
+
+%description -n intel-npu-compiler
+Intel NPU device is an AI inference accelerator integrated with Intel client
+CPUs, starting from Intel Core Ultra generation of CPUs (formerly known as
+Meteor Lake). It enables energy-efficient execution of artificial neural
+network tasks.
+.
+This package provides the Intel NPU compiler used by the OpenVINO NPU plugin
+and by the Intel NPU user mode driver.
+
+
## Frontend shared libraries ##
%package -n lib%{name}-ir-frontend
@@ -207,6 +266,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
This package provides the TensorFlow Lite frontend for OpenVINO.
+%package -n lib%{name}-gguf-frontend
+Summary: OpenVINO GGUF Frontend
+Requires: %{name}%{?_isa} = %{version}-%{release}
+%description -n lib%{name}-gguf-frontend
+%{desc}
+.
+This package provides the GGUF frontend for OpenVINO.
+
+
## Samples ##
%package -n %{name}-samples
@@ -240,21 +308,43 @@ runtime.
%prep
-%autosetup -p1
+%autosetup -N
+
+# Fedora provides newer NumPy versions
+sed -i -E 's/(numpy>=[0-9.]+),<[0-9.]+/\1/' pyproject.toml src/bindings/python/requirements.txt
# Fedora provides newer NumPy versions
sed -i 's/numpy>=1\.16\.6,<2\.5\.0/numpy>=1.16.6/' pyproject.toml
# Intel CPU plugin thirdparty deps
-tar xf %{SOURCE1}
-cp -r oneDNN-c6b79c1207bd5f20b9395536dab1d71a47cfcb1d/* src/plugins/intel_cpu/thirdparty/onednn
-
-tar xf %{SOURCE2}
-cp -r mlas-d1bc25ec4660cddd87804fcf03b2411b5dfb2e94/* src/plugins/intel_cpu/thirdparty/mlas
+tar -xf %{SOURCE1} -C src/plugins/intel_cpu/thirdparty/onednn --strip-components=1
+tar -xf %{SOURCE2} -C src/plugins/intel_cpu/thirdparty/mlas --strip-components=1
# Intel GPU plugin thirdparty deps
-tar xf %{SOURCE3}
-cp -r oneDNN-929fe4e5629be2a5e89f1ba13b13458b965ffe57/* src/plugins/intel_gpu/thirdparty/onednn_gpu
+tar -xf %{SOURCE3} -C src/plugins/intel_gpu/thirdparty/onednn_gpu --strip-components=1
+
+# Intel NPU plugin thirdparty deps
+tar -xf %{SOURCE4} -C src/plugins/intel_npu/thirdparty/level-zero-ext --strip-components=1
+cp -p src/plugins/intel_npu/thirdparty/level-zero-ext/LICENSE.txt LICENSE.level-zero-npu-extensions
+
+# Intel NPU compiler, built as an OpenVINO extra module
+mkdir -p thirdparty/npu_compiler
+tar -xf %{SOURCE5} -C thirdparty/npu_compiler --strip-components=1
+pushd thirdparty/npu_compiler/thirdparty
+tar -xf %{SOURCE6} -C llvm-project --strip-components=1 \
+ npu-compiler-llvm-%{npu_llvm_commit}/cmake \
+ npu-compiler-llvm-%{npu_llvm_commit}/llvm \
+ npu-compiler-llvm-%{npu_llvm_commit}/mlir \
+ npu-compiler-llvm-%{npu_llvm_commit}/third-party
+tar -xf %{SOURCE7} -C vpucostmodel --strip-components=1
+tar -xf %{SOURCE8} -C elf --strip-components=1
+popd
+cp -p thirdparty/npu_compiler/LICENSE LICENSE.npu_compiler
+cp -p thirdparty/npu_compiler/thirdparty/llvm-project/llvm/LICENSE.TXT LICENSE.npu-compiler-llvm
+cp -p thirdparty/npu_compiler/thirdparty/vpucostmodel/LICENSE LICENSE.npu-nn-cost-model
+cp -p thirdparty/npu_compiler/thirdparty/elf/LICENCE LICENSE.npu_compiler_elf
+
+%autopatch -p1
# Python bindings: remove openvino-telemetry (not in Fedora)
# It is present in both pyproject.toml (root) and src/bindings/python/requirements.txt
@@ -280,7 +370,15 @@ sed -i '/openvino-telemetry/d' src/bindings/python/requirements.txt
-DENABLE_OV_TF_FRONTEND=ON \
-DENABLE_OV_TF_LITE_FRONTEND=ON \
-DENABLE_OV_JAX_FRONTEND=OFF \
- -DENABLE_INTEL_NPU=OFF \
+ -DENABLE_INTEL_NPU=ON \
+ %dnl This does not turn OFF the compiler, but
+ %dnl this flag turns OFF the compiler download during build
+ -DENABLE_INTEL_NPU_COMPILER=OFF \
+ -DENABLE_INTEL_NPU_INTERNAL=OFF \
+ -DOPENVINO_EXTRA_MODULES="$(pwd)/thirdparty/npu_compiler" \
+ %dnl This flag does not download the compiler, it only sets the commit hash from the sources above
+ -DNPU_COMPILER_COMMIT_HASH=%{npu_compiler_commit} \
+ -DENABLE_PLUGINS_XML=ON \
-DENABLE_TEMPLATE=OFF \
-DENABLE_PROXY=OFF \
-DENABLE_PYTHON=ON \
@@ -298,6 +396,7 @@ sed -i '/openvino-telemetry/d' src/bindings/python/requirements.txt
-DENABLE_SYSTEM_PROTOBUF=ON \
-DProtobuf_USE_STATIC_LIBS=OFF \
-DENABLE_SYSTEM_FLATBUFFERS=ON \
+ -DENABLE_SYSTEM_LEVEL_ZERO=ON \
-DTHREADING=TBB
%cmake_build
@@ -329,6 +428,15 @@ rm -rf %{buildroot}%{python3_sitearch}/openvino_telemetry*
rm -vf %{buildroot}%{python3_sitearch}/requirements.txt
rm -vf %{buildroot}%{python3_sitearch}/%{name}/preprocess/torchvision/requirements.txt
+rm -rf %{buildroot}%{_prefix}/cid %{buildroot}%{_prefix}/cip
+
+for lib in compiler compiler_loader mlir_runtime level_zero_wrapper vm_runtime; do
+ mv %{buildroot}%{_libdir}/lib%{name}_intel_npu_${lib}.so %{buildroot}%{_libdir}/%{name}-%{version}/
+done
+for lib in compiler compiler_loader; do
+ ln -s %{name}-%{version}/lib%{name}_intel_npu_${lib}.so %{buildroot}%{_libdir}/lib%{name}_intel_npu_${lib}.so
+done
+
%check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch} \
@@ -345,6 +453,7 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch
%ldconfig_scriptlets -n lib%{name}-pytorch-frontend
%ldconfig_scriptlets -n lib%{name}-tensorflow-frontend
%ldconfig_scriptlets -n lib%{name}-tensorflow-lite-frontend
+%ldconfig_scriptlets -n lib%{name}-gguf-frontend
%files
@@ -354,36 +463,49 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch
%{_libdir}/lib%{name}.so.%{so_ver}
%{_libdir}/lib%{name}_c.so.%{version}
%{_libdir}/lib%{name}_c.so.%{so_ver}
+%dir %{_libdir}/%{name}-%{version}
+%{_libdir}/%{name}-%{version}/plugins.xml
%files -n lib%{name}-devel
%{_includedir}/%{name}/
%{_libdir}/cmake/%{name}%{version}/
-%{_libdir}/*.so
+%{_libdir}/lib%{name}.so
+%{_libdir}/lib%{name}_c.so
+%{_libdir}/lib%{name}_*_frontend.so
%{_libdir}/pkgconfig/%{name}.pc
## Plugins
%files -n lib%{name}-auto-plugin
-%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/lib%{name}_auto_plugin.so
%files -n lib%{name}-auto-batch-plugin
-%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/lib%{name}_auto_batch_plugin.so
%files -n lib%{name}-hetero-plugin
-%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/lib%{name}_hetero_plugin.so
%files -n lib%{name}-intel-cpu-plugin
-%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/lib%{name}_intel_cpu_plugin.so
%files -n lib%{name}-intel-gpu-plugin
-%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/lib%{name}_intel_gpu_plugin.so
%{_libdir}/%{name}-%{version}/cache.json
+%files -n lib%{name}-intel-npu-plugin
+%license LICENSE.level-zero-npu-extensions
+%{_libdir}/%{name}-%{version}/lib%{name}_intel_npu_plugin.so
+
+%files -n intel-npu-compiler
+%license LICENSE.npu_compiler LICENSE.npu-compiler-llvm LICENSE.npu-nn-cost-model LICENSE.npu_compiler_elf
+%{_libdir}/%{name}-%{version}/lib%{name}_intel_npu_compiler.so
+%{_libdir}/%{name}-%{version}/lib%{name}_intel_npu_compiler_loader.so
+%{_libdir}/%{name}-%{version}/lib%{name}_intel_npu_level_zero_wrapper.so
+%{_libdir}/%{name}-%{version}/lib%{name}_intel_npu_mlir_runtime.so
+%{_libdir}/%{name}-%{version}/lib%{name}_intel_npu_vm_runtime.so
+%{_libdir}/lib%{name}_intel_npu_compiler.so
+%{_libdir}/lib%{name}_intel_npu_compiler_loader.so
+
## Frontends
%files -n lib%{name}-ir-frontend
@@ -404,6 +526,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch
%files -n lib%{name}-tensorflow-lite-frontend
%{_libdir}/lib%{name}_tensorflow_lite_frontend.so.*
+%files -n lib%{name}-gguf-frontend
+%{_libdir}/lib%{name}_gguf_frontend.so.*
+
## Samples
%files -n %{name}-samples
diff --git a/protobuf_version.patch b/protobuf_version.patch
index f033de4..43748d9 100644
--- a/protobuf_version.patch
+++ b/protobuf_version.patch
@@ -1,5 +1,5 @@
diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake
-index ac5ebe105c..36542e8fe5 100644
+index 457f930..edfc876 100644
--- a/thirdparty/dependencies.cmake
+++ b/thirdparty/dependencies.cmake
@@ -376,7 +376,7 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND
@@ -9,5 +9,5 @@ index ac5ebe105c..36542e8fe5 100644
- find_package(Protobuf 5.26.0 QUIET CONFIG)
+ find_package(Protobuf CONFIG)
if(NOT Protobuf_FOUND)
- find_package(Protobuf 4.22.0 QUIET CONFIG)
+ find_package(Protobuf 5.26.0 QUIET CONFIG)
endif()
diff --git a/pybind11-call_guard-compat-3x.patch b/pybind11-call_guard-compat-3x.patch
deleted file mode 100644
index 1e72fc3..0000000
--- a/pybind11-call_guard-compat-3x.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-Fix build with pybind11 3.x (Fedora rawhide / fedora > 44)
-
-pybind11 3.x added a static_assert that forbids py::call_guard<> on the
-def_property / def_property_readonly family:
-
- error: static assertion failed: def_property family does not currently
- support call_guard. Use a py::cpp_function instead.
-
-Convert the two affected read-only properties to wrap their getter in a
-py::cpp_function that releases the GIL internally, preserving the original
-"GIL is released while running this function" behaviour. Regular cls.def()
-calls keep using py::call_guard<> and are intentionally left unchanged.
-
---- a/src/bindings/python/src/pyopenvino/core/core.cpp
-+++ b/src/bindings/python/src/pyopenvino/core/core.cpp
-@@ -769,8 +769,10 @@ void regclass_Core(py::module m) {
- )");
-
- cls.def_property_readonly("available_devices",
-- &ov::Core::get_available_devices,
-- py::call_guard<py::gil_scoped_release>(),
-+ py::cpp_function([](ov::Core& self) {
-+ py::gil_scoped_release release;
-+ return self.get_available_devices();
-+ }),
- R"(
- Returns devices available for inference Core objects goes over all registered plugins.
-
---- a/src/bindings/python/src/pyopenvino/core/infer_request.cpp
-+++ b/src/bindings/python/src/pyopenvino/core/infer_request.cpp
-@@ -819,10 +819,10 @@ void regclass_InferRequest(py::module m) {
-
- cls.def_property_readonly(
- "profiling_info",
-- [](InferRequestWrapper& self) {
-+ py::cpp_function([](InferRequestWrapper& self) {
-+ py::gil_scoped_release release;
- return self.m_request.get_profiling_info();
-- },
-- py::call_guard<py::gil_scoped_release>(),
-+ }),
- R"(
- Performance is measured per layer to get feedback on the most time-consuming operation.
- Not all plugins provide meaningful data!
diff --git a/pybind11-call_guard-compat.patch b/pybind11-call_guard-compat.patch
deleted file mode 100755
index cb689b2..0000000
--- a/pybind11-call_guard-compat.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff --git a/src/bindings/python/src/pyopenvino/core/core.cpp b/src/bindings/python/src/pyopenvino/core/core.cpp
-index 241b092765..140c0b0bb1 100644
---- a/src/bindings/python/src/pyopenvino/core/core.cpp
-+++ b/src/bindings/python/src/pyopenvino/core/core.cpp
-@@ -456,7 +456,10 @@ void regclass_Core(py::module m) {
- cls.def(
- "read_model",
- (std::shared_ptr<ov::Model>(ov::Core::*)(const std::string&, const ov::Tensor&) const) & ov::Core::read_model,
-- py::call_guard<py::gil_scoped_release>(),
-+ py::cpp_function([](InferRequestWrapper& self) {
-+ py::gil_scoped_release release;
-+ return self.m_request.get_profiling_info();
-+ }),
- py::arg("model"),
- py::arg("weights"),
- R"(
-diff --git a/src/bindings/python/src/pyopenvino/core/infer_request.cpp b/src/bindings/python/src/pyopenvino/core/infer_request.cpp
-index b7e41b3153..2d17cd1f17 100644
---- a/src/bindings/python/src/pyopenvino/core/infer_request.cpp
-+++ b/src/bindings/python/src/pyopenvino/core/infer_request.cpp
-@@ -817,12 +817,11 @@ void regclass_InferRequest(py::module m) {
- :rtype: float
- )");
-
-- cls.def_property_readonly(
-- "profiling_info",
-- [](InferRequestWrapper& self) {
-+ cls.def_property_readonly("profiling_info",
-+ py::cpp_function([](InferRequestWrapper& self) {
-+ py::gil_scoped_release release;
- return self.m_request.get_profiling_info();
-- },
-- py::call_guard<py::gil_scoped_release>(),
-+ }),
- R"(
- Performance is measured per layer to get feedback on the most time-consuming operation.
- Not all plugins provide meaningful data!
diff --git a/samples-system-gflags-json.patch b/samples-system-gflags-json.patch
index ae88b22..6bae59f 100644
--- a/samples-system-gflags-json.patch
+++ b/samples-system-gflags-json.patch
@@ -1,5 +1,5 @@
diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt
-index 25d85ba213..204ce3f941 100644
+index a4b4dbf..f887d8a 100644
--- a/samples/cpp/CMakeLists.txt
+++ b/samples/cpp/CMakeLists.txt
@@ -112,6 +112,10 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/common/utils")
@@ -14,10 +14,10 @@ index 25d85ba213..204ce3f941 100644
set(GFLAGS_TARGET gflags)
elseif(gflags_required)
diff --git a/samples/cpp/benchmark_app/CMakeLists.txt b/samples/cpp/benchmark_app/CMakeLists.txt
-index ef339e0a5d..7451e896fd 100644
+index 0c290e0..c0aad22 100644
--- a/samples/cpp/benchmark_app/CMakeLists.txt
+++ b/samples/cpp/benchmark_app/CMakeLists.txt
-@@ -14,6 +14,10 @@ ov_add_sample(NAME ${TARGET_NAME}
+@@ -27,6 +27,10 @@ ov_add_sample(NAME ${TARGET_NAME}
# Required nlohmann_json dependency
diff --git a/sources b/sources
index 37f4ee0..a6a2c57 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,9 @@
-SHA512 (openvino-2026.0.0.tar.gz) = 77259f2211aa27c70c4930795ab6a7f7a0eade6fa8cda9b38caafdb3fa8081dba7c6bb5c2fa75adbdb224e4d84c80c48f19eef463500cd58316aa55183e6d660
-SHA512 (onednn-c6b79c1.tar.gz) = 2ed3444c60771229f051688964ee51b7cd229f75dfdbc6e59390d64223bb5d98074dd30cd4cd2458725bfba147bdf985bcc1d7ba8291f097ff4f291859b35ce3
+SHA512 (openvino-2026.4.1.tar.gz) = 63348d4b58c0021e077d4650ea701ec703c045382930647959bf8b6001a0a4252d9844692cb4b4d5c4c4dfca079c89dd079437bb34814ceff2308ea4018ac4ee
+SHA512 (onednn-1289c3b.tar.gz) = 134edf0b33797c4d97aaf8e3bf5bdb8f9f8607fd6716392712148054f8dcedfef31aa775e0d3e3895d68a5c43e377e7a54cd1d27111d47a4d23d9b6e25a2d862
SHA512 (mlas-d1bc25e.tar.gz) = 8d6dd319924135b7b22940d623305bf200b812ae64cde79000709de4fad429fbd43794301ef16e6f10ed7132777b7a73e9f30ecae7c030aea80d57d7c0ce4500
-SHA512 (onednn-gpu-929fe4e.tar.gz) = de833c34dd48c1155fc5036145782fae01bcae4887d10ac74837272d8fcb897514987e20d07963e967ddb47afecea84c2f422f7e8baa6debb8558f1651f9ff79
+SHA512 (onednn-gpu-a3d4597.tar.gz) = 969c91a9f2f8dacf1042a106dd6f978d3d1f0112d30cdde3225fabcbdbbe02e504ffef333c9e0aaf9d8b031cf3f795eafd37e4721ad7aaab9822c8a44d700d65
+SHA512 (level-zero-npu-extensions-b11dc98.tar.gz) = ba8775eda7b4dd3ab9235cba79b168da360683cfb84adf3e073fd1eb8a68340a03d47f64a718f5a86b38d2da3603bb7923ea6038e37227eda99048f61bb1c9ae
+SHA512 (npu_compiler-37a2ec1.tar.gz) = c980a439c86f536bdd3aa992241dd5bc47a19c80afd857154b1289977085a58f5a16ae7178737ccf9b9cdcb1cae6afd508b2c9ab6e76208910832e7bb7d64dca
+SHA512 (npu-compiler-llvm-980c1ca.tar.gz) = 1b56a1effe02d175426f2c97270ca98c79ea99bb674bdfbaef5b650018544613e5b28f214215c0ee37c316e6e2e7cff457da834bb11621b59b226d26ededbe4f
+SHA512 (npu-nn-cost-model-6b89f42.tar.gz) = 195f0e31c4b5ccfdfedb78df0566fab328aafe0ef0af07f6199cae6a356aab36d418233e7734371fe865c244071c6c4ac41bf9c27a3cc7c160a0ed6655423274
+SHA512 (npu_compiler_elf-edbd3b0.tar.gz) = 6803d6515ae6eed539600ef86f0094f446e3d31cbdb2d61cca0b882b9fe0002b5e6d501a531d55e0cb7cb5a75d8a5d82022eab6365f2bf96e22895fcc01e0ee9
diff --git a/xbyak-gflags-system-modules.patch b/xbyak-gflags-system-modules.patch
index e83b244..abdf490 100644
--- a/xbyak-gflags-system-modules.patch
+++ b/xbyak-gflags-system-modules.patch
@@ -1,8 +1,8 @@
diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake
-index 053006c031..18d14ca390 100644
+index edfc876..d26ad08 100644
--- a/thirdparty/dependencies.cmake
+++ b/thirdparty/dependencies.cmake
-@@ -59,6 +59,16 @@ if(X86_64 OR X86 OR UNIVERSAL2)
+@@ -63,6 +63,16 @@ if(X86_64 OR X86 OR UNIVERSAL2)
find_package(xbyak QUIET)
if(xbyak_FOUND)
# conan creates alias xbyak::xbyak, no extra steps are required
@@ -19,7 +19,7 @@ index 053006c031..18d14ca390 100644
else()
add_subdirectory(thirdparty/xbyak EXCLUDE_FROM_ALL)
endif()
-@@ -162,7 +172,15 @@ endif()
+@@ -179,7 +189,15 @@ endif()
#
if(ENABLE_SAMPLES OR ENABLE_TESTS)
@@ -36,7 +36,7 @@ index 053006c031..18d14ca390 100644
endif()
#
-@@ -306,11 +324,17 @@ endif()
+@@ -323,11 +341,17 @@ endif()
#
if(ENABLE_SAMPLES OR ENABLE_TESTS OR ENABLE_INTEL_NPU_INTERNAL)
diff --git a/openvino.spec b/openvino.spec
index 0b1cc5b..55909a7 100644
--- a/openvino.spec
+++ b/openvino.spec
@@ -313,6 +313,9 @@ runtime.
# Fedora provides newer NumPy versions
sed -i -E 's/(numpy>=[0-9.]+),<[0-9.]+/\1/' pyproject.toml src/bindings/python/requirements.txt
+# Fedora provides newer NumPy versions
+sed -i 's/numpy>=1\.16\.6,<2\.5\.0/numpy>=1.16.6/' pyproject.toml
+
# Intel CPU plugin thirdparty deps
tar -xf %{SOURCE1} -C src/plugins/intel_cpu/thirdparty/onednn --strip-components=1
tar -xf %{SOURCE2} -C src/plugins/intel_cpu/thirdparty/mlas --strip-components=1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-24 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 19:41 [rpms/openvino] f45: Merge branch 'rawhide' into f45 Pavel Androniychuk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox