SHA256
1
0
forked from pool/python-numpy

Accepting request 935927 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/935927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=107
This commit is contained in:
Dominique Leuenberger 2021-12-09 18:45:10 +00:00 committed by Git OBS Bridge
commit a1f81648e5
5 changed files with 68 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:423216d8afc5923b15df86037c6053bf030d15cc9e3224206ef868c2d63dd6dc
size 10264801

3
numpy-1.21.4.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e6c76a87633aa3fa16614b61ccedfae45b91df2767cf097aa9c933932a7ed1e0
size 10646392

View File

@ -0,0 +1,29 @@
From 2113cad8cbb4c4bc9469e0c94025bd7cbbe6f2d6 Mon Sep 17 00:00:00 2001
From: Thomas Green <tomgreen66@hotmail.com>
Date: Tue, 16 Nov 2021 22:36:18 +0000
Subject: [PATCH] Update cpu_asimdfhm.c
Updated `vfmlal_low_u32` and `vfmlslq_high_u32` to their `f16` new names. Described here:
https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg664008.html
Many of the intrinsics had names updated. Supposedly previous specifications were not published so old names not required.
---
numpy/distutils/checks/cpu_asimdfhm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/numpy/distutils/checks/cpu_asimdfhm.c b/numpy/distutils/checks/cpu_asimdfhm.c
index bb437aa4035..cb49751c4c2 100644
--- a/numpy/distutils/checks/cpu_asimdfhm.c
+++ b/numpy/distutils/checks/cpu_asimdfhm.c
@@ -10,8 +10,8 @@ int main(void)
float32x4_t vf = vdupq_n_f32(1.0f);
float32x2_t vlf = vdup_n_f32(1.0f);
- int ret = (int)vget_lane_f32(vfmlal_low_u32(vlf, vlhp, vlhp), 0);
- ret += (int)vgetq_lane_f32(vfmlslq_high_u32(vf, vhp, vhp), 0);
+ int ret = (int)vget_lane_f32(vfmlal_low_f16(vlf, vlhp, vlhp), 0);
+ ret += (int)vgetq_lane_f32(vfmlslq_high_f16(vf, vhp, vhp), 0);
return ret;
}

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Sun Dec 5 07:26:13 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Fix abbreviated references
-------------------------------------------------------------------
Fri Dec 3 10:54:01 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 1.21.4:
* #20278: BUG: Fix shadowed reference of dtype in type stub
* #20293: BUG: Fix headers for universal2 builds
* #20294: BUG: VOID_nonzero could sometimes mutate alignment flag
* #20295: BUG: Do not use nonzero fastpath on unaligned arrays
* #20296: BUG: Distutils patch to allow for 2 as a minor version (!)
* #20297: BUG, SIMD: Fix 64-bit/8-bit integer division by a scalar
* #20298: BUG, SIMD: Workaround broadcasting SIMD 64-bit integers on MSVC...
* #20300: REL: Prepare for the NumPy 1.21.4 release.
* #20302: TST: Fix a Arrayterator typing test failure
- Release to 1.21.3:
* #19745: ENH: Add dtype-support to 3 `generic/ndarray methods
* #19955: BUG: Resolve Divide by Zero on Apple silicon + test failures...
* #19958: MAINT: Mark type-check-only ufunc subclasses as ufunc aliases...
* #19994: BUG: np.tan(np.inf) test failure
* #20080: BUG: Correct incorrect advance in PCG with emulated int128
* #20081: BUG: Fix NaT handling in the PyArray_CompareFunc for datetime...
* #20082: DOC: Ensure that we add documentation also as to the dict for...
* #20106: BUG: core: result_type(0, np.timedelta64(4)) would seg. fault.
- Add patch to fix aarch64 support:
* numpy-fix-cpu_asimdfhm.patch
-------------------------------------------------------------------
Fri Nov 19 00:33:15 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -24,8 +24,8 @@
%endif
%global flavor @BUILD_FLAVOR@%{nil}
%define ver 1.21.2
%define _ver 1_21_2
%define ver 1.21.4
%define _ver 1_21_4
%define pname python-numpy
%define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_')
%if "%{flavor}" == ""
@ -84,8 +84,10 @@ Source99: python-numpy-rpmlintrc
Patch0: numpy-buildfix.patch
# PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure
Patch1: numpy-1.9.0-remove-__declspec.patch
# PATCH-FIX-UPSTREAM -- gh#numpy/numpy/commit/8871c7285fc097fd1bf713aa184cba7e2804f625
# PATCH-FIX-UPSTREAM -- gh#numpy/numpy#20347
Patch2: bpo-45167-fixes.patch
# PATCH-FIX-UPSTREAM -- gh#numpy/numpy#20388
Patch3: numpy-fix-cpu_asimdfhm.patch
BuildConflicts: gcc11 < 11.2
BuildRequires: %{python_module Cython >= 0.29.24}
BuildRequires: %{python_module base >= 3.7}
@ -178,7 +180,7 @@ sed -i '1s/^#!.*$//' numpy/{compat/setup,random/_examples/cython/setup,distutils
sed -i '1s/^#!.*$//' numpy/random/_examples/cython/*.pyx
# force cythonization
rm PKG-INFO
rm -f PKG-INFO
%build
%define _lto_cflags %{nil}