Skip to content

XERBLA tweaks plus a tweak to GenerateSuffixedSource.cmake - #1411

Merged
langou merged 2 commits into
Reference-LAPACK:masterfrom
mohawk2:xerbla-tweaks
Sep 20, 2026
Merged

langou merged 2 commits into
Reference-LAPACK:masterfrom
mohawk2:xerbla-tweaks

Conversation

@mohawk2

@mohawk2 mohawk2 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Description

This superficially large PR contains a small improvement to GenerateSuffixedSource.cmake, and a patch to the various test files that override XERBLA so that the override calls into the overriding replacement routine. This is intended as part of #1407, greatly reducing the "diff noise" and making it comprehensible. That is currently breaking on flang; I can fix that, but that PR will become smaller and easier to reason about after this is applied.

@ACSimon33 As mentioned on that PR. I have omitted the commit on the PR that detects ENTRY because that is apparently unworkable on current flang.

Checklist

  • The documentation has been updated.
  • If the PR solves a specific issue, it is set to be closed on merge.

Comment thread TESTING/EIG/cchkst.f Outdated
@ACSimon33

Copy link
Copy Markdown
Collaborator

@mohawk2 Do we want to add the corresponding changes in the BLAS testing here as well?

@mohawk2

mohawk2 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor Author

@mohawk2 Do we want to add the corresponding changes in the BLAS testing here as well?

Those changes were small enough I felt they weren't a distraction.

@mohawk2

mohawk2 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor Author

@ACSimon33 Force-pushed. Please "resolve" if you feel your excellent point is now addressed :-)

@codecov

codecov Bot commented Sep 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 7.61905% with 194 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.36%. Comparing base (a6c6e74) to head (bb3f52a).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
TESTING/LIN/cqrt14.f 0.00% 3 Missing ⚠️
TESTING/LIN/cqrt15.f 0.00% 3 Missing ⚠️
TESTING/LIN/dqrt14.f 0.00% 3 Missing ⚠️
TESTING/LIN/dqrt15.f 0.00% 3 Missing ⚠️
TESTING/LIN/sqrt14.f 0.00% 3 Missing ⚠️
TESTING/LIN/sqrt15.f 0.00% 3 Missing ⚠️
TESTING/LIN/zqrt14.f 0.00% 3 Missing ⚠️
TESTING/LIN/zqrt15.f 0.00% 3 Missing ⚠️
TESTING/EIG/clarhs.f 0.00% 2 Missing ⚠️
TESTING/EIG/dlarhs.f 0.00% 2 Missing ⚠️
... and 156 more
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1411   +/-   ##
=======================================
  Coverage   69.36%   69.36%           
=======================================
  Files        6122     6122           
  Lines      486711   486717    +6     
  Branches    23268    23268           
=======================================
+ Hits       337584   337590    +6     
  Misses     148689   148689           
  Partials      438      438           
Components Coverage Δ
BLAS 97.94% <ø> (ø)
CBLAS 96.98% <ø> (ø)
LAPACK 82.38% <ø> (ø)
LAPACKE 2.17% <ø> (ø)
TMGLIB 55.69% <ø> (ø)
BLAS testing 88.33% <ø> (ø)
CBLAS testing 89.63% <ø> (ø)
LAPACK testing 82.21% <7.61%> (+<0.01%) ⬆️
LAPACKE testing ∅ <ø> (∅)
Files with missing lines Coverage Δ
TESTING/EIG/xerbla.f 56.25% <100.00%> (+10.09%) ⬆️
TESTING/LIN/cgeqls.f 100.00% <100.00%> (ø)
TESTING/LIN/cgerqs.f 100.00% <100.00%> (ø)
TESTING/LIN/dgeqls.f 100.00% <100.00%> (ø)
TESTING/LIN/dgerqs.f 100.00% <100.00%> (ø)
TESTING/LIN/sgeqls.f 100.00% <100.00%> (ø)
TESTING/LIN/sgerqs.f 100.00% <100.00%> (ø)
TESTING/LIN/xerbla.f 56.25% <100.00%> (+10.09%) ⬆️
TESTING/LIN/zgeqls.f 100.00% <100.00%> (ø)
TESTING/LIN/zgerqs.f 100.00% <100.00%> (ø)
... and 166 more

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 a6c6e74...bb3f52a. Read the comment docs.

Comment thread TESTING/LIN/xerbla.f Outdated
@mohawk2
mohawk2 force-pushed the xerbla-tweaks branch 2 times, most recently from 0f0e3e2 to 6eee65b Compare September 13, 2026 22:02
Comment thread CMAKE/GenerateSuffixedSource.cmake Outdated
@mohawk2

mohawk2 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

@ACSimon33 Thank you for all your help so far! If you have capacity, could you steer me on what else is needed here? There's not much I can do about the failing coverage check. If this were to be merged, it would greatly simplify review of #1407.

@mohawk2

mohawk2 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

@martin-frbg If you have capacity, could you look this over? Hopefully low-impact by itself.

@martin-frbg

Copy link
Copy Markdown
Collaborator

Sorry, I'm barely able to keep my own house in order (OpenBLAS) so I can only try to contribute quick and easy reviews here

@ACSimon33

ACSimon33 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

@mohawk2 I pushed some minor cosmetic changes: restore the previous ordering of external declarations (alphabetical, or sorted by precision), combine multiple EXTERNAL blocks into one, etc.)

@langou This is ready to merge otherwise.

@mohawk2

mohawk2 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

@ACSimon33 Thank you! By the way, I wondered: you have write access, and it's saying "At least 1 approving review is required by reviewers with write access." - doesn't that include you?

@mohawk2

mohawk2 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Also, what tool did you use for the reformatting? I'm assuming (hoping!) it wasn't by hand.

@ACSimon33

Copy link
Copy Markdown
Collaborator

@ACSimon33 Thank you! By the way, I wondered: you have write access, and it's saying "At least 1 approving review is required by reviewers with write access." - doesn't that include you?

I have write access to master, but I can't approve PRs (probably that's only maintainers?).

Also, what tool did you use for the reformatting? I'm assuming (hoping!) it wasn't by hand.

For stuff like that, I let my Claude Agent do it, and then I just check it afterward.

@mohawk2

mohawk2 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

@ACSimon33 Thank you! By the way, I wondered: you have write access, and it's saying "At least 1 approving review is required by reviewers with write access." - doesn't that include you?

I have write access to master, but I can't approve PRs (probably that's only maintainers?).

Surprising, but it is what it is. Now I just have to wait for e.g. @langou etc to have available capacity :-)

@langou

langou commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

I have write access to master, but I can't approve PRs (probably that's only maintainers?).

My understanding: The rule is that you cannot approve your own PRs. (I cannot approve my PRs.) All PRs require the approval of someone else. Then once approved, anyone with write acces can merge. I think you can approve PRs from other people. (Feel welcome to try.)

@langou
langou merged commit 5c75386 into Reference-LAPACK:master Sep 20, 2026
44 of 45 checks passed
@langou

langou commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Speaking of me not being able to approve my own PRs, if someone with WRITE access can review: #1328. That'd be great. This PR has been sitting for a while now and waiting either for an approval, or then, if no approval, we'll just close the PR.

@ACSimon33

Copy link
Copy Markdown
Collaborator

I have write access to master, but I can't approve PRs (probably that's only maintainers?).

My understanding: The rule is that you cannot approve your own PRs. (I cannot approve my PRs.) All PRs require the approval of someone else. Then once approved, anyone with write acces can merge. I think you can approve PRs from other people. (Feel welcome to try.)

Ok ... turns out I'm so used to Gitlab, I didn't know you how to approve PRs in GitHub. Thanks for letting me know that it should work 👍

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.

4 participants