Skip to content

sblas3: Exclude from double precision build#1310

Closed
jschueller wants to merge 1 commit into
Reference-LAPACK:masterfrom
jschueller:sblas3
Closed

sblas3: Exclude from double precision build#1310
jschueller wants to merge 1 commit into
Reference-LAPACK:masterfrom
jschueller:sblas3

Conversation

@jschueller

@jschueller jschueller commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

When only BUILD_DOUBLE is enabled (without BUILD_SINGLE), the single-precision Level 3 BLAS routines (sgemm, ssymm, ssyrk, strsm, etc.) are still compiled into the BLAS library. This appears to be a copy-paste error — SBLAS3 should not be in the BUILD_DOUBLE section. While the object files may be ignored at link time, they bloat the build and may cause unexpected symbol exports.

@ACSimon33

ACSimon33 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

I think we need the single precision BLAS routines because if we build LAPACK with only double precision, these single precision routines are also compiled (SRC/CMakeLists.txt:166):

set(DSLASRC
    sgetrf.f sgetrf2.f sgetrs.f sisnan.f slaisnan.f slaswp.f spotrf.f spotrf2.f
    spotrs.f)

Those are needed for the mixed precision routines, like dsposv.

We could build those only if both single and double precision are enabled. Or we introduce a new CMake variable BUILD_MIXED_PRECISION ...

@jschueller jschueller closed this Jun 16, 2026
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