BiSheng-opentuner/BiSheng-opetuner.spec
liyunfei a16b338f73 Package init
Signed-off-by: liyunfei <liyunfei33@huawei.com>
(cherry picked from commit e0e32ac89f029e0f05ad2b0b2fe961cf006c89bf)
2024-08-06 14:46:04 +08:00

48 lines
1.5 KiB
RPMSpec

Name: BiSheng-opentuner
Version: 0.8.8
Release: 1
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
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 -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 Apr 24 2024 liyunfei <liyunfei33@huawei.com> - 0.8.8-1
- Package init