%global upstream_name xpumanager Name: xpu-manager Version: 1.3.3 Release: %{autorelease} Summary: Intel XPU System Management Interface License: MIT ExclusiveArch: x86_64 URL: https://github.com/intel/xpumanager Source0: %{url}/archive/v%{version}/%{upstream_name}-%{version}.tar.gz BuildRequires: make BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: git BuildRequires: pkg-config BuildRequires: doxygen BuildRequires: libtool BuildRequires: libudev-devel BuildRequires: glibc-static BuildRequires: hwloc-devel BuildRequires: intel-gsc-devel BuildRequires: intel-level-zero-devel BuildRequires: intel-metee-devel BuildRequires: intel-opencl BuildRequires: libpciaccess-devel BuildRequires: lua-devel BuildRequires: opencl-headers BuildRequires: oneapi-level-zero-devel BuildRequires: zlib-static BuildRequires: zlib-devel %description A free and open-source solution built on top of the Intel oneAPI Level Zero interface for monitoring and managing Intel GPUs. It is responsible for GPU administration, location, topology, telemetry, diagnostics, firmware updating, and GPU configuration. It supports local command-line interface and a local library call interface for integration with third-party solutions. %package -n xpu-smi Summary: Intel XPU System Management Interface Requires: intel-level-zero Requires: intel-opencl Requires: oneapi-level-zero Requires: intel-gsc Requires: intel-metrics-discovery Requires: intel-metrics-library Recommends: libva-intel-media-driver Recommends: intel-vpl-gpu-rt Recommends: libvpl %description -n xpu-smi A free and open-source solution built on top of the Intel oneAPI Level Zero interface for monitoring and managing Intel GPUs. It is responsible for GPU administration, location, topology, telemetry, diagnostics, firmware updating, and GPU configuration. It supports local command-line interface and a local library call interface for integration with third-party solutions. %package -n xpu-smi-devel Summary: Development files for Intel XPU System Management Interface Requires: xpu-smi = %{version}-%{release} %description -n xpu-smi-devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. #Does not properly generate debug info %define debug_package %{nil} %prep %autosetup -n %{upstream_name}-%{version} %build %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DDAEMONLESS=ON %cmake_build %install %cmake_install %files -n xpu-smi %config(noreplace) %license LICENSE.md %{_libdir}/libxpum.so.%{version} %{_libdir}/libxpum.so.1 %{_bindir}/xpu-smi %{_prefix}/lib/xpu-smi/* %doc README.md %files -n xpu-smi-devel %config(noreplace) %{_includedir}/* %{_libdir}/libxpum.so %changelog %autochangelog