Closed cantabile-kwok closed 1 year ago
cmake: 3.12.0-rc2
nvcc fatal : Unknown option '-Wl,--no-as-needed,/mnt/lustre/xxx/home/ywg12/.conda/envs/k2/lib/python3.10/site-packages/torch/lib/libtorch_cpu.so'
Please switch to another version of cmake,e.g., cmake 3.18.
Note that I also specified CUDA_cublas_LIBRARY:FILEPATH=/mnt/lustre/xxx/home/ywg12/.conda/envs/k2/lib/libcublas.so in the CMakeCache.txt, but I found this file is overwritten by CUDA_cublas_LIBRARY:FILEPATH=CUDA_cublas_LIBRARY-NOTFOUND the next time I run python3 setup.py install.
Please don't change CMakeCache.txt
. Please use the following commands
rm -rf build
export K2_CMAKE_ARGS="-DCUDA_cublas_LIBRARY=/mnt/lustre/xxx/home/ywg12/.conda/envs/k2/lib/libcublas.so -DCUDNN_INCLUDE_PATH=/mnt/lustre/xxx/home/ywg12/.conda/envs/k2/include -DCUDNN_LIBRARY_PATH=/mnt/lustre/xxx/home/ywg12/.conda/envs/k2/lib/libcudnn.so.7.6.5"
python3 setup.py install
Also, I notice that there are a lot of lines reporting Some of these libraries may not be found correctly.
Please ignore those warnings for now.
By the way, if you follow
https://k2-fsa.github.io/k2/installation/cuda-cudnn.html
to install cudatoolkit and cuDNN and use pip install
to replace conda install
, you won't get such warnings.
This is very very helpful 👍 The installation is successful now! Much thanks!
I am compiling k2 from source on a linux server, and I encountered some problems while compilation. Here is my environment description:
I installed CuDNN, cudatoolkit, and cublas from conda (is it not going to work?)
I manually specified
CUDNN_LIBRARY_PATH
inCMakeCache.txt
and the cmake configuration step succeeds. But in the compilation process, errors occurred. The followingNote that I also specified
CUDA_cublas_LIBRARY:FILEPATH=/mnt/lustre/xxx/home/ywg12/.conda/envs/k2/lib/libcublas.so
in the CMakeCache.txt, but I found this file is overwritten byCUDA_cublas_LIBRARY:FILEPATH=CUDA_cublas_LIBRARY-NOTFOUND
the next time I runpython3 setup.py install
. As a result, the program fails to locate the cublas library which causes the error.But I don't know how to provide this cublas path to the program. Also, I notice that there are a lot of lines reporting
Some of these libraries may not be found correctly.
Could anyone figure out what is going wrong please? 🙏