diff --git a/disable-sse-for-loongarch64.patch b/disable-sse-for-loongarch64.patch deleted file mode 100644 index 827e21c07aa0fbd0f2ea9430d80f9b72ea9b5407..0000000000000000000000000000000000000000 --- a/disable-sse-for-loongarch64.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 1c07b6c0a9dd62493b7bece0ff9dba1c1606fe32 Mon Sep 17 00:00:00 2001 -From: Wenlong Zhang -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 diff --git a/python-xgboost.spec b/python-xgboost.spec index 48f652eeb22b1ac5e839a5ef60d76eb96733ce24..a09c9fbbc7f8e904fa1b5454caf12dc15d6cc461 100644 --- a/python-xgboost.spec +++ b/python-xgboost.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 0.90 -Release: 9 +Release: 10 Summary: Scalable, Portable and Distributed Gradient Boosting Library License: Apache-2.0 URL: https://github.com/dmlc/xgboost @@ -16,8 +16,7 @@ Requires: fontconfig fontpackages-filesystem Requires: libX11 libXau libXft libXrender libxcb Requires: %{_vendor}-rpm-config Requires: python3-devel python3-rpm-generators tk -Patch01: disable-sse-for-riscv.patch -Patch02: disable-sse-for-loongarch64.patch +Patch01: xgboost-add-sw64-mips64el-loongarch64-riscv64-support.patch %global _description \ 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/ %changelog +* Thu Feb 27 2025 zhangshaoning - 0.90-10 +- Add sw_64 loongarch64 riscv64 and mips64 support + * Wed Jun 07 2023 chenchen - 0.90-9 - add PIE compiler option diff --git a/disable-sse-for-riscv.patch b/xgboost-add-sw64-mips64el-loongarch64-riscv64-support.patch similarity index 54% rename from disable-sse-for-riscv.patch rename to xgboost-add-sw64-mips64el-loongarch64-riscv64-support.patch index a497c58ca234feec3dc68123806ab340eb3dc994..9fb6201e58711eaee5329456c90facf5e2b01809 100644 --- a/disable-sse-for-riscv.patch +++ b/xgboost-add-sw64-mips64el-loongarch64-riscv64-support.patch @@ -1,11 +1,12 @@ ---- 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 +diff -Naur a/xgboost/make/config.mk b/xgboost/make/config.mk +--- 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 @@ # 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)) ++ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64 riscv64 loongarch64 sw_64 mips64)) USE_SSE=0 else USE_SSE=1