Skip to content

*drgev: relax eigenvalue consistency test - #1297

Merged
langou merged 1 commit into
Reference-LAPACK:masterfrom
jschueller:issue744
Jul 13, 2026
Merged

langou merged 1 commit into
Reference-LAPACK:masterfrom
jschueller:issue744

Conversation

@jschueller

Copy link
Copy Markdown
Collaborator

The ZGGEV/DGGEV/SGGEV/CGGEV test drivers compared eigenvalues from full (both L/R eigenvectors) and partial (eigenvalues only) computations using exact Fortran .NE. This is fragile because the QZ algorithm applies orthogonal transformations to a different scope of columns depending on the JOB parameter ('S' vs 'E'), causing 1-ULP differences in eigenvalues on some architectures.

Replace the binary ULPINV sentinel with a relative tolerance comparison: RESULT(5/6/7) now reports the maximum relative difference across ALPHA/ALPHAI/BETA, which is compared against the regular THRESH threshold. Fixes the spurious failure on Intel Xeon E5-2698 v4 and other platforms.

Closes #744

The ZGGEV/DGGEV/SGGEV/CGGEV test drivers compared eigenvalues
from full (both L/R eigenvectors) and partial (eigenvalues only)
computations using exact Fortran .NE. This is fragile because the
QZ algorithm applies orthogonal transformations to a different
scope of columns depending on the JOB parameter ('S' vs 'E'),
causing 1-ULP differences in eigenvalues on some architectures.

Replace the binary ULPINV sentinel with a relative tolerance
comparison: RESULT(5/6/7) now reports the maximum relative
difference across ALPHA/ALPHAI/BETA, which is compared against
the regular THRESH threshold.  Fixes the spurious failure on
Intel Xeon E5-2698 v4 and other platforms.

Closes Reference-LAPACK#744
@langou
langou merged commit 9e55d36 into Reference-LAPACK:master Jul 13, 2026
11 checks passed
ilayn added a commit to ilayn/semicolon-lapack that referenced this pull request Oct 25, 2026
Tests 5-7 required bit-identical eigenvalues from the calls with and
without eigenvectors. This fails on GitHub's Intel runners (OpenBLAS
Cooperlake kernels, 1-4 ULP differences) but passes on AMD runners (Zen
kernels). Compare the relative difference against THRESH instead.

Port of Reference-LAPACK 1f7b0760a
(Reference-LAPACK/lapack#1297).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One failure in the tests for the generalized non-symmetric eigenvalue problem ZGGEV

3 participants