본문 바로가기
MachineLearning/STT

ubuntu 16 && cuda 10.1&&kaldi 에서 빌드시 libcublas error

by forkballpitch 2020. 1. 6.

ubuntu 16 에서는 cuda 10.1 설치 후 빌드해야함

 

에러--

 

../cudamatrix/kaldi-cudamatrix.a(cu-device.o): In function `kaldi::CuDevice::Initialize()':
/home/stt/kaldi/src/cudamatrix/cu-device.cc:124: undefined reference to `cublasSetMathMode'
../cudamatrix/kaldi-cudamatrix.a(cu-device.o): In function `kaldi::CuDevice::FinalizeActiveGpu()':
/home/stt/kaldi/src/cudamatrix/cu-device.cc:284: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status

 

------>>

 

sudo cp /usr/lib/x86_64-linux-gnu/libcublas.so.10.1.0.105 /usr/local/cuda-10.1/lib64/

sudo ln -s /usr/local/cuda-10.1/lib64/libcublas.so.10.1.0.105 /usr/local/cuda-10.1/lib64/libcublas.so.10.1

sudo ln -s /usr/local/cuda-10.1/lib64/libcublas.so.10.1 /usr/local/cuda-10.1/lib64/libcublas.so

sudo ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcusolver.so.10 /usr/local/cuda-10.1/lib64/libcusolver.so.10.1

sudo ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcurand.so.10 /usr/local/cuda-10.1/lib64/libcurand.so.10.1

sudo ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcufft.so.10 /usr/local/cuda-10.1/lib64/libcufft.so.10.1

 

[참고내용]

https://github.com/tensorflow/tensorflow/issues/26150

불러오는 중입니다...