!25 [sync] PR-23: Add sw_64 support
From: @openeuler-sync-bot Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
427f8f9bfd
@ -1,24 +0,0 @@
|
|||||||
From 1c07b6c0a9dd62493b7bece0ff9dba1c1606fe32 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Wenlong Zhang <zhangwenlong@loongson.cn>
|
|
||||||
Date: Wed, 8 Feb 2023 15:47:15 +0800
|
|
||||||
Subject: [PATCH] disable sse for loongarch64
|
|
||||||
|
|
||||||
---
|
|
||||||
xgboost/make/config.mk | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/xgboost/make/config.mk b/xgboost/make/config.mk
|
|
||||||
index 6780eb1..ff2f21b 100644
|
|
||||||
--- a/xgboost/make/config.mk
|
|
||||||
+++ b/xgboost/make/config.mk
|
|
||||||
@@ -43,7 +43,7 @@ USE_AZURE = 0
|
|
||||||
# Settings for power and arm arch
|
|
||||||
#----------------------------
|
|
||||||
ARCH := $(shell uname -a)
|
|
||||||
-ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64 riscv64))
|
|
||||||
+ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64 riscv64 loongarch64))
|
|
||||||
USE_SSE=0
|
|
||||||
else
|
|
||||||
USE_SSE=1
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.90
|
Version: 0.90
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: Scalable, Portable and Distributed Gradient Boosting Library
|
Summary: Scalable, Portable and Distributed Gradient Boosting Library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/dmlc/xgboost
|
URL: https://github.com/dmlc/xgboost
|
||||||
@ -16,8 +16,7 @@ Requires: fontconfig fontpackages-filesystem
|
|||||||
Requires: libX11 libXau libXft libXrender libxcb
|
Requires: libX11 libXau libXft libXrender libxcb
|
||||||
Requires: %{_vendor}-rpm-config
|
Requires: %{_vendor}-rpm-config
|
||||||
Requires: python3-devel python3-rpm-generators tk
|
Requires: python3-devel python3-rpm-generators tk
|
||||||
Patch01: disable-sse-for-riscv.patch
|
Patch01: xgboost-add-sw64-mips64el-loongarch64-riscv64-support.patch
|
||||||
Patch02: disable-sse-for-loongarch64.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 \
|
||||||
@ -66,6 +65,9 @@ find %{buildroot} -name "*.py" -exec sed -i -r 's!/usr/bin/python(\s|$)!/usr/bin
|
|||||||
%{python3_sitearch}/%{pypi_name}-*.egg-info/
|
%{python3_sitearch}/%{pypi_name}-*.egg-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 27 2025 zhangshaoning <zhangshaoning@uniontech.com> - 0.90-10
|
||||||
|
- Add sw_64 loongarch64 riscv64 and mips64 support
|
||||||
|
|
||||||
* Wed Jun 07 2023 chenchen <chen_aka_jan@163.com> - 0.90-9
|
* Wed Jun 07 2023 chenchen <chen_aka_jan@163.com> - 0.90-9
|
||||||
- add PIE compiler option
|
- add PIE compiler option
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
--- a/xgboost/make/config.mk 2019-05-21 05:32:11.000000000 +0800
|
diff -Naur a/xgboost/make/config.mk b/xgboost/make/config.mk
|
||||||
+++ b/xgboost/make/config.mk 2022-01-21 17:26:44.096537200 +0800
|
--- a/xgboost/make/config.mk 2024-12-10 21:40:12.760506475 +0800
|
||||||
|
+++ b/xgboost/make/config.mk 2024-12-10 21:54:02.450601816 +0800
|
||||||
@@ -43,7 +43,7 @@
|
@@ -43,7 +43,7 @@
|
||||||
# Settings for power and arm arch
|
# Settings for power and arm arch
|
||||||
#----------------------------
|
#----------------------------
|
||||||
ARCH := $(shell uname -a)
|
ARCH := $(shell uname -a)
|
||||||
-ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64))
|
-ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64))
|
||||||
+ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64 riscv64))
|
+ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64 riscv64 loongarch64 sw_64 mips64))
|
||||||
USE_SSE=0
|
USE_SSE=0
|
||||||
else
|
else
|
||||||
USE_SSE=1
|
USE_SSE=1
|
||||||
Loading…
x
Reference in New Issue
Block a user