Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foldseek-10 :: missing libcublasLt_static at link time ? #429

Open
EricDeveaud opened this issue Feb 20, 2025 · 0 comments
Open

foldseek-10 :: missing libcublasLt_static at link time ? #429

EricDeveaud opened this issue Feb 20, 2025 · 0 comments

Comments

@EricDeveaud
Copy link

Hello trying to build forldseek from fresh clone (commit 6cfb880)

with gcc/9.2.0 cuda/12.8 zstd/1.4.4

cmake confiuration:

cmake -DCMAKE_INSTALL_PREFIX=/opt/gensoft/exe/foldseek/10-941cd33 \
      -DCMAKE_VERBOSE_MAKEFILE=ON  -DHAVE_AVX2=ON \
      -DHAVE_AVX2=ON \
      -DUSE_SYSTEM_ZSTD=ON \
      -DVERSION_OVERRIDE=10-941cd33 \
      -DCMAKE_BUILD_TYPE=Release \
      -DENABLE_CUDA=1 \
      -DCUDAToolkit_ROOT=$CUDA_ROOT \
      -DHAVE_MPI=OFF \
      /opt/gensoft/src/foldseek/foldseek-10-941cd33

link step fail with following error message

/opt/gensoft/exe/gcc/12.3.0/bin/g++ -O3 -DNDEBUG -L/opt/gensoft/exe/cuda/12.8/lib64/stubs -L
/opt/gensoft/exe/cuda/12.8/lib64 -L/opt/gensoft/exe/cuda/12.8/lib -L/opt/gensoft/lib/zstd/1.
4.4/lib -L/opt/gensoft/exe/gcc/12.3.0/lib64 -L/opt/gensoft/exe/gcc/12.3.0/lib    -fsigned-ch
ar  -mavx2 -mcx16 -Wa,-q -std=c++1y -pedantic -Wall -Wextra -Wdisabled-optimization -fno-exc
eptions -fopenmp CMakeFiles/foldseek.dir/foldseek.cpp.o -o foldseek  libfoldseek-framework.a
 version/libversion.a strucclustutils/libgemmiwrapper.a ../lib/foldcomp/libfoldcomp.a ../lib
/3di/lib3di.a ../lib/pulchra/libpulchra.a ../lib/kerasify/libkerasify.a ../lib/tmalign/libtm
align.a ../lib/mmseqs/src/libmmseqs-framework.a version/libversion.a -latomic ../lib/mmseqs/
lib/tinyexpr/libtinyexpr.a -lm -Wl,-Bstatic -lzstd ../lib/mmseqs/lib/microtar/libmicrotar.a
../lib/mmseqs/lib/tantan/libtantan.a -Wl,-Bdynamic -lz -lbz2 -lgomp -lpthread ../lib/mmseqs/
lib/libmarv/src/libmarv.a ../libblock_aligner_c.a -lutil -lrt -lpthread -lc libprostt5.a ../
lib/prostt5/src/libllama.a ../lib/prostt5/ggml/src/libggml.a ../lib/prostt5/ggml/src/libggml
-cpu.a ../lib/prostt5/ggml/src/ggml-cuda/libggml-cuda.a ../lib/prostt5/ggml/src/libggml-base
.a -lm -Wl,-Bstatic -lcudart_static -Wl,-Bdynamic -ldl -lrt -pthread -Wl,-Bstatic -lcublas_s
tatic -lculibos -Wl,-Bdynamic
/opt/gensoft/exe/cuda/12.8/lib64/libcublas_static.a(cublas.cpp.o): In function `cublasGetCud
artVersion':
(.text.cublasGetCudartVersion+0x42): undefined reference to `cublasLtGetCudartVersion'
/opt/gensoft/exe/cuda/12.8/lib64/libcublas_static.a(cublas.cpp.o): In function `cublasGetSta
tusName':
etc etc...

adding -lcublasLt_static allow the build to succed.

regards

Eric

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

No branches or pull requests

1 participant