Skip to content

Commit ace65c8

Browse files
committed
openblas: backport version of fix from upstream
From this PR: OpenMathLib/OpenBLAS#5442 Signed-off-by: Alexandru Ardelean <[email protected]>
1 parent 507c5c9 commit ace65c8

File tree

3 files changed

+47
-42
lines changed

3 files changed

+47
-42
lines changed

libs/openblas/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
66

77
PKG_NAME:=OpenBLAS
88
PKG_VERSION:=0.3.30
9-
PKG_RELEASE:=1
9+
PKG_RELEASE:=2
1010

1111
PKG_SOURCE:=OpenBLAS-$(PKG_VERSION).tar.gz
1212
PKG_SOURCE_URL:=https://github.com/OpenMathLib/OpenBLAS/releases/download/v$(PKG_VERSION)/
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
From cb6c4392a562e9b04299949bcfbd1fd9e5872c68 Mon Sep 17 00:00:00 2001
2+
From: Martin Kroeker <[email protected]>
3+
Date: Wed, 10 Sep 2025 22:44:14 +0200
4+
Subject: [PATCH] Make GEMM3M parameters available on 32bit X86-GENERIC
5+
6+
---
7+
param.h | 7 ++++---
8+
1 file changed, 4 insertions(+), 3 deletions(-)
9+
10+
diff --git a/param.h b/param.h
11+
index d0ee246e8..09a9620a5 100644
12+
--- a/param.h
13+
+++ b/param.h
14+
@@ -4141,8 +4141,6 @@ Until then, just keep it different than DGEMM_DEFAULT_UNROLL_N to keep copy rout
15+
#define CGEMM_DEFAULT_UNROLL_N 2
16+
#define ZGEMM_DEFAULT_UNROLL_N 2
17+
#define XGEMM_DEFAULT_UNROLL_N 1
18+
-#define CGEMM3M_DEFAULT_UNROLL_N 2
19+
-#define ZGEMM3M_DEFAULT_UNROLL_N 2
20+
21+
#ifdef ARCH_X86
22+
#define SGEMM_DEFAULT_UNROLL_M 2
23+
@@ -4158,8 +4156,11 @@ Until then, just keep it different than DGEMM_DEFAULT_UNROLL_N to keep copy rout
24+
#define CGEMM_DEFAULT_UNROLL_M 2
25+
#define ZGEMM_DEFAULT_UNROLL_M 2
26+
#define XGEMM_DEFAULT_UNROLL_M 1
27+
+#endif
28+
#define CGEMM3M_DEFAULT_UNROLL_M 2
29+
#define ZGEMM3M_DEFAULT_UNROLL_M 2
30+
+#define CGEMM3M_DEFAULT_UNROLL_N 2
31+
+#define ZGEMM3M_DEFAULT_UNROLL_N 2
32+
#define CGEMM3M_DEFAULT_P 448
33+
#define ZGEMM3M_DEFAULT_P 224
34+
#define XGEMM3M_DEFAULT_P 112
35+
@@ -4170,7 +4171,7 @@ Until then, just keep it different than DGEMM_DEFAULT_UNROLL_N to keep copy rout
36+
#define ZGEMM3M_DEFAULT_R 12288
37+
#define XGEMM3M_DEFAULT_R 12288
38+
39+
-#endif
40+
+
41+
42+
#ifdef ARCH_MIPS
43+
#define SGEMM_DEFAULT_P 128
44+
--
45+
2.43.0
46+

libs/openblas/patches/0001-fix-x86-defaults.patch

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)