1 Star 0 Fork 4

src-oepkgs/numafast

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
numafast.spec 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
LHesperus 提交于 2024-12-19 15:36 . update to v2.2.2
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 <liuchanggeng@huawei.com> - v2.2.2-1
- adapt oeaware new plugin, build by O2, proc num balance
* Fri Aug 30 2024 LHesperus <liuchanggeng@huawei.com> - v2.0.1-1
- smt tune, load balance, mig bound thr, mig all mem, whitelist with regex
* Fri Jul 5 2024 LHesperus <liuchanggeng@huawei.com> - v2.0.0-1
- reconstruct the c language version numafast into the c++ version
* Thu Apr 25 2024 zhoukaiqi <zhoukaiqi@huawei.com> - v1.0.0-2
- support openEuler-20.03-LTS-SP3 and openEuler-22.03-LTS-SP1
* Tue Apr 23 2024 zhoukaiqi <zhoukaiqi@huawei.com> - v1.0.0-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-oepkgs/numafast.git
git@gitee.com:src-oepkgs/numafast.git
src-oepkgs
numafast
numafast
master

搜索帮助