commit:     b3de37669233f702b54575c1c7d925abbfddca7b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 12 13:01:42 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 12 14:13:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3de3766

sci-libs/openblas: Backport support for Intel Lunar Lake

Closes: https://bugs.gentoo.org/964049
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../files/openblas-0.3.30-lunar-lake.patch         | 31 ++++++++++++++++++++++
 sci-libs/openblas/openblas-0.3.30-r3.ebuild        |  2 ++
 2 files changed, 33 insertions(+)

diff --git a/sci-libs/openblas/files/openblas-0.3.30-lunar-lake.patch 
b/sci-libs/openblas/files/openblas-0.3.30-lunar-lake.patch
new file mode 100644
index 000000000000..c1d48612af01
--- /dev/null
+++ b/sci-libs/openblas/files/openblas-0.3.30-lunar-lake.patch
@@ -0,0 +1,31 @@
+From 848e9e6ba7c7eed58070b243867e328402b85443 Mon Sep 17 00:00:00 2001
+From: Martin Kroeker <[email protected]>
+Date: Sun, 13 Jul 2025 20:34:19 +0200
+Subject: [PATCH] Add ID data for Intel Lunar Lake ("Core Ultra 200V series")
+
+---
+ cpuid_x86.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/cpuid_x86.c b/cpuid_x86.c
+index 1b09c7217c..8e1438e500 100644
+--- a/cpuid_x86.c
++++ b/cpuid_x86.c
+@@ -1567,6 +1567,7 @@ int get_cpuname(void){
+           case 10:
+           case 15:
+         case 14: // Alder Lake N
++        case 13: // Lunar Lake
+             if(support_avx2())
+               return CPUTYPE_HASWELL;
+           if(support_avx())
+@@ -2412,7 +2413,8 @@ int get_coretype(void){
+         case 7: // Raptor Lake
+           case 10:
+           case 15:
+-        case 14: // Alder Lake N        
++        case 14: // Alder Lake N
++        case 13: // Lunar Lake
+ #ifndef NO_AVX2
+         if(support_avx2())
+             return CORE_HASWELL;

diff --git a/sci-libs/openblas/openblas-0.3.30-r3.ebuild 
b/sci-libs/openblas/openblas-0.3.30-r3.ebuild
index e44e9124a042..2b621003bec0 100644
--- a/sci-libs/openblas/openblas-0.3.30-r3.ebuild
+++ b/sci-libs/openblas/openblas-0.3.30-r3.ebuild
@@ -32,6 +32,8 @@ PATCHES=(
        # https://github.com/OpenMathLib/OpenBLAS/issues/5387
        # https://github.com/OpenMathLib/OpenBLAS/pull/5391
        "${FILESDIR}/${P}-cmake_libdir.patch"
+       # https://github.com/OpenMathLib/OpenBLAS/pull/5378
+       "${FILESDIR}/${P}-lunar-lake.patch"
 )
 
 pkg_pretend() {

Reply via email to