public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openvino] rawhide: Update OpenVINO NPU Compiler npu_ud_2026_12_rc1
@ 2026-11-19 11:11 Aaron Chan
  0 siblings, 0 replies; only message in thread
From: Aaron Chan @ 2026-11-19 11:11 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/openvino
            Branch : rawhide
            Commit : 39e039fe4adde643eb775f91f4ea4bac514631a5
            Author : Aaron Chan <aaron.chun.yew.chan@intel.com>
            Date   : 2026-10-22T10:09:09+08:00
            Stats  : +207/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/openvino/c/39e039fe4adde643eb775f91f4ea4bac514631a5?branch=rawhide

            Log:
            Update OpenVINO NPU Compiler npu_ud_2026_12_rc1

- VPUXCompilerL0 7.6.0
  Changelog:
  https://github.com/openvinotoolkit/npu_compiler/blob/npu_ud_2026_12_rc1/src/vpux_driver_compiler/CHANGES.txt

Signed-off-by: Aaron Chan <aaron.chun.yew.chan@intel.com>

---
diff --git a/openvino.spec b/openvino.spec
index 74e8738..6e46ea9 100644
--- a/openvino.spec
+++ b/openvino.spec
@@ -10,6 +10,10 @@ models from cloud to edge. It accelerates deep learning inference across
 various use cases, such as generative AI, video, audio, and language with
 models from popular frameworks like PyTorch, TensorFlow, ONNX, and more.}
 
+%global npu_compiler_rev  npu_ud_2026_12_rc1
+%global npu_compiler_path thirdparty/npu_compiler-%{npu_compiler_rev}
+%global flatbuffers_path thirdparty/flatbuffers/flatbuffers
+
 Name:           openvino
 Version:        2026.0.0
 Release:        %autorelease
@@ -28,8 +32,19 @@ 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
+# Intel NPU plugin thirdparty deps
+Source4:        https://github.com/oneapi-src/level-zero/archive/d562046e7266120e8be3533597b65f34a00524c1/oneapi-level-zero-d562046.tar.gz
+Source5:        https://github.com/jbeder/yaml-cpp/archive/da82fd982c260e7f335ce5acbceff24b270544d1/yaml-cpp-da82fd9.tar.gz
+Source6:        https://github.com/intel/level-zero-npu-extensions/archive/8404c63a88d182726038d2b07c219731dada9c21/level-zero-npu-ext-8404c63.tar.gz
+# Intel NPU compiler thirdparty deps
+Source7:        https://github.com/openvinotoolkit/npu_compiler/archive/01a807a7f7acfafbf523693351f53d0416f08089/%{npu_compiler_rev}.tar.gz
+Source8:        https://github.com/openvinotoolkit/npu_compiler_elf/archive/82c444bcb9feb0f55fa33e18fbd711ec35426fba/npu_compiler-elf-82c444b.tar.gz
+Source9:        https://github.com/google/gtest-parallel/archive/f4d65b555894b301699c7c3c52906f72ea052e83/gtest-f4d65b5.tar.gz
+Source10:       https://github.com/intel-staging/npu-compiler-llvm/archive/cf3934f4e8ada928544a743481e037935a21e857/npu-compiler-llvm-cf3934f.tar.gz
+Source11:       https://github.com/intel/npu-nn-cost-model/archive/33ef9a69b4e694ad5bfc521af829a9cc9ce19b4c/npu-nn-cost-model-33ef9a6.tar.gz
+Source12:       https://github.com/google/flatbuffers/archive/595bf0007ab1929570c7671f091313c8fc20644e/flatbuffers-595bf00.tar.gz
+
+Patch0: protobuf_version2.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
@@ -40,9 +55,12 @@ Patch3: pybind11-call_guard-compat-3x.patch
 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 
+# 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
+Patch5: vpux-driver-compiler-CMakeLists.patch
+Patch6: cmake-lib_install.patch
+Patch7: cpack_packaging_rpm_cid.patch
 
 ExclusiveArch:  x86_64
 
@@ -72,6 +90,30 @@ BuildRequires:  snappy-devel
 BuildRequires:  tbb-devel
 BuildRequires:  xbyak-devel
 BuildRequires:  zlib-devel
+## Compiler in Plugin
+BuildRequires:  clang-devel
+BuildRequires:  ninja-build
+BuildRequires:  opencv-devel
+BuildRequires:  patchelf
+BuildRequires:  rpmlint
+BuildRequires:  ShellCheck
+## Compiler in Driver
+BuildRequires:  blas-devel
+BuildRequires:  ccache
+BuildRequires:  git
+BuildRequires:  git-lfs
+BuildRequires:  glibc-devel
+BuildRequires:  jemalloc-devel
+BuildRequires:  libedit-devel
+BuildRequires:  libpfm-devel
+BuildRequires:  libunwind-devel
+BuildRequires:  libxml2-devel
+BuildRequires:  llvm-devel
+BuildRequires:  ocaml-findlib-devel
+BuildRequires:  python3-pygments
+BuildRequires:  python3-pyyaml
+BuildRequires:  valgrind-devel
+BuildRequires:  chrpath
 
 Requires:       lib%{name}-ir-frontend = %{version}-%{release}
 Requires:       lib%{name}-pytorch-frontend = %{version}-%{release}
@@ -84,6 +126,7 @@ 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 +194,13 @@ 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
+
+%description -n lib%{name}-intel-npu-plugin
+This package provides the Intel NPU plugin for OpenVINO.
+
+
 ## Frontend shared libraries ##
 
 %package -n lib%{name}-ir-frontend
@@ -239,8 +289,49 @@ code. Python API provides bindings to basic and advanced APIs from OpenVINO
 runtime.
 
 
+## NPU Compiler ##
+
+%package -n intel-npu-compiler
+Summary:        OpenVINO NPU Compiler
+Provides:       bundled(npu_compiler)
+Provides:       bundled(flatbuffers)
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       intel-npu-driver
+Provides:       bundled(npu-nn-cost-model)
+Provides:       bundled(npu_plugin_elf)
+Provides:       bundled(npu-plugin-llvm)
+
+%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.
+
+
+## NPU Compile Tools ##
+
+%package -n intel-npu-tools
+Summary:        NPU compile tools for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description -n intel-npu-tools
+Compile tool is a C++ application that enables to compile a model for inference
+on a specific device and exports the compiled representation to a binary file.
+Protopipe is a C++ tool for simulating performance and validating accuracy of
+various AI scenarios. It supports running inference on ONNX runtime frameworks.
+Single Image Test is a C++ application that enables to pass %{name} IR to ONNX
+model or pre-compiled blob. This tool can be configured to perform various
+preprocessing methods and output comparison algorithms depending on model topology
+
+
 %prep
-%autosetup -p1
+%autosetup -N
+%patch -P 0 -p1
+%patch -P 1 -p1
+%patch -P 2 -p1
+%patch -P 3 -p1
+%patch -P 4 -p1
+%patch -P 7 -p1
 
 # Fedora provides newer NumPy versions
 sed -i 's/numpy>=1\.16\.6,<2\.5\.0/numpy>=1.16.6/' pyproject.toml
@@ -261,12 +352,52 @@ cp -r oneDNN-929fe4e5629be2a5e89f1ba13b13458b965ffe57/* src/plugins/intel_gpu/th
 sed -i '/openvino-telemetry/d' pyproject.toml
 sed -i '/openvino-telemetry/d' src/bindings/python/requirements.txt
 
+# Intel NPU plugin thirdparty deps
+tar xf %{SOURCE4} -C thirdparty/level_zero/level-zero --strip-components=1
+tar xf %{SOURCE5} -C src/plugins/intel_npu/thirdparty/yaml-cpp --strip-components=1
+tar xf %{SOURCE6} -C src/plugins/intel_npu/thirdparty/level-zero-ext --strip-components=1
+
+# Intel NPU compiler thirdparty deps
+rm -rf %{npu_compiler_path}
+mkdir -p %{npu_compiler_path}
+tar xf %{SOURCE7}  -C %{npu_compiler_path} --strip-components=1
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global user.email "buildinfra@fedoraproject.org"
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global user.name "Fedora Project"
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global --add safe.directory %{_builddir}/%{name}-%{version}/%{npu_compiler_path}
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global pull.rebase true
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} init -q
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} remote add origin https://github.com/openvinotoolkit/npu_compiler
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} fetch --all
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} add .
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} commit -m "initial commit"
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} pull origin %{npu_compiler_rev}
+git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} log -1 --oneline
+%patch -d %{npu_compiler_path} -P 5 -p1
+tar xf %{SOURCE8}  -C %{npu_compiler_path}/thirdparty/elf --strip-components=1
+%patch -d %{npu_compiler_path}/thirdparty/elf -P 6 -p1
+tar xf %{SOURCE9}  -C %{npu_compiler_path}/thirdparty/gtest-parallel --strip-components=1
+tar xf %{SOURCE10} -C %{npu_compiler_path}/thirdparty/llvm-project --strip-components=1
+tar xf %{SOURCE11} -C %{npu_compiler_path}/thirdparty/vpucostmodel --strip-components=1
+
+# Intel NPU Plugin thirdparty deps
+tar xf %{SOURCE12} -C %{flatbuffers_path} --strip-components=1
+rm -rf %{flatbuffers_path}/.git
+git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} config --global --add safe.directory %{builddir}/%{name}-%{version}/%{flatbuffers_path}
+git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} init -q
+git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} remote add origin https://github.com/google/flatbuffers
+git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} fetch --all
+git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} add .
+git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} commit -m "initial commit"
+git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} pull origin v24.3.25
+git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} describe
 
 %build
 %cmake \
       -DCMAKE_BUILD_TYPE=RelWithDebInfo \
       -DCMAKE_POLICY_VERSION_MINIMUM="3.5.0" \
-      -DCMAKE_CXX_FLAGS="%{optflags} -Wformat -Wformat-security -Wno-free-nonheap-object -Wno-array-bounds -Wno-stringop-overflow" \
+      -DCMAKE_CXX_FLAGS="%{optflags} -Wformat -Wformat-security -Wno-free-nonheap-object -Wno-array-bounds -Wno-stringop-overflow \
+      -Wno-error=dangling-reference -Wno-error=stringop-overflow -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable \
+      -Wno-error=template-id-cdtor -include cstdint -fno-lto" \
       -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
       -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON \
       -DENABLE_CLANG_FORMAT=OFF \
@@ -280,7 +411,12 @@ 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 \
+      -DENABLE_INTEL_NPU_COMPILER=ON \
+      -DENABLE_INTEL_NPU_INTERNAL=ON \
+      -DENABLE_INTEL_NPU_PROTOPIPE=ON \
+      -DENABLE_PLUGINS_XML=ON \
+      -DENABLE_NPU_PLUGIN_ENGINE=ON \
       -DENABLE_TEMPLATE=OFF \
       -DENABLE_PROXY=OFF \
       -DENABLE_PYTHON=ON \
@@ -298,6 +434,17 @@ 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 \
+      -DOPENVINO_EXTRA_MODULES=%{npu_compiler_path} \
+      -DENABLE_PREBUILT_LLVM_MLIR_LIBS=OFF \
+      -DENABLE_MLIR_COMPILER=ON \
+      -DBUILD_COMPILER_FOR_DRIVER=ON \
+      -DENABLE_DRIVER_COMPILER_ADAPTER=OFF \
+      -DBUILD_VPUX_DRIVER_COMPILER_TESTS=OFF \
+      -DLLVM_ENABLE_LTO=OFF \
+      -DENABLE_LTO=OFF \
+      -DENABLE_TBBBIND_2_5=OFF \
+      -DENABLE_TBB_RELEASE_ONLY=OFF \
       -DTHREADING=TBB
 %cmake_build
 
@@ -329,6 +476,35 @@ rm -rf %{buildroot}%{python3_sitearch}/openvino_telemetry*
 rm -vf %{buildroot}%{python3_sitearch}/requirements.txt
 rm -vf %{buildroot}%{python3_sitearch}/%{name}/preprocess/torchvision/requirements.txt
 
+# Remove VPUX static libs
+rm -rf %{buildroot}/usr/cid/vpux_elf/lib/RelWithDebInfo/lib*.a
+rm -rf %{buildroot}/usr/runtime/3rdparty/*
+rm -rf %{buildroot}/usr/runtime/cmake/*
+rm -rf %{buildroot}/usr/samples/cpp/thirdparty/*
+rm -rf %{buildroot}/usr/licenses/*
+
+## NPU Plugin/Compiler shared libs
+mkdir -p %{buildroot}%{_libdir}/%{name}-%{version}
+#mv %{buildroot}/usr/runtime/lib/intel64/lib%{name}_intel_npu_plugin.so %{buildroot}%{_libdir}/%{name}-%{version}
+#mv %{buildroot}/usr/runtime/lib/intel64/plugins.xml %{buildroot}%{_libdir}/%{name}-%{version}
+mv %{buildroot}/usr/cid/lib/libnpu_driver_compiler.so %{buildroot}%{_libdir}/%{name}-%{version}
+
+## NPU Driver Compiler
+mkdir -p %{buildroot}%{_includedir}/%{name}
+mv %{buildroot}/usr/cid/npu_driver_compiler.h %{buildroot}%{_includedir}/%{name}
+mkdir -p %{buildroot}%{_datadir}/%{name}/npu
+mv %{buildroot}/usr/cid/README.md %{buildroot}%{_datadir}/%{name}/npu
+mv %{buildroot}/usr/cid/CHANGES.txt %{buildroot}%{_datadir}/%{name}/npu
+
+## NPU Compile tools
+mkdir -p %{buildroot}%{_bindir}/%{name}/npu/tools/
+mv %{builddir}/%{name}-%{version}/bin/intel64/RelWithDebInfo/compile_tool %{buildroot}%{_bindir}/%{name}/npu/tools/
+mv %{builddir}/%{name}-%{version}/bin/intel64/RelWithDebInfo/protopipe %{buildroot}%{_bindir}/%{name}/npu/tools/
+mv %{builddir}/%{name}-%{version}/bin/intel64/RelWithDebInfo/single-image-test %{buildroot}%{_bindir}/%{name}/npu/tools/single-image-test
+
+chrpath --delete %{buildroot}/%{_bindir}/%{name}/npu/tools/compile_tool
+chrpath --delete %{buildroot}/%{_bindir}/%{name}/npu/tools/protopipe
+chrpath --delete %{buildroot}/%{_bindir}/%{name}/npu/tools/single-image-test
 
 %check
 LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch} \
@@ -356,7 +532,14 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch
 %{_libdir}/lib%{name}_c.so.%{so_ver}
 
 %files -n lib%{name}-devel
-%{_includedir}/%{name}/
+%{_includedir}/%{name}/*
+%{_includedir}/3720/*
+%{_includedir}/4000/*
+%{_includedir}/5000/*
+%{_includedir}/common/*
+%{_includedir}/vpux_elf/*
+%{_includedir}/vpux_headers/*
+%{_includedir}/vpux_loader/*
 %{_libdir}/cmake/%{name}%{version}/
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/%{name}.pc
@@ -384,6 +567,11 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch
 %{_libdir}/%{name}-%{version}/lib%{name}_intel_gpu_plugin.so
 %{_libdir}/%{name}-%{version}/cache.json
 
+%files -n lib%{name}-intel-npu-plugin
+%dir %{_libdir}/%{name}-%{version}
+%{_libdir}/%{name}-%{version}/lib%{name}_intel_npu_plugin.so
+%{_libdir}/%{name}-%{version}/plugins.xml
+
 ## Frontends
 
 %files -n lib%{name}-ir-frontend
@@ -413,6 +601,18 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch
 %{python3_sitearch}/%{name}
 %{python3_sitearch}/%{name}-%{version}.dist-info
 
+## Compiler in Driver
+
+%files -n intel-npu-compiler
+%doc %{_datadir}/%{name}/npu/README.md
+%doc %{_datadir}/%{name}/npu/CHANGES.txt
+%dir %{_libdir}/%{name}-%{version}
+%{_libdir}/%{name}-%{version}/libnpu_driver_compiler.so
+
+## NPU Compile Tools
+
+%files -n intel-npu-tools
+%{_bindir}/%{name}/npu/tools/*
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19 11:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 11:11 [rpms/openvino] rawhide: Update OpenVINO NPU Compiler npu_ud_2026_12_rc1 Aaron Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox