docs: clarify BLAS library naming for CMake-built LAPACK - #11
Open
Shreyas911 wants to merge 1 commit into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a note to the README explaining that a standard CMake build of Reference LAPACK produces
libblas.a(andliblapack.a), notlibrefblas.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_LIBwith 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+makemake BLAS_LIB="-L$LAPACKDIR -lblas"meson setup builddir -Dlibblas=blas -Dlibblas_path=$LAPACKDIR && meson compile -C builddir