代码拉取完成,页面将自动刷新
Name: numafast
Version: v2.2.2
Release: 1
Summary: numafast is a userspace tool designed for Kunpeng Chips that aims to improve system performance by reducing cross-NUMA memory access.
License: MulanPSL2
URL: https://gitee.com/kunpeng_compute/%{name}
Source0: %{name}-%{version}.tar.gz
%global kernel_version %(uname -r | awk -F'.' '{print $1"."$2}')
%if "%{kernel_version}" > "4.19"
%define extern_inih_lib 1
%endif
# Requires:
Requires: numactl
Requires: libboundscheck
%if 0%{?extern_inih_lib}
Requires: inih
%endif
ExclusiveArch: aarch64
%description
numafast is a userspace tool designed for Kunpeng Chips that aims to improve system performance by reducing cross-NUMA memory access.
%prep
%autosetup -n %{name}-%{version} -p1
%install
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/oeAware-plugin
install -b -m640 ./numafast.conf ${RPM_BUILD_ROOT}%{_sysconfdir}/
%if "%{kernel_version}" == "4.19" || "%{kernel_version}" == "5.10" || "%{kernel_version}" == "6.6"
install -b -m755 ./%{kernel_version}/numafast ${RPM_BUILD_ROOT}%{_bindir}/
install -b -m755 ./%{kernel_version}/*.so ${RPM_BUILD_ROOT}%{_libdir}/oeAware-plugin/
%endif
%if "%{kernel_version}" == "4.19"
install -b -m755 ./%{kernel_version}/lib64/* ${RPM_BUILD_ROOT}%{_libdir}/
%endif
%files
%defattr (-, root, root)
%attr(0640, root, root) %{_sysconfdir}/numafast.conf
%attr(0750, root, root) %{_bindir}/numafast
%if "%{kernel_version}" == "4.19"
%attr(0440, root, root) %{_libdir}/*.so*
%endif
%attr(0440, root, root) %{_libdir}/oeAware-plugin/*.so
%changelog
* Thu Dec 19 2024 LHesperus <[email protected]> - v2.2.2-1
- adapt oeaware new plugin, build by O2, proc num balance
* Fri Aug 30 2024 LHesperus <[email protected]> - v2.0.1-1
- smt tune, load balance, mig bound thr, mig all mem, whitelist with regex
* Fri Jul 5 2024 LHesperus <[email protected]> - v2.0.0-1
- reconstruct the c language version numafast into the c++ version
* Thu Apr 25 2024 zhoukaiqi <[email protected]> - v1.0.0-2
- support openEuler-20.03-LTS-SP3 and openEuler-22.03-LTS-SP1
* Tue Apr 23 2024 zhoukaiqi <[email protected]> - v1.0.0-1
- package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。