!2 [sync] PR-1: init BiSheng-opentuner

From: @openeuler-sync-bot 
Reviewed-by: @liyunfei33 
Signed-off-by: @liyunfei33
This commit is contained in:
openeuler-ci-bot 2024-08-30 06:16:03 +00:00 committed by Gitee
commit 7313d6e39c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 48 additions and 0 deletions

48
BiSheng-opetuner.spec Normal file
View File

@ -0,0 +1,48 @@
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

BIN
bisheng-opentuner.zip Normal file

Binary file not shown.