BiSheng-opentuner/BiSheng-opetuner.spec
huanghe (AH) 6849f10653 Improve extraction of CPU type information
(cherry picked from commit 071b0b22f23f643cbf68996308561b1c29f69535)
2024-12-04 20:44:33 +08:00

53 lines
1.7 KiB
RPMSpec

Name: BiSheng-opentuner
Version: 0.8.8
Release: 2
Summary: An Extensible Framework for Program Autotuning
License: MIT
URL: https://github.com/Huawei-CPLLab/bisheng-opentuner
Source0: https://github.com/Huawei-CPLLab/bisheng-opentuner/archive/bisheng-opentuner.zip
Patch0001: Driver-Improve-extraction-of-CPU-type-informa.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
#install requirements
BuildRequires: python3-future python3-numpy python3-sqlalchemy
%description
OpenTuner is a new framework for building domain-specific multi-objective program
autotuners. OpenTuner supports fully customizable configuration representations, an
extensible technique representation to allow for domain-specific techniques, and an
easy to use interface for communicating with the tuned program. A key capability
inside OpenTuner is the use of ensembles of disparate search techniques
simultaneously, techniques which perform well will receive larger testing budgets
and techniques which perform poorly will be disabled.
%prep
%autosetup -p1 -n %{name}-%{version}
sed -i 's/numpy>=1.12.1, <=1.23.5/numpy>=1.12.1/' requirements.txt
sed -i 's/SQLAlchemy==1.4.49/SQLAlchemy/' requirements.txt
sed -i 's/argparse>=1.2.1//' requirements.txt
%build
%py3_build
%install
%py3_install
%files -n %{name}
%doc LICENSE.txt
%doc AUTHORS.txt
%{python3_sitelib}/*egg-info
%{python3_sitelib}/opentuner
%changelog
* Wed Dec 04 2024 huanghe <huanghe88@h-partners.com> - 0.8.8-2
- Patch0001 Improve extraction of CPU type information
* Wed Apr 24 2024 liyunfei <liyunfei33@huawei.com> - 0.8.8-1
- Package init