Skip to content

docs: clarify BLAS library naming for CMake-built LAPACK - #11

Open
Shreyas911 wants to merge 1 commit into
Reference-LAPACK:mainfrom
Shreyas911:main
Open

docs: clarify BLAS library naming for CMake-built LAPACK#11
Shreyas911 wants to merge 1 commit into
Reference-LAPACK:mainfrom
Shreyas911:main

Conversation

@Shreyas911

Copy link
Copy Markdown

What

Adds a note to the README explaining that a standard CMake build of Reference LAPACK produces libblas.a (and liblapack.a), not librefblas.a — which both the Make and Meson build paths in this repo expect by default (-lrefblas / -Dlibblas=refblas). Following the README as-written with such a LAPACK build fails at link time with no indication of why.

Fix

Documents two options for the Make path (symlink, or override BLAS_LIB with the full linker flags) and the equivalent Meson option (-Dlibblas=blas).

Testing

Verified all three paths build successfully against a CMake-built
Reference LAPACK:

  • ln -s libblas.a librefblas.a + make
  • make BLAS_LIB="-L$LAPACKDIR -lblas"
  • meson setup builddir -Dlibblas=blas -Dlibblas_path=$LAPACKDIR && meson compile -C builddir

Reference LAPACK's CMake build produces libblas.a/liblapack.a rather
than librefblas.a, which the Make and Meson builds expect by default.
Document the symlink/override workarounds.

Tested (Make path only; Meson not installed locally):
- Make + symlink (ln -s libblas.a librefblas.a): build succeeds
- Make + BLAS_LIB override (BLAS_LIB="-L$LAPACKDIR -lblas"): build succeeds
- Meson + -Dlibblas=blas -Dlibblas_path=$LAPACKDIR: build succeeds
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.

1 participant