generated from pool/new_package
For Submission to PackageHub 16.1 #1
16
_service
Normal file
16
_service
Normal file
@@ -0,0 +1,16 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="url">https://github.com/intel/linux-npu-driver</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">v1.28.0</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="submodules">enable</param>
|
||||
<param name="filename">linux-npu-driver</param>
|
||||
</service>
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual"/>
|
||||
</services>
|
||||
31
gtest.patch
Normal file
31
gtest.patch
Normal file
@@ -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
|
||||
BIN
linux-npu-driver-1.28.0.tar.xz
LFS
Normal file
BIN
linux-npu-driver-1.28.0.tar.xz
LFS
Normal file
Binary file not shown.
36
linux-npu-driver.changes
Normal file
36
linux-npu-driver.changes
Normal file
@@ -0,0 +1,36 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 20 17:43:23 UTC 2025 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
||||
|
||||
- The Panther Lake support is available from version v1.28.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 15 01:31:14 UTC 2025 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
||||
|
||||
- Build with the factory level-zero. Thanks (anag_factory)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 14 15:51:43 UTC 2025 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
||||
|
||||
- Build with the factory Googletest. Thanks (anag_factory)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 8 02:41:48 UTC 2025 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
||||
|
||||
- Add gtest package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 2 04:01:37 UTC 2025 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
||||
|
||||
- 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 <cabelo@opensuse.org>
|
||||
|
||||
- Initial package
|
||||
- Version 1.24.0
|
||||
72
linux-npu-driver.spec
Normal file
72
linux-npu-driver.spec
Normal file
@@ -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) <cabelo@opensuse.org>
|
||||
#
|
||||
# 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
|
||||
Reference in New Issue
Block a user