-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from h-vetinari/openblas
backport patch for compatibility with OpenBLAS 0.3.26
- Loading branch information
Showing
4 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
recipe/patches/0001-MAINT-linalg-Adjust-lwork-liwork-changes-OpenBLAS-0..patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
From 1ab518624be781c63093d70fceef864a9050a60e Mon Sep 17 00:00:00 2001 | ||
From: Ilhan Polat <ilhanpolat@gmail.com> | ||
Date: Thu, 18 Jan 2024 14:47:42 +0100 | ||
Subject: [PATCH 1/3] MAINT:linalg:Adjust lwork/liwork changes OpenBLAS 0.3.26 | ||
|
||
See https://github.com/Reference-LAPACK/lapack/pull/942 | ||
--- | ||
scipy/linalg/flapack_sym_herm.pyf.src | 10 +++++----- | ||
1 file changed, 5 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/scipy/linalg/flapack_sym_herm.pyf.src b/scipy/linalg/flapack_sym_herm.pyf.src | ||
index f07dbaecbc..af04e0d8d8 100644 | ||
--- a/scipy/linalg/flapack_sym_herm.pyf.src | ||
+++ b/scipy/linalg/flapack_sym_herm.pyf.src | ||
@@ -762,8 +762,8 @@ subroutine <prefix2>syevr(compute_v,range,lower,n,a,lda,vl,vu,il,iu,abstol,w,z,m | ||
<ftype2> optional,intent(in) :: vl=0.0 | ||
<ftype2> optional,intent(in),check(vu>=vl),depend(vl) :: vu=1.0 | ||
<ftype2> intent(in) :: abstol=0.0 | ||
- integer optional,intent(in),depend(n),check(lwork>=max(1,26*n)||lwork==-1) :: lwork=max(26*n,1) | ||
- integer optional,intent(in),depend(n),check(liwork>=max(1,10*n)||liwork==-1):: liwork= max(1,10*n) | ||
+ integer optional,intent(in),depend(n),check(lwork>=(n <= 1 ? 1 : max(1,26*n))||lwork==-1) :: lwork=max(26*n,1) | ||
+ integer optional,intent(in),depend(n),check(liwork>=(n <= 1 ? 1 : max(1,10*n))||liwork==-1):: liwork= max(1,10*n) | ||
|
||
integer intent(hide),depend(a) :: n=shape(a,0) | ||
integer intent(hide),depend(n) :: lda=max(1,n) | ||
@@ -832,9 +832,9 @@ subroutine <prefix2c>heevr(compute_v,range,lower,n,a,lda,vl,vu,il,iu,abstol,w,z, | ||
<ftype2> optional,intent(in) :: vl=0.0 | ||
<ftype2> optional,intent(in),check(vu>vl),depend(vl) :: vu=1.0 | ||
<ftype2> intent(in) :: abstol=0.0 | ||
- integer optional,intent(in),depend(n),check(lwork>=max(2*n,1)||lwork==-1) :: lwork=max(2*n,1) | ||
- integer optional,intent(in),depend(n),check(lrwork>=max(24*n,1)||lrwork==-1) :: lrwork=max(24*n,1) | ||
- integer optional,intent(in),depend(n),check(liwork>=max(1,10*n)||liwork==-1):: liwork= max(1,10*n) | ||
+ integer optional,intent(in),depend(n),check(lwork>=(n <= 1 ? 1 : max(1,2*n))||lwork==-1) :: lwork=max(2*n,1) | ||
+ integer optional,intent(in),depend(n),check(lrwork>=(n <= 1 ? 1 : max(1,24*n))||lrwork==-1) :: lrwork=max(24*n,1) | ||
+ integer optional,intent(in),depend(n),check(liwork>=(n <= 1 ? 1 : max(1,10*n))||liwork==-1):: liwork= max(1,10*n) | ||
|
||
integer intent(hide),depend(a) :: n=shape(a,0) | ||
integer intent(hide),depend(n) :: lda=max(1,n) |
4 changes: 2 additions & 2 deletions
4
...-for-TestInvgauss-and-TestLaplace-1.patch → ...-for-TestInvgauss-and-TestLaplace-1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...h-escape-sequences-in-__config__.py.patch → ...h-escape-sequences-in-__config__.py.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters