diff --git a/0001-loongarch64-architecture-does-not-use-sse.patch b/0001-loongarch64-architecture-does-not-use-sse.patch new file mode 100644 index 0000000000000000000000000000000000000000..eeadd19f0be87ba72be712cf77aed46822d192a9 --- /dev/null +++ b/0001-loongarch64-architecture-does-not-use-sse.patch @@ -0,0 +1,25 @@ +From 89c229fed72bf634b0a32c9f6678db334f5f46ed Mon Sep 17 00:00:00 2001 +From: doupengda +Date: Mon, 29 Jan 2024 10:48:01 +0800 +Subject: [PATCH] loongarch64 architecture does not use sse + +--- + 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 b6c05308ceaf42c7413496b0d6689ce7c4d960ab..db5537ab6f4a7e32c28a91139f39fb671791e92c 100644 --- a/python-xgboost.spec +++ b/python-xgboost.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 0.90 -Release: 5 +Release: 6 Summary: Scalable, Portable and Distributed Gradient Boosting Library License: Apache-2 URL: https://github.com/dmlc/xgboost @@ -18,6 +18,7 @@ Requires: libX11 libXau libXft libXrender libxcb Requires: %{vendor}-rpm-config Requires: python3-devel python3-rpm-generators tk Patch01: disable-sse-for-riscv.patch +Patch02: 0001-loongarch64-architecture-does-not-use-sse.patch %global _description \ XGBoost is an optimized distributed gradient boosting library designed to be \ @@ -65,6 +66,9 @@ find %{buildroot} -name "*.py" -exec sed -i -r 's!/usr/bin/python(\s|$)!/usr/bin %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog +* Mon Jan 29 2024 doupengda - 0.90-6 +- loongarch64 architecture does not use sse + * Thu Nov 17 2022 caodongxia - 0.90-5 - Replace openEuler with vendor macro