Skip to content

Disable nagfor constant propagation for new tests - #1438

Merged
langou merged 1 commit into
masterfrom
fix-nagfor-builds
Oct 22, 2026
Merged

langou merged 1 commit into
masterfrom
fix-nagfor-builds

Conversation

@ACSimon33

Copy link
Copy Markdown
Collaborator

Description

#1384 and #1387 added error-exit tests that make an Inf with 1/RZERO ([sd]errst.f) and a NaN with SQRT(-RONE) ([sdcz]errbd.f). nagfor evaluates these expressions at compile time and rejects the result:

Error: TESTING/EIG/derrbd.f, line 288: Invalid operand for intrinsic SQRT
Fatal Error: TESTING/EIG/derrbd.f: Errors found during constant propagation
Error: TESTING/EIG/derrst.f, line 448: Floating-point divide by zero
Fatal Error: TESTING/EIG/derrst.f: Errors found during constant propagation

Fix

  • CMAKE/LAPACKTestHelpers.cmake: add errbd and errst to the file-name pattern in lapack_nag_disable_constant_propagation. That helper already builds the LIN tests that make NaNs (?errcxx, ?chksp, ?chkhp) with -Onopropagate under NAG, and it does nothing for other compilers.
  • TESTING/EIG/CMakeLists.txt: call the helper from add_eig_executable on both the default sources and the generated _64 sources.

@ACSimon33 ACSimon33 changed the title Disable nagfor constant propagation for new tests that create NaN via… Disable nagfor constant propagation for new tests Oct 20, 2026
@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.70%. Comparing base (73031af) to head (b5dbdf5).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1438   +/-   ##
=======================================
  Coverage   69.70%   69.70%           
=======================================
  Files        6200     6200           
  Lines      496985   496985           
  Branches    23426    23426           
=======================================
  Hits       346399   346399           
  Misses     150163   150163           
  Partials      423      423           
Components Coverage Δ
BLAS 99.70% <ø> (ø)
CBLAS 96.98% <ø> (ø)
LAPACK 82.63% <ø> (ø)
LAPACKE 2.15% <ø> (ø)
TMGLIB 55.69% <ø> (ø)
BLAS testing 88.74% <ø> (ø)
CBLAS testing 89.63% <ø> (ø)
LAPACK testing 82.24% <ø> (ø)
LAPACKE testing ∅ <ø> (∅)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73031af...b5dbdf5. Read the comment docs.

@langou
langou merged commit bc6dff0 into master Oct 22, 2026
44 checks passed
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.

2 participants