Skip to content

Replace SCAL + AXPY with AXPBY in CS decomposition - #1457

Open
angsch wants to merge 1 commit into
Reference-LAPACK:masterfrom
angsch:axpby
Open

angsch wants to merge 1 commit into
Reference-LAPACK:masterfrom
angsch:axpby

Conversation

@angsch

@angsch angsch commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Description

A while ago, @grisuthedragon added AXPBY to the BLAS. This PR replaces SCAL followed AXPY with a single AXPBY call each in the CS decomposition routines.

Checklist

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

@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.72%. Comparing base (1d41940) to head (a082f63).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1457      +/-   ##
==========================================
- Coverage   69.72%   69.72%   -0.01%     
==========================================
  Files        6204     6204              
  Lines      497238   497206      -32     
  Branches    23430    23430              
==========================================
- Hits       346716   346684      -32     
  Misses     150096   150096              
  Partials      426      426              
Components Coverage Δ
BLAS 99.76% <ø> (ø)
CBLAS 96.98% <ø> (ø)
LAPACK 82.67% <100.00%> (-0.01%) ⬇️
LAPACKE 2.15% <ø> (ø)
TMGLIB 55.69% <ø> (ø)
BLAS testing 88.77% <ø> (ø)
CBLAS testing 89.63% <ø> (ø)
LAPACK testing 82.25% <ø> (ø)
LAPACKE testing ∅ <ø> (∅)
Files with missing lines Coverage Δ
SRC/cunbdb.f 89.93% <100.00%> (-0.49%) ⬇️
SRC/dorbdb.f 89.37% <100.00%> (-0.51%) ⬇️
SRC/sorbdb.f 89.37% <100.00%> (-0.51%) ⬇️
SRC/zunbdb.f 89.93% <100.00%> (-0.49%) ⬇️

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 1d41940...a082f63. Read the comment docs.

@ilayn

ilayn commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

@martin-frbg Another point for the discussion in #1449

@martin-frbg

Copy link
Copy Markdown
Collaborator

@martin-frbg Another point for the discussion in #1449

Yes - less of a concern though, as I believe (most) everybody else had it as an extension already (and Reference-BLAS didn't invent a new name for that) . Actually I think collecting all sensible (practically important) BLAS extensions including the strided/batched CBLAS would be one useful goal of a "new" BLAS - I just don't think it should be done without prior discussion (and probably not by adding to the current Reference-BLAS that is/was assumed to be feature-complete long ago, but in a BLAS2 or NEWBLAS that contains both the BLAS as we know it, and any future BLAS-line additions) . But we're off-topic here

@mohawk2

mohawk2 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

The failures are because ?AXPBY isn't in the Debian packaging of BLAS, so LAPACK can't find it.

@martin-frbg

Copy link
Copy Markdown
Collaborator

Oops. So Debian (at least that version) hasn't updated to 3.12.1 - and "sorry, you can't build LAPACK against a standard-conforming system BLAS". And apparently ?AXPBY wasn't mentioned in the release notes of 3.12.1 at all (GEMMTR was, but its code was lifted out of an existing LAPACK function that needed it).

@angsch

angsch commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author
  • The 3.12.1 release was on January 8, 2025.
  • The axpby PR was merged on September 19, 2025

So it is correct that axpby is not included in the release notes.

@martin-frbg

Copy link
Copy Markdown
Collaborator

Ah right, the PR implementing it was from August 2024 but only got merged in September 2025 - I was only looking at the file history in git

This branch has not been deployed

No deployments
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