Repository navigation
cuda: link the static LAPACK library on CUDA 12 and later - #3742
Merged
Merged
Conversation
With AF_WITH_STATIC_CUDA_NUMERIC_LIBS=ON, the CUDA 12 branch found libcusolver_lapack_static.a but the link step still used the CUDA 11 variable, CUDA_lapack_static_LIBRARY, which that branch never sets. libcusolver_static.a pulls cudsh_dlasq1_ from that library, so libafcuda.so carried an unresolved symbol and no executable could link against it: libafcuda.so: undefined reference to `cudsh_dlasq1_' Both branches now set one variable that the link step uses. Checked on Rocky Linux 8 with CUDA 13.4.3. Fixes #3349
Contributor
|
Tks @melonakos |
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.
With
AF_WITH_STATIC_CUDA_NUMERIC_LIBS=ONon CUDA 12 or later,libafcuda.sois left with an unresolved symbol and nothing can link against it:The CUDA 12 branch finds
libcusolver_lapack_static.abut the link step still reads the CUDA 11 variable, which that branch never sets. Both branches now set one variable that the link step uses. Checked on Rocky Linux 8 with CUDA 13.4.3: the unpatched library has one unresolved LAPACK symbol, the patched one has none. Based on v3.10; master carries the same lines.Fixes #3349