Skip to content

Commit 13a29d1

Browse files
authored
Apply lapack-testing fix from Reference-LAPACK PR536
fixes changing back from a single OMP thread for error exit testing to the originally requested number of threads for computational tests
1 parent 352efdd commit 13a29d1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lapack-netlib/TESTING/EIG/cchkee.F

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ PROGRAM CCHKEE
18711871
CALL XLAENV( 9, 25 )
18721872
IF( TSTERR ) THEN
18731873
#if defined(_OPENMP)
1874-
N_THREADS = OMP_GET_NUM_THREADS()
1874+
N_THREADS = OMP_GET_MAX_THREADS()
18751875
CALL OMP_SET_NUM_THREADS(1)
18761876
#endif
18771877
CALL CERRST( 'CST', NOUT )
@@ -2338,7 +2338,7 @@ PROGRAM CCHKEE
23382338
CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
23392339
IF( TSTERR ) THEN
23402340
#if defined(_OPENMP)
2341-
N_THREADS = OMP_GET_NUM_THREADS()
2341+
N_THREADS = OMP_GET_MAX_THREADS()
23422342
CALL OMP_SET_NUM_THREADS(1)
23432343
#endif
23442344
CALL CERRST( 'CHB', NOUT )

lapack-netlib/TESTING/EIG/dchkee.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ PROGRAM DCHKEE
18761876
CALL XLAENV( 9, 25 )
18771877
IF( TSTERR ) THEN
18781878
#if defined(_OPENMP)
1879-
N_THREADS = OMP_GET_NUM_THREADS()
1879+
N_THREADS = OMP_GET_MAX_THREADS()
18801880
CALL OMP_SET_NUM_THREADS(1)
18811881
#endif
18821882
CALL DERRST( 'DST', NOUT )

lapack-netlib/TESTING/EIG/schkee.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ PROGRAM SCHKEE
18771877
CALL XLAENV( 9, 25 )
18781878
IF( TSTERR ) THEN
18791879
#if defined(_OPENMP)
1880-
N_THREADS = OMP_GET_NUM_THREADS()
1880+
N_THREADS = OMP_GET_MAX_THREADS()
18811881
CALL OMP_SET_NUM_THREADS(1)
18821882
#endif
18831883
CALL SERRST( 'SST', NOUT )

lapack-netlib/TESTING/EIG/zchkee.F

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ PROGRAM ZCHKEE
18711871
CALL XLAENV( 9, 25 )
18721872
IF( TSTERR ) THEN
18731873
#if defined(_OPENMP)
1874-
N_THREADS = OMP_GET_NUM_THREADS()
1874+
N_THREADS = OMP_GET_MAX_THREADS()
18751875
CALL OMP_SET_NUM_THREADS(1)
18761876
#endif
18771877
CALL ZERRST( 'ZST', NOUT )
@@ -2336,7 +2336,7 @@ PROGRAM ZCHKEE
23362336
CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
23372337
IF( TSTERR ) THEN
23382338
#if defined(_OPENMP)
2339-
N_THREADS = OMP_GET_NUM_THREADS()
2339+
N_THREADS = OMP_GET_MAX_THREADS()
23402340
CALL OMP_SET_NUM_THREADS(1)
23412341
#endif
23422342
CALL ZERRST( 'ZHB', NOUT )

0 commit comments

Comments
 (0)