Commit Graph
671 Commits
Author SHA1 Message Date
langou eb4f2b1d7f Merge pull request #1228 from ndingle-arm/dmd-patch
Testing: initialize ISPEC=9 before running DMD tests
2026-04-15 06:48:15 -06:00
langou f6fb1114ab Merge pull request #1232 from nakatamaho/fix/testing-csd-input-count
TESTING: fix inconsistent entry count in csd.in
2026-04-14 09:28:24 -06:00
langou 14f3af6976 Merge pull request #1234 from nakatamaho/cleanup/csdts
cleanup: separate real and complex zero/one constants in {c,z}csdts
2026-04-13 07:32:58 -06:00
langou 1c493c4c5b Merge pull request #1233 from nakatamaho/cleanup/testing-lin-drvrf-constants
TESTING/LIN: use named constants in drvrf tests
2026-04-13 07:31:56 -06:00
NAKATA Maho 820ef1d794 cleanup: separate real and complex zero/one constants in {c,z}csdts
Replace REALONE/REALZERO and complex ZERO/ONE with
type-specific named constants in the CSD test routines:
ZERO/ONE for real scalars, and CZERO/CONE for complex values.

Update {C,Z}LASET, {C,Z}GEMM, and {C,Z}HERK call sites to use
the matching constant type, and replace literal imaginary zeros
in CMPLX/DCMPLX calls with the named real ZERO constant.

No functional change intended.
2026-04-11 23:02:17 +09:00
NAKATA Maho 25d74b31a7 TESTING/LIN: use named constants in drvrf tests
Replace hard-coded floating-point constants with existing named
  constants in the drvrf3 and drvrfp test drivers. This keeps the test
  initialization code consistent with surrounding LAPACK test style.
2026-04-11 20:29:54 +09:00
NAKATA Maho 8380fe2c40 TESTING: fix inconsistent entry count in csd.in
TESTING/csd.in declares that the number of values of M, P, and Q
is 10, but each of the three data lines actually contains 11
entries.

Update the count to 11 so the header matches the test input data.
This is a test-data consistency fix only.
2026-04-11 20:15:23 +09:00
NAKATA Maho dd5d8da796 fix build 2026-04-11 20:12:06 +09:00
NAKATA Maho 7f8ab7bfac cleanup: use named ONE constants in TESTING/EIG error-exit tests
Replace hard-coded 1./1.D0 literals with the named constant ONE
in several TESTING/EIG error-exit test routines.

Add missing ONE parameter declarations where needed so the test
setup code follows the surrounding named-constant style.
2026-04-11 14:19:18 +09:00
Nick Dingle 88e91a5f23 Testing: initialize ISPEC=9 before running DMD tests
The DMD test drivers use the testing ILAENV from TESTING/EIG, where
ISPEC=9 returns IPARMS(9). The drivers never initialized that entry,
so the xGESDD/xBDSDC divide-and-conquer cutoff SMLSIZ came from
undefined state.

This undefined test state can lead to invalid xLASD0 calls and a large
number of false failures. In this patch we initialize XLAENV(9,25) in
the s/c/d/z DMD test drivers so the tests start from a defined ILAENV
configuration.
2026-04-10 16:17:19 +01:00
NAKATA Maho ac82605ea9 refactor: rename ABS1 statement function to CABS1 for consistency
Several LAPACK, BLAS, and CBLAS source files defined a local statement
function named ABS1 for the complex 1-norm approximation:

    ABS1( X ) = ABS( REAL( X ) ) + ABS( AIMAG( X ) )
    ABS1( X ) = ABS( DBLE( X ) ) + ABS( DIMAG( X ) )

The majority of the codebase already uses CABS1 for this identical
purpose. This commit renames ABS1 to CABS1 in all remaining files
(definition line, declaration line, and all call sites within the
same file) to make the naming consistent across the repository.

A small number of fixed-form lines required continuation-line splits
to stay within the 72-column limit after the rename.

No numerical change. Statement functions are file-local in Fortran,
so there is no ABI or interface impact.

This is a preparatory cleanup before inlining these statement
functions (see issue #1200).
2026-03-28 14:46:42 +09:00
langou ac573b73bb Merge pull request #1187 from krystophny/fix/dgd-test-seed-fma-sensitivity
Fix DGS test seed to avoid FMA-sensitive ill-conditioned matrix
2026-03-25 12:24:30 -06:00
langou 92ca29dc64 Merge pull request #1212 from nakatamaho/fix/typo-fix-dmd 2026-03-25 04:11:13 -06:00
NAKATA Maho 33ec2a652c Fix typos in comment strings of [csdzd]chkdmd.f90
- intial/inital -> initial (K_traj loop and K_TRAJ==2 branch)
- eigencalues -> eigenvalues (GEDMD and GEDMDQ comment blocks)
- Rezidual -> Residual (WRITE output strings)
- rayleigh -> Rayleigh (proper noun, z/s/dchkdmd.f90)
- aigenvectors -> eigenvectors (s/dchkdmd.f90)
- localy -> locally (s/dchkdmd.f90 MKL note)
- whith -> with (s/dchkdmd.f90 MKL note)
- worksapce -> workspace (s/dchkdmd.f90 MKL note)
- ZGEDMDQ -> CGEDMDQ in comment blocks (cchkdmd.f90)
- ZGEDMD and ZGEDMDQ -> CGEDMD and CGEDMDQ in WRITE string (cchkdmd.f90)
2026-03-25 13:50:09 +09:00
langou 3aba0da0db Merge pull request #1211 from nakatamaho/fix/testparams 2026-03-24 20:55:26 -06:00
NAKATA Maho ca938b93df Enable disabled test options in LAPACK TESTING input files
Turn on test options that were left disabled in several TESTING input files.

Set "Put T to test the driver routines" to T in cgg.in, dgg.in, sgg.in,
and zgg.in so the generalized nonsymmetric eigenvalue driver tests are run.

Also set "Put T to test the error exits" to T in cbb.in, dbb.in, sbb.in,
and zbb.in to restore the corresponding error-exit checks.
2026-03-25 10:34:36 +09:00
NAKATA Maho 4486765327 Enable disabled test options in LAPACK TESTING input files
Turn on test options that were left disabled in several TESTING input files.

Set "Put T to test the driver routines" to T in cgg.in, dgg.in, sgg.in,
and zgg.in so the generalized nonsymmetric eigenvalue driver tests are run.

Also set "Put T to test the error exits" to T in cbb.in, dbb.in, sbb.in,
and zbb.in to restore the corresponding error-exit checks.
2026-03-25 10:24:35 +09:00
langou 93f72dd1f7 Merge branch 'master' into fix-f32-issue 2026-03-24 15:08:51 -06:00
langou a52f5fa69d Merge pull request #1207 from nakatamaho/fix/xpgvx-info-to-iinfo
fix(TESTING/EIG): pass IINFO instead of INFO to xSPGVX/xHPGVX in *drvsg2stg
2026-03-24 06:42:12 -06:00
NAKATA Maho 4e013d710c fix(eig): pass IINFO instead of INFO to xSPGVX/xHPGVX in *drvsg2stg
In cdrvsg2stg.f, ddrvsg2stg.f, sdrvsg2stg.f, and zdrvsg2stg.f, the
three RANGE='A'/'V'/'I' calls to CHPGVX, DSPGVX, SSPGVX, and ZHPGVX
were passing INFO as the output error argument instead of IINFO.

The error-check block immediately following each call tests IINFO.NE.0,
but IINFO was never updated by the routine, so errors were silently
ignored. Additionally, the block sets INFO = ABS(IINFO), which would
overwrite the value ZHPGVX/xSPGVX had written into INFO with the
stale value of IINFO.

All other driver calls in these files (ZHEGV, ZHEGVD, ZHEGVX, ZHPGV,
ZHPGVD, ZHBGV, ZHBGVD, ZHBGVX and their s/d/c equivalents) correctly
use IINFO. This commit brings the xSPGVX/xHPGVX calls into line with
the established pattern.

Affected routines (3 call sites each):
  CHPGVX in cdrvsg2stg.f
  DSPGVX in ddrvsg2stg.f
  SSPGVX in sdrvsg2stg.f
  ZHPGVX in zdrvsg2stg.f
2026-03-24 18:21:30 +09:00
NAKATA Maho 8b1494be8c Remove redundant DBLE()/REAL() type conversions in TESTING
In ddrvst.f, ddrvst2stg.f, and dlatm4.f, DBLE() was applied to
DOUBLE PRECISION array elements assigned to DOUBLE PRECISION
variables ― a no-op conversion. Similarly, in sdrvst.f,
sdrvst2stg.f, and slatm4.f, REAL() was applied to REAL array
elements assigned to REAL variables.

Remove these 168 redundant calls. Integer-to-real conversions
(e.g., DBLE(N), DBLE(KLEN-1), REAL(MAX(1,N))) are retained as
they are semantically necessary.
2026-03-24 11:37:16 +09:00
Nakata Maho fa23a2dc2d TESTING/LIN: declare ISEED as dimension(4) in clatsp/clatsy/zlatsp/zlatsy
The four TESTING/LIN routines currently document ISEED as an
INTEGER array of dimension (4), but their dummy argument
declarations use ISEED(*).

All four routines pass ISEED to CLARND or ZLARND, whose interfaces
require ISEED(4) and document that the fourth element must be odd.

Replace the assumed-size declaration with an explicit size of 4 in
both the commented argument declarations and the actual dummy
argument declarations, so that the source matches the documented
contract and the callee interfaces.

No functional change is intended.
2026-03-07 11:10:10 +09:00
J Berg 15f395c678 Fix truncating large workspace values 2026-02-27 13:31:21 -08:00
Christopher Albert aca0bc17e7 Fix DGS test seed to avoid FMA-sensitive ill-conditioned matrix
The default seed generates a matrix for N=6, JTYPE=21 that causes
DGGES to fail (INFO=9) when compiled without FMA instructions.

Use a custom seed that avoids this specific ill-conditioned case
while maintaining full test coverage.
2026-01-21 23:26:10 +01:00
Simon Maertens 3bd8b3124b Increase the size of TAU in tall-skinny QR error tests to 5 to fix reads from outside the array bounds. 2026-01-07 12:13:04 +01:00
Mark Gates ce817407f3 implicit none in TESTING 2025-08-26 23:27:58 -04:00
Mark Gates 62b1d4a032 implicit none in TESTING/LIN 2025-08-26 23:27:58 -04:00
Martin Köhler fa6a30b24e Fix format string in LAPACK tests to match two-digit minor versions 2025-07-29 10:34:29 +02:00
Dmitry Klyuchinsky ea84abe35f fix missed error message in test for eigenvalue driver routines *ed 2025-04-07 11:40:21 +07:00
Julie 59f136760f Update Source code to fix issue with links in Doxygen
Removed \htmlonly and \endhtmlonly (causing links to not work)
Increase DOT_GRAPH_MAX_NODES   to 200
2025-01-20 17:34:06 -08:00
Dmitry Klyuchinsky 5efeb474ec fix leading dimension for matrix B in test routine get52 2024-10-14 18:52:58 +07:00
langou e60ea22d90 Merge pull request #961 from ACSimon33/unintialized_variables
Fixed usage of uninitialized variables in TESTING
2024-06-21 02:17:39 -07:00
Simon Maertens 7113caa0ec Fixed commented out result initialization 2024-06-21 11:05:16 +02:00
Caroline Newcombe 7f30ba884d Fix infinite loop when an error occurs in tests ddrvst and sdrvst 2024-06-12 15:54:20 -05:00
Simon Maertens 7159cfb377 Fix Intel compiler flags which contain a space 2024-06-11 15:56:46 +01:00
Simon Maertens fe5c2529fe Set minimum CMake version for INDEX64_EXT_API to 3.18 due to the need of the Fortran_PREPROCESS target property 2024-06-05 14:06:32 +02:00
Maria Kraynyuk 21299d28eb Enable Index-64 extended API only for Intel and GNU compilers
Other compilers might not fully support preprocessing
2024-02-05 10:54:15 -08:00
Maria Kraynyuk ac2c5681bc MATGEN fix -Werror=conversion problems 2024-02-05 10:28:27 -08:00
Maria Kraynyuk ba11da8301 MATGEN long lines updated by script 2024-02-05 10:28:27 -08:00
Maria Kraynyuk 19d3a4e638 Add extended API with _64 suffix to MATGEN 2024-02-05 10:28:26 -08:00
Kyle Guinn 79a0785334 Normalize line endings
sed -i 's/\s\+$//' SRC/*dmd* TESTING/EIG/*dmd*
Plus manually stripping empty lines at EOF.
2024-01-16 22:43:58 -06:00
Kyle Guinn 464f532552 Remove executable permissions from source files 2024-01-06 18:20:41 -06:00
Simon Maertens 4bd18e2663 Refactor test result initialization and reporting
Consolidated the initialization of the RESULT array and the reporting of
test outcomes for the xCHKQP3RK tests. The initialization of the RESULT array to
zeros is now occurring immediately before the tests, ensuring a clean
slate without scattering across different test phases. Reporting
functionality has been centralized at the end of the 5 tests,
eliminating redundant blocks and improving maintainability.
2023-12-18 17:17:07 +00:00
Simon Maertens f6355dc769 Updated array index calculations in cchkqp3rk.f, dchkqp3rk.f,
schkqp3rk.f, and zchkqp3rk.f to use the leading dimension (LDA) instead
of the fixed size (M)
2023-12-15 17:54:40 +00:00
Simon Maertens 4a26507b5f Initialize test results to zero in LIN testing routines to preempt potential garbage data
influencing the test evaluations.
2023-12-15 17:36:33 +00:00
Dmitry Klyuchinsky 101800018d add DMD tests into CMakeLists 2023-12-12 12:42:50 +07:00
Dmitry Klyuchinsky cd7523d5b2 handle corner case of lwork in evr/evr_2stage and fix output format in chkxer 2023-12-04 16:35:36 +07:00
Dmitry Klyuchinsky 9dc24803a2 handle and document corner cases of lwork in lapack, align all precisions 2023-12-04 16:35:36 +07:00
Elizaveta Tokmasheva 7d15f830c2 handle and document corner cases of lwork in lapack, double complex precision 2023-12-04 16:35:35 +07:00
Elizaveta Tokmasheva e0d8afbed6 handle and document corner cases of lwork in lapack, single complex precision 2023-12-04 16:35:35 +07:00