hwloc/hwloc.spec

268 lines
7.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package hwloc
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%if 0%{?suse_version} > 1500
%bcond_without XNVCtrl
%else
%bcond_with XNVCtrl
%endif
%if 0%{?sle_version} < 150600
%bcond_with OpenCL
%else
%bcond_without OpenCL
%endif
%global lname libhwloc15
Name: hwloc
Accepting request 1135372 from home:dirkmueller:Factory - update to 2.10.0: Heterogeneous Memory core improvements + Better heuristics to identify the subtype of memory such as HBM, DRAM, NVM, CXL-DRAM, etc. + Build memory tiers, i.e. sets of NUMA nodes with the same subtype and similar performance. - NUMA node tier ranks are exposed in the new MemoryTier info attribute (starts from 0 for highest bandwidth tier). + Add hwloc_topology_free_group_object() to discard a Group created by hwloc_topology_alloc_group_object(). + Fix cpukinds on NVIDIA Grace to report identical cores even if they actually have very small frequency differences. + Add CXLDevice attributes to CXL DAX objects and NUMA nodes to show which PCI device implements which window. + Ignore buggy memory-side caches and memory attributes when fake NUMA emulation is enabled on the Linux kernel command-line. + Add more info attributes in MemoryModule Misc objects, + Get CPUModel and CPUFamily info attributes on LoongArch platforms. + Add support for new AMD CPUID leaf 0x80000026 for better detection of Core Complex and Die on Zen4 processors. + Improve Zhaoxin CPU topology detection. + Input locations and many command-line options (e.g. hwloc-calc -I -N -H, lstopo --only) now accept filters such as "NUMA[HBM]" so that only objects are that type and subtype are considered. - NUMA[tier=1] is also accepted for selecting NUMA nodes depending on their MemoryTier info attribute. + Add --object-output to hwloc-calc to report the type as a OBS-URL: https://build.opensuse.org/request/show/1135372 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/hwloc?expand=0&rev=70
2024-01-16 17:31:10 +01:00
Version: 2.10.0
Release: 0
Summary: Portable Hardware Locality
License: BSD-3-Clause
URL: https://www.open-mpi.org/projects/hwloc/
Accepting request 1135372 from home:dirkmueller:Factory - update to 2.10.0: Heterogeneous Memory core improvements + Better heuristics to identify the subtype of memory such as HBM, DRAM, NVM, CXL-DRAM, etc. + Build memory tiers, i.e. sets of NUMA nodes with the same subtype and similar performance. - NUMA node tier ranks are exposed in the new MemoryTier info attribute (starts from 0 for highest bandwidth tier). + Add hwloc_topology_free_group_object() to discard a Group created by hwloc_topology_alloc_group_object(). + Fix cpukinds on NVIDIA Grace to report identical cores even if they actually have very small frequency differences. + Add CXLDevice attributes to CXL DAX objects and NUMA nodes to show which PCI device implements which window. + Ignore buggy memory-side caches and memory attributes when fake NUMA emulation is enabled on the Linux kernel command-line. + Add more info attributes in MemoryModule Misc objects, + Get CPUModel and CPUFamily info attributes on LoongArch platforms. + Add support for new AMD CPUID leaf 0x80000026 for better detection of Core Complex and Die on Zen4 processors. + Improve Zhaoxin CPU topology detection. + Input locations and many command-line options (e.g. hwloc-calc -I -N -H, lstopo --only) now accept filters such as "NUMA[HBM]" so that only objects are that type and subtype are considered. - NUMA[tier=1] is also accepted for selecting NUMA nodes depending on their MemoryTier info attribute. + Add --object-output to hwloc-calc to report the type as a OBS-URL: https://build.opensuse.org/request/show/1135372 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/hwloc?expand=0&rev=70
2024-01-16 17:31:10 +01:00
Source0: https://download.open-mpi.org/release/hwloc/v2.10/hwloc-%{version}.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libnuma-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: perl
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(pciaccess)
BuildRequires: pkgconfig(x11)
%if %{with XNVCtrl}
BuildRequires: libXNVCtrl-devel
%endif
%if %{with OpenCL}
BuildRequires: opencl-headers
BuildRequires: pkgconfig(OpenCL)
%endif
Requires: %{lname} = %{version}-%{release}
Requires: perl-JSON
Requires: perl-base >= 5.18.2
Requires(post): desktop-file-utils
Requires(postun):desktop-file-utils
%{?systemd_ordering}
%description
The Portable Hardware Locality (hwloc) software package provides
an abstraction (across OS, versions, architectures, ...)
of the hierarchical topology of modern architectures, including
NUMA memory nodes, shared caches, processor sockets, processor cores
and processing units (logical processors or "threads"). It also gathers
various system attributes such as cache and memory information. It primarily
aims at helping applications with gathering information about modern
computing hardware so as to exploit it accordingly and efficiently.
hwloc may display the topology in multiple convenient formats.
It also offers a powerful programming interface (C API) to gather information
about the hardware, bind processes, and much more.
%package gui
Summary: Hwloc GUI tool
Requires: %{name} = %{version}
%description gui
Hwloc GUI visualization tool - requires X11
%package devel
Summary: Headers and shared development libraries for hwloc
Requires: %{lname} = %{version}
Provides: libhwloc-devel = %{version}
Obsoletes: libhwloc-devel < %{version}
Obsoletes: libhwloc-devel = 0.0.0
%description devel
This package contains the headers and shared object symbolic links
for the hwloc.
%package -n %{lname}
Summary: Runtime libraries for hwloc
Requires: %{name}-data
%description -n %{lname}
This package contains the run time libraries for hwloc.
%package data
Summary: Run time data for hwloc
BuildArch: noarch
%description data
This package contains the run time data for the hwloc.
%package doc
Summary: Documentation for hwloc
BuildArch: noarch
%description doc
This package contains the documentation for hwloc.
%package gl
Summary: OpenGL Plugin for HWLOC (NVIDIA Only)
Requires: hwloc
%description gl
Plugin for HWLOC to detect and enumerate OpenGL devices. This works only
for NVIDIA devices running the proprietary driver by using the NV-CONTROL
X Window System extension.
%package opencl
Summary: OpenCL Plugin for HWLOC
Requires: hwloc
%description opencl
Plugin for HWLOC to detect and enumerate OpenCL devices. It detects
HW accelerators from AMD and NVIDIA
%prep
%setup -q
%build
autoreconf -fvi
# We let the supported components autodetect and mark those as plugins
# which we don't want to have included statically - regardless available
%configure \
--disable-silent-rules \
--enable-plugins=opencl,gl,cuda,levelzero,nvml,rsmi \
--with-hwloc-plugins-path=%{_libdir}/hwloc
%make_build
%install
%make_install
%suse_update_desktop_file -r lstopo System Monitor
# We don't ship .la files.
rm -rf %{buildroot}%{_libdir}/libhwloc.la
# documentation will be handled by % doc macro
rm -rf %{buildroot}%{_datadir}/doc/
# remove .la files for plugins
rm -f %{buildroot}/%{_libdir}/hwloc/*.la
# This binary is built only for intel architectures
%ifarch %{ix86} x86_64
install -D -m 644 %{buildroot}%{_datadir}/hwloc/hwloc-dump-hwdata.service %{buildroot}%{_unitdir}/hwloc-dump-hwdata.service
%endif
rm %{buildroot}%{_datadir}/hwloc/hwloc-dump-hwdata.service
#remove headers for features we don't ship
rm %{buildroot}%{_includedir}/hwloc/rsmi.h
rm %{buildroot}%{_includedir}/hwloc/nvml.h
rm %{buildroot}%{_includedir}/hwloc/levelzero.h
rm %{buildroot}%{_includedir}/hwloc/cuda.h
rm %{buildroot}%{_includedir}/hwloc/cudart.h
%{!?with_XNVCtrl:rm %{buildroot}%{_includedir}/hwloc/gl.h}
%{!?with_OpenCL:rm %{buildroot}%{_includedir}/hwloc/opencl.h}
%fdupes -s %{buildroot}/%{_mandir}/man1
%fdupes -s %{buildroot}/%{_mandir}/man3
%fdupes -s %{buildroot}/%{_mandir}/man7
%check
#XXX: this is weird, but make check got broken by removing doxygen-doc/man above
# the only one fix is to install documentation by hand, or to ignore check error
%make_build check || :
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%ifarch %{ix86} x86_64
%pre
%service_add_pre hwloc-dump-hwdata.service
%endif
%post
%ifarch %{ix86} x86_64
%service_add_post hwloc-dump-hwdata.service
%endif
%desktop_database_post
%ifarch %{ix86} x86_64
%preun
%service_del_preun hwloc-dump-hwdata.service
%endif
%postun
%ifarch %{ix86} x86_64
%service_del_postun hwloc-dump-hwdata.service
%endif
%desktop_database_postun
%files
%license COPYING
%doc NEWS README VERSION
%if %{with OpenCL} || %{with XNVCtrl}
%dir %{_libdir}/hwloc
%endif
%{_mandir}/man7/hwloc*
%{_mandir}/man1/hwloc*
%{_mandir}/man1/lstopo-no-graphics*
%{_bindir}/hwloc*
%{_bindir}/lstopo-no-graphics
Accepting request 265428 from home:ealin:varia - Update to Version 1.10.0 * v1.10.0 is the new feature release. There is no new major change in this release, just improvements everywhere. If you are buying new Intel Xeon E5 with 10 cores or more, this release is required for proper Socket/NUMA detection until the Linux kernel gets fixed. * API + Add hwloc_topology_export_synthetic() to export a topology to a synthetic string without using lstopo. See the Synthetic topologies section in the documentation. + Add hwloc_topology_set/get_userdata() to let the application save a private pointer in the topology whenever it needs a way to find its own object corresponding to a topology. + Add hwloc_get_numanode_obj_by_os_index() and document that this function as well as hwloc_get_pu_obj_by_os_index() are good at converting nodesets and cpusets into objects. + hwloc_distrib() does not ignore any objects anymore when there are too many of them. They get merged with others instead. Thanks to Tim Creech for reporting the issue. * Tools + hwloc-bind --get <command-line> now executes the command after displaying the binding instead of ignoring the command entirely. Thanks to John Donners for the suggestion. + Clarify that memory sizes shown in lstopo are local by default unless specified (total memory added in the root object). * Synthetic topologies + Synthetic topology descriptions may now specify attributes such as memory sizes and OS indexes. See the Synthetic topologies section in the documentation. + lstopo now exports in this fully-detailed format by default. OBS-URL: https://build.opensuse.org/request/show/265428 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/hwloc?expand=0&rev=8
2014-12-18 15:00:33 +01:00
%{_datadir}/applications/*.desktop
Accepting request 866383 from home:dirkmueller:branches:devel:libraries:c_c++ - update to 2.4.0: + Add hwloc/cpukinds.h for reporting information about hybrid CPUs. - Use Linux cpufreq frequencies to rank cores by efficiency. - Use x86 CPUID hybrid leaf and future Linux kernels sysfs CPU type files to identify Intel Atom and Core cores. - Use the Windows native EfficiencyClass to separate kinds. + Properly handle Linux kernel 5.10+ exposing ACPI HMAT information with knowledge of Generic Initiators. + lstopo has new --cpukinds and --no-cpukinds options for showing CPU kinds or not in textual and graphical modes respectively. + hwloc-calc has a new --cpukind option for filtering PUs by kind. + hwloc-annotate has a new cpukind command for modifying CPU kinds. + Fix hwloc_bitmap_nr_ulongs(), thanks to Norbert Eicker. + Add a documentation section about "Topology Attributes: Distances, Memory Attributes and CPU Kinds". + Silence some spurious warnings in the OpenCL backend and when showing process binding with lstopo --ps. + Add hwloc/memattrs.h for exposing latency/bandwidth information between initiators (CPU sets for now) and target NUMA nodes, typically on heterogeneous platforms. - When available, bandwidths and latencies are read from the ACPI HMAT table exposed by Linux kernel 5.2+. - Attributes may also be customized to expose user-defined performance information. + Add hwloc_get_local_numanode_objs() for listing NUMA nodes that are local to some locality. + The new topology flag HWLOC_TOPOLOGY_FLAG_IMPORT_SUPPORT causes support arrays to be loaded from XML exported with hwloc 2.3+. - hwloc_topology_get_support() now returns an additional "misc" array with feature "imported_support" set when support was imported. OBS-URL: https://build.opensuse.org/request/show/866383 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/hwloc?expand=0&rev=40
2021-01-26 17:50:29 +01:00
%{_datadir}/bash-completion/completions/%{name}
%ifarch %{ix86} x86_64
%attr(0755,root,root) %{_sbindir}/hwloc-dump-hwdata
%{_unitdir}/hwloc-dump-hwdata.service
%endif
%files gui
%{_bindir}/lstopo
%{_mandir}/man1/lstopo.*
%files devel
%exclude %{_includedir}/hwloc/opencl.h
%exclude %{_includedir}/hwloc/gl.h
%{_includedir}/hwloc
%{_includedir}/hwloc.h
%{_libdir}/libhwloc.so
%{_libdir}/pkgconfig/hwloc.pc
%files -n %{lname}
%{_libdir}/libhwloc*so.*
%files data
%dir %{_datadir}/hwloc
%dir %{_datadir}/hwloc/hwloc-ps.www
%{_datadir}/hwloc/hwloc.dtd
%{_datadir}/hwloc/hwloc2-diff.dtd
%{_datadir}/hwloc/hwloc2.dtd
%{_datadir}/hwloc/hwloc-valgrind.supp
%{_datadir}/hwloc/hwloc-ps.www/*
%if %{with OpenCL}
%files opencl
%{_libdir}/hwloc/hwloc_opencl.so
%endif
%if %{with XNVCtrl}
%files gl
%{_libdir}/hwloc/hwloc_gl.so
%endif
%files doc
%doc ./doc/doxygen-doc/html/*
%{_mandir}/man3/*
%changelog