Skip to content

stedc: Return workspace via DROUNDUP_LWORK in DSTEDC/ZSTEDC - #1455

Merged
jschueller merged 1 commit into
Reference-LAPACK:masterfrom
jschueller:issue1312-src7
Oct 28, 2026
Merged

jschueller merged 1 commit into
Reference-LAPACK:masterfrom
jschueller:issue1312-src7

Conversation

@jschueller

Copy link
Copy Markdown
Collaborator

WORK(1) = LWMIN converts a large INTEGER to DOUBLE PRECISION, which rounds down above 2**53 in ILP64 builds (e.g. COMPZ='I', N=100000000 needs 10000000400000001 but returns ...000). Use DROUNDUP_LWORK like SSTEDC/CSTEDC already do with SROUNDUP_LWORK, guaranteeing the query never under-reports.

Part of #1312

WORK(1) = LWMIN converts a large INTEGER to DOUBLE PRECISION,
which rounds down above 2**53 in ILP64 builds (e.g. COMPZ='I',
N=100000000 needs 10000000400000001 but returns ...000).
Use DROUNDUP_LWORK like SSTEDC/CSTEDC already do with
SROUNDUP_LWORK, guaranteeing the query never under-reports.

Part of Reference-LAPACK#1312
@jschueller jschueller mentioned this pull request Oct 26, 2026
@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1455   +/-   ##
=======================================
  Coverage   69.72%   69.72%           
=======================================
  Files        6204     6204           
  Lines      497194   497194           
  Branches    23430    23430           
=======================================
  Hits       346652   346652           
  Misses     150116   150116           
  Partials      426      426           
Components Coverage Δ
BLAS 99.76% <ø> (ø)
CBLAS 96.98% <ø> (ø)
LAPACK 82.66% <100.00%> (ø)
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/dstedc.f 39.66% <100.00%> (ø)
SRC/zstedc.f 80.00% <100.00%> (ø)

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 6a1a8b8...eede387. Read the comment docs.

@mohawk2 mohawk2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I concur that this change makes LWMIN be stored after being DROUNDUP-ed. I've also checked that [cs]stedc's equivalents are already SROUNDUP-ed.

@jschueller
jschueller merged commit 1d41940 into Reference-LAPACK:master Oct 28, 2026
47 checks passed
@jschueller
jschueller deleted the issue1312-src7 branch October 28, 2026 06:24
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.

3 participants