diff --git a/_service b/_service new file mode 100644 index 0000000..0ed29de --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + https://github.com/intel/linux-npu-driver + git + v1.28.0 + @PARENT_TAG@ + v(.*) + enable + linux-npu-driver + + + *.tar + xz + + + diff --git a/gtest.patch b/gtest.patch new file mode 100644 index 0000000..51676f7 --- /dev/null +++ b/gtest.patch @@ -0,0 +1,31 @@ +diff -uNr linux-npu-driver-1.28.0/third_party/CMakeLists.txt linux-npu-driver-1.28.0.Ok/third_party/CMakeLists.txt +--- linux-npu-driver-1.28.0/third_party/CMakeLists.txt 2025-12-18 10:42:25.000000000 -0300 ++++ linux-npu-driver-1.28.0.Ok/third_party/CMakeLists.txt 2025-12-20 15:59:44.888471047 -0300 +@@ -8,15 +8,11 @@ + add_compile_options(-Wno-error -include cstdint) + + include(cmake/npu_compiler_elf.cmake) +-include(cmake/level-zero.cmake) + include(cmake/level-zero-npu-extensions.cmake) + if (ENABLE_NPU_PERFETTO_BUILD) + include(cmake/perfetto.cmake) + endif() + +-set(INSTALL_GTEST OFF) +-add_subdirectory(googletest EXCLUDE_FROM_ALL) +- + set(YAML_CPP_INSTALL OFF) + set(BUILD_SHARED_LIBS OFF) + add_subdirectory(yaml-cpp EXCLUDE_FROM_ALL) +diff -uNr linux-npu-driver-1.28.0/third_party/level-zero-npu-extensions/ze_graph_ext.h linux-npu-driver-1.28.0.Ok/third_party/level-zero-npu-extensions/ze_graph_ext.h +--- linux-npu-driver-1.28.0/third_party/level-zero-npu-extensions/ze_graph_ext.h 2025-12-18 10:42:25.000000000 -0300 ++++ linux-npu-driver-1.28.0.Ok/third_party/level-zero-npu-extensions/ze_graph_ext.h 2025-12-20 15:59:16.375757426 -0300 +@@ -11,7 +11,7 @@ + #pragma once + #endif + +-#include "ze_api.h" ++#include "level_zero/ze_api.h" + #include "ze_graph_profiling_ext.h" + + #ifndef ZE_GRAPH_EXT_NAME diff --git a/linux-npu-driver-1.28.0.tar.xz b/linux-npu-driver-1.28.0.tar.xz new file mode 100644 index 0000000..e571be4 --- /dev/null +++ b/linux-npu-driver-1.28.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb0de22bb27532215049d2f1714016d730f25438faff50cddad718839a58c47c +size 29338088 diff --git a/linux-npu-driver.changes b/linux-npu-driver.changes new file mode 100644 index 0000000..24d9892 --- /dev/null +++ b/linux-npu-driver.changes @@ -0,0 +1,36 @@ +------------------------------------------------------------------- +Sat Dec 20 17:43:23 UTC 2025 - Alessandro de Oliveira Faria + +- The Panther Lake support is available from version v1.28.0 + +------------------------------------------------------------------- +Mon Dec 15 01:31:14 UTC 2025 - Alessandro de Oliveira Faria + +- Build with the factory level-zero. Thanks (anag_factory) + +------------------------------------------------------------------- +Sun Dec 14 15:51:43 UTC 2025 - Alessandro de Oliveira Faria + +- Build with the factory Googletest. Thanks (anag_factory) + +------------------------------------------------------------------- +Mon Dec 8 02:41:48 UTC 2025 - Alessandro de Oliveira Faria + +- Add gtest package + +------------------------------------------------------------------- +Tue Dec 2 04:01:37 UTC 2025 - Alessandro de Oliveira Faria + +- Update to version 1.26.0: + * NPU Driver 1.26.0 release unified 2025WW44 + * Upgrade level-zero-npu-extensions submodule to 61e4aeb. + * Update vpux_elf submodule to c6694c8. + * Update compiler to npu_ud_2025_44_rc1. + * New Firmware binaries. + * New changes to driver and tests. + +------------------------------------------------------------------- +Wed Nov 26 05:51:02 UTC 2025 - Alessandro de Oliveira Faria + +- Initial package +- Version 1.24.0 diff --git a/linux-npu-driver.spec b/linux-npu-driver.spec new file mode 100644 index 0000000..0e08c33 --- /dev/null +++ b/linux-npu-driver.spec @@ -0,0 +1,72 @@ +# +# spec file for package linux-npu-drive +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 Alessandro de Oliveira Faria (A.K.A CABELO) +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%define _firmwaredir /lib/firmware +Name: linux-npu-driver +Version: 1.28.0 +Release: 0 +Summary: Driver for Intel NPU device. +License: MIT +URL: https://github.com/intel/linux-npu-driver +Source0: %{name}-%{version}.tar.xz +Patch0: gtest.patch +BuildRequires: cmake +BuildRequires: gtest level-zero-devel gmock +BuildRequires: gmock +BuildRequires: git +%if 0%{?suse_version} >= 1600 && 0%{?is_opensuse} +BuildRequires: gcc-c++ gcc +%else +BuildRequires: gcc12-c++ gcc12 +%endif +BuildRequires: xz + +%description +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 execution of artificial +neural network tasks. + +%prep +%autosetup -p1 + +%build +%if 0%{?suse_version} < 1600 && 0%{?is_opensuse} +export CC=gcc-12 CXX=g++-12 +%endif + +cat third_party/CMakeLists.txt +%cmake \ + -DENABLE_NPU_COMPILER_BUILD=OFF \ + -DCMAKE_CXX_FLAGS="-fcf-protection=none" \ + -DCMAKE_C_FLAGS="-fcf-protection=none" +%cmake_build + +%install +%cmake_install + +%ldconfig_scriptlets + +%files +%{_libdir}/libze_*.so.* +%{_libdir}/libze_*.so +%{_bindir}/npu-kmd-test +%{_bindir}/npu-umd-test +%{_firmwaredir} + +%changelog