CUDA CuBlas libs not found

asked 2019-11-23 02:35:56 -0600

Martian gravatar image

I have installed drivers, toolkit, etc for Cuda_10.1.243_418.87.00. All seemed to go according to plan. However, the cublas libs are not found. I believe they are supposed to be here:


I had thought these were installed automatically when the Toolkit was installed.

cmake-gui seems to find all other CUDA libs, which are present in the normal CUDA folder:


In fact, OpenCV builds fine, even with the WITH_CUDA flag turned on, as long as WITH_CUBLAS is turned off. Other libraries are auto-detected (such as CUDA_cufft_LIBRARY /usr/local/cuda-10.1/lib64/

The missing CUBLAS libs seem to include: CUDA_cublas_LIBRARY-CUDA, and_cublas_device_LIBRARY-NOTFOUND

As a result, enabling the WITH_CUBLAS flag triggers a cascade of errors. Has anyone else encountered this?

edit retag flag offensive close merge delete



Does this help you CuBlas libs?

supra56 gravatar imagesupra56 ( 2019-11-24 21:05:39 -0600 )edit

Thanks for that, Supra56. It looked promising, but unfortunately did not solve this particular problem.

I think that part of this is due to some of the folder locations having been changed in the latest CUDA versions. the 'libcublas' files are now in /usr/lib/x86_64-linux-gnu, for some reason. (In Ubuntu variants) But adding those files made no difference. Same CUDA_cublas_LIBRARY-NOTFOUND error.

Thanks for the advice though.

Martian gravatar imageMartian ( 2019-11-27 04:07:19 -0600 )edit