do not use sse for riscv
This commit is contained in:
parent
16c33f793b
commit
e65c93da72
11
disable-sse-for-riscv.patch
Normal file
11
disable-sse-for-riscv.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/xgboost/make/config.mk 2019-05-21 05:32:11.000000000 +0800
|
||||||
|
+++ b/xgboost/make/config.mk 2022-01-21 17:26:44.096537200 +0800
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
# Settings for power and arm arch
|
||||||
|
#----------------------------
|
||||||
|
ARCH := $(shell uname -a)
|
||||||
|
-ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64))
|
||||||
|
+ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64 riscv64))
|
||||||
|
USE_SSE=0
|
||||||
|
else
|
||||||
|
USE_SSE=1
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.90
|
Version: 0.90
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Scalable, Portable and Distributed Gradient Boosting Library
|
Summary: Scalable, Portable and Distributed Gradient Boosting Library
|
||||||
License: Apache-2
|
License: Apache-2
|
||||||
URL: https://github.com/dmlc/xgboost
|
URL: https://github.com/dmlc/xgboost
|
||||||
@ -16,6 +16,7 @@ Requires: fontconfig fontpackages-filesystem
|
|||||||
Requires: libX11 libXau libXft libXrender libxcb
|
Requires: libX11 libXau libXft libXrender libxcb
|
||||||
Requires: openEuler-rpm-config
|
Requires: openEuler-rpm-config
|
||||||
Requires: python3-devel python3-rpm-generators tk
|
Requires: python3-devel python3-rpm-generators tk
|
||||||
|
Patch01: disable-sse-for-riscv.patch
|
||||||
|
|
||||||
%global _description \
|
%global _description \
|
||||||
XGBoost is an optimized distributed gradient boosting library designed to be \
|
XGBoost is an optimized distributed gradient boosting library designed to be \
|
||||||
@ -35,7 +36,7 @@ Summary: %{summary}
|
|||||||
%description -n python3-%{pypi_name} %{_description}
|
%description -n python3-%{pypi_name} %{_description}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n %{pypi_name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd %{pypi_name}
|
pushd %{pypi_name}
|
||||||
@ -63,6 +64,9 @@ find %{buildroot} -name "*.py" -exec sed -i -r 's!/usr/bin/python(\s|$)!/usr/bin
|
|||||||
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 24 2022 lvxiaoqian <xiaoqian@nj.iscas.ac.cn> - 0.90-4
|
||||||
|
- do not use sse for riscv
|
||||||
|
|
||||||
* Wed Jun 23 2021 wuchaochao <wuchaochao4@huawei.com> - 0.90-3
|
* Wed Jun 23 2021 wuchaochao <wuchaochao4@huawei.com> - 0.90-3
|
||||||
- add buildrequires: gcc-c++
|
- add buildrequires: gcc-c++
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user