Skip to content

Commit c2c034b

Browse files
math/blas, math/cblas, math/lapack, math/lapacke: upgrade to 3.12.1
Release notes at https://github.com/Reference-LAPACK/lapack/releases/tag/v3.12.1 Remark: many patches are needed, see Reference-LAPACK/lapack#1093
1 parent f23a3db commit c2c034b

15 files changed

+267
-19
lines changed

math/lapack/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PORTNAME?= lapack
2-
PORTVERSION= 3.12.0
2+
PORTVERSION= 3.12.1
33
.if !(defined(BLAS_SLAVEPORT) || defined(CBLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT) || defined(LAPACKE_SLAVEPORT))
4-
PORTREVISION= 2
4+
PORTREVISION= 0
55
.else
6-
PORTREVISION?= 1 # Never remove this line, keep PORTREVISION?=0 in case.
6+
PORTREVISION?= 0 # Never remove this line, keep PORTREVISION?=0 in case.
77
.endif
88
CATEGORIES= math
99
MASTER_SITES= https://github.com/Reference-LAPACK/lapack/archive/refs/tags/:src \
@@ -30,7 +30,8 @@ CPE_VENDOR= lapack_project
3030
CPE_PRODUCT= lapack
3131

3232
SVERSION= ${PORTVERSION:R:R}
33-
PLIST_SUB= SVERSION="${SVERSION}" VER=${PORTVERSION}
33+
LIBVERSION= ${PORTVERSION:C/1$/0/}
34+
PLIST_SUB= SVERSION="${SVERSION}" VER=${LIBVERSION}
3435

3536
.include <bsd.port.options.mk>
3637

math/lapack/distinfo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
TIMESTAMP = 1703076157
2-
SHA256 (lapack-3.12.0/v3.12.0.tar.gz) = eac9570f8e0ad6f30ce4b963f4f033f0f643e7c3912fc9ee6cd99120675ad48b
3-
SIZE (lapack-3.12.0/v3.12.0.tar.gz) = 7933607
4-
SHA256 (lapack-3.12.0/manpages.tgz) = 342db80461de2c0f10848a3f338ee6e7511b417f459600a7e75ad4dc4bf05f5a
5-
SIZE (lapack-3.12.0/manpages.tgz) = 5396817
1+
TIMESTAMP = 1737190889
2+
SHA256 (lapack-3.12.1/v3.12.1.tar.gz) = 2ca6407a001a474d4d4d35f3a61550156050c48016d949f0da0529c0aa052422
3+
SIZE (lapack-3.12.1/v3.12.1.tar.gz) = 8067087
4+
SHA256 (lapack-3.12.1/manpages.tgz) = f5991ee1ab5402ba6fa70bed7a292ea3e4507a0cc78f575d9eff72d561597cb8
5+
SIZE (lapack-3.12.1/manpages.tgz) = 4700814

math/lapack/files/patch-CMakeLists.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--- SRC/DEPRECATED/cgelqs.f.orig 2024-12-03 11:39:11 UTC
2+
+++ SRC/DEPRECATED/cgelqs.f
3+
@@ -15,8 +15,9 @@
4+
* INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS
5+
* ..
6+
* .. Array Arguments ..
7+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1094
8+
* COMPLEX A( LDA, * ), B( LDB, * ), TAU( * ),
9+
-* $ WORK( LWORK )
10+
+* $ WORK( * )
11+
* ..
12+
*
13+
*
14+
@@ -127,8 +128,9 @@
15+
INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS
16+
* ..
17+
* .. Array Arguments ..
18+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1094
19+
COMPLEX A( LDA, * ), B( LDB, * ), TAU( * ),
20+
- $ WORK( LWORK )
21+
+ $ WORK( * )
22+
* ..
23+
*
24+
* =====================================================================
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- SRC/DEPRECATED/cgelsx.f.orig 2024-12-03 11:39:11 UTC
2+
+++ SRC/DEPRECATED/cgelsx.f
3+
@@ -364,8 +364,8 @@
4+
*
5+
* B(1:M,1:NRHS) := Q**H * B(1:M,1:NRHS)
6+
*
7+
- CALL CUNM2R( 'Left', 'Conjugate transpose', M, NRHS, MN, A, LDA,
8+
- $ WORK( 1 ), B, LDB, WORK( 2*MN+1 ), INFO )
9+
+ CALL CUNM2R( 'Left', 'Conjugate transpose', M, NRHS, MN, A,
10+
+ $ LDA, WORK( 1 ), B, LDB, WORK( 2*MN+1 ), INFO )
11+
*
12+
* workspace NRHS
13+
*
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--- SRC/DEPRECATED/cgeqrs.f.orig 2024-12-03 11:39:11 UTC
2+
+++ SRC/DEPRECATED/cgeqrs.f
3+
@@ -15,8 +15,9 @@
4+
* INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS
5+
* ..
6+
* .. Array Arguments ..
7+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1094
8+
* COMPLEX A( LDA, * ), B( LDB, * ), TAU( * ),
9+
-* $ WORK( LWORK )
10+
+* $ WORK( * )
11+
* ..
12+
*
13+
*
14+
@@ -127,8 +128,9 @@
15+
INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS
16+
* ..
17+
* .. Array Arguments ..
18+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1094
19+
COMPLEX A( LDA, * ), B( LDB, * ), TAU( * ),
20+
- $ WORK( LWORK )
21+
+ $ WORK( * )
22+
* ..
23+
*
24+
* =====================================================================
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--- SRC/DEPRECATED/dgelqs.f.orig 2024-12-03 11:39:11 UTC
2+
+++ SRC/DEPRECATED/dgelqs.f
3+
@@ -15,8 +15,9 @@
4+
* INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS
5+
* ..
6+
* .. Array Arguments ..
7+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1094
8+
* DOUBLE PRECISION A( LDA, * ), B( LDB, * ), TAU( * ),
9+
-* $ WORK( LWORK )
10+
+* $ WORK( * )
11+
* ..
12+
*
13+
*
14+
@@ -127,8 +128,9 @@
15+
INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS
16+
* ..
17+
* .. Array Arguments ..
18+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1094
19+
DOUBLE PRECISION A( LDA, * ), B( LDB, * ), TAU( * ),
20+
- $ WORK( LWORK )
21+
+ $ WORK( * )
22+
* ..
23+
*
24+
* =====================================================================
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- SRC/DEPRECATED/dgeqpf.f.orig 2024-12-03 11:39:11 UTC
2+
+++ SRC/DEPRECATED/dgeqpf.f
3+
@@ -218,8 +218,8 @@
4+
MA = MIN( ITEMP, M )
5+
CALL DGEQR2( M, MA, A, LDA, TAU, WORK, INFO )
6+
IF( MA.LT.N ) THEN
7+
- CALL DORM2R( 'Left', 'Transpose', M, N-MA, MA, A, LDA, TAU,
8+
- $ A( 1, MA+1 ), LDA, WORK, INFO )
9+
+ CALL DORM2R( 'Left', 'Transpose', M, N-MA, MA, A, LDA,
10+
+ $ TAU, A( 1, MA+1 ), LDA, WORK, INFO )
11+
END IF
12+
END IF
13+
*
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--- SRC/DEPRECATED/dgeqrs.f.orig 2024-12-03 11:39:11 UTC
2+
+++ SRC/DEPRECATED/dgeqrs.f
3+
@@ -15,8 +15,9 @@
4+
* INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS
5+
* ..
6+
* .. Array Arguments ..
7+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1094
8+
* DOUBLE PRECISION A( LDA, * ), B( LDB, * ), TAU( * ),
9+
-* $ WORK( LWORK )
10+
+* $ WORK( * )
11+
* ..
12+
*
13+
*
14+
@@ -127,8 +128,9 @@
15+
INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS
16+
* ..
17+
* .. Array Arguments ..
18+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1094
19+
DOUBLE PRECISION A( LDA, * ), B( LDB, * ), TAU( * ),
20+
- $ WORK( LWORK )
21+
+ $ WORK( * )
22+
* ..
23+
*
24+
* =====================================================================
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
--- SRC/DEPRECATED/dlahrd.f.orig 2024-12-03 11:39:11 UTC
2+
+++ SRC/DEPRECATED/dlahrd.f
3+
@@ -231,8 +231,9 @@
4+
*
5+
* w := T**T *w
6+
*
7+
- CALL DTRMV( 'Upper', 'Transpose', 'Non-unit', I-1, T, LDT,
8+
- $ T( 1, NB ), 1 )
9+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1093
10+
+ CALL DTRMV( 'Upper', 'Transpose', 'Non-unit', I-1,
11+
+ $ T, LDT, T( 1, NB ), 1 )
12+
*
13+
* b2 := b2 - V2*w
14+
*
15+
@@ -270,8 +271,9 @@
16+
* Compute T(1:i,i)
17+
*
18+
CALL DSCAL( I-1, -TAU( I ), T( 1, I ), 1 )
19+
- CALL DTRMV( 'Upper', 'No transpose', 'Non-unit', I-1, T, LDT,
20+
- $ T( 1, I ), 1 )
21+
+* Patch from https://github.com/Reference-LAPACK/lapack/pull/1093
22+
+ CALL DTRMV( 'Upper', 'No transpose', 'Non-unit', I-1,
23+
+ $ T, LDT, T( 1, I ), 1 )
24+
T( I, I ) = TAU( I )
25+
*
26+
10 CONTINUE

0 commit comments

Comments
 (0)