openblas: bump to 0.3.31

Dropped patch: 0001-Make-GEMM3M-parameters-available-on-32bit-X86-GENERI.patch
Part of upstream: https://github.com/OpenMathLib/OpenBLAS/pull/5418

Changelog:
- Revert a 0.3.30 optimization that could cause race conditions
  and invalid results in GEMM
- Fix thread lockup with Python 3.9 and NumPy
- Fix deadlock in multithreaded code after fork()
- Add bfloat16 extensions (BGEMM, BGEMV) and basic FP16 infrastructure
- Add batch GEMM operations with strided variants
- Add multithreaded LAPACK SLAED3/DLAED3 for improved eigensolvers
- Add Apple M4 and Intel Lunar Lake support
- Add initial POWER11 architecture support
- Improve GEMM performance on A64FX and ARM processors

Full release notes:
https://github.com/OpenMathLib/OpenBLAS/releases/tag/v0.3.31

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-03-12 13:59:52 +02:00
committed by Hannu Nyman
parent 68f18ae0ef
commit 5f7107d5e0
3 changed files with 8 additions and 44 deletions

View File

@@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=OpenBLAS
PKG_VERSION:=0.3.30
PKG_RELEASE:=2
PKG_VERSION:=0.3.31
PKG_RELEASE:=1
PKG_SOURCE:=OpenBLAS-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/OpenMathLib/OpenBLAS/releases/download/v$(PKG_VERSION)/
PKG_HASH:=27342cff518646afb4c2b976d809102e368957974c250a25ccc965e53063c95d
PKG_HASH:=6dd2a63ac9d32643b7cc636eab57bf4e57d0ed1fff926dfbc5d3d97f2d2be3a6
PKG_LICENSE:=BSD-3-Clause
PKG_CPE_ID:=cpe:/a:openblas_project:openblas
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>

View File

@@ -1,41 +0,0 @@
From cb6c4392a562e9b04299949bcfbd1fd9e5872c68 Mon Sep 17 00:00:00 2001
From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Date: Wed, 10 Sep 2025 22:44:14 +0200
Subject: [PATCH] Make GEMM3M parameters available on 32bit X86-GENERIC
---
param.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--- a/param.h
+++ b/param.h
@@ -4046,8 +4046,6 @@ Until then, just keep it different than
#define CGEMM_DEFAULT_UNROLL_N 2
#define ZGEMM_DEFAULT_UNROLL_N 2
#define XGEMM_DEFAULT_UNROLL_N 1
-#define CGEMM3M_DEFAULT_UNROLL_N 2
-#define ZGEMM3M_DEFAULT_UNROLL_N 2
#ifdef ARCH_X86
#define SGEMM_DEFAULT_UNROLL_M 2
@@ -4063,8 +4061,11 @@ Until then, just keep it different than
#define CGEMM_DEFAULT_UNROLL_M 2
#define ZGEMM_DEFAULT_UNROLL_M 2
#define XGEMM_DEFAULT_UNROLL_M 1
+#endif
#define CGEMM3M_DEFAULT_UNROLL_M 2
#define ZGEMM3M_DEFAULT_UNROLL_M 2
+#define CGEMM3M_DEFAULT_UNROLL_N 2
+#define ZGEMM3M_DEFAULT_UNROLL_N 2
#define CGEMM3M_DEFAULT_P 448
#define ZGEMM3M_DEFAULT_P 224
#define XGEMM3M_DEFAULT_P 112
@@ -4075,7 +4076,7 @@ Until then, just keep it different than
#define ZGEMM3M_DEFAULT_R 12288
#define XGEMM3M_DEFAULT_R 12288
-#endif
+
#ifdef ARCH_MIPS
#define SGEMM_DEFAULT_P 128

5
libs/openblas/test.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
[ "$1" = "openblas" ] || exit 0
ls /usr/lib/libopenblas*.so* | grep -q "libopenblas"