Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CUDA BLAS library - libcublas

After numerous attempts to build OpenCV 4.1.2 with WITH_CUBLAS enabled, I'm ready to give up.

The latest CUDA versions changed the location of the library (to /usr/lib//usr/lib/x86_64-linux-gnu/usr/lib/x86_64-linux-gnu/ Now, even the latest CMake-gui doesn't correctly detect it. Nor does CMake accept a hand-entered location. It keeps reverting to CUDA_cublas_LIBRARY-NOTFOUND.

It's hard to tell what CMake-gui and OpenCV are looking for. The "Configure" button generates a long list of related errors:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. CUDA_cublas_LIBRARY (ADVANCED) linked by target "opencv_cudev" in directory /DM_Util/_INSTALL_LINUX/OpenCV_4/OpenCV_4.1.2_2019nov20/opencv_contrib/modules/cudev linked by target "opencv_test_cudev" in directory ... etc.

Q: What is the downside to just disabling the WITH_CUBLAS option? Is there likely to be a considerable performance hit (wild guesses welcome)? It looks like links with no problems, but it would be nice to be assured of hardware acceleration via CUDA....if it's even used by OpenCV.

Again, I'm open to wild speculation at this point. I haven't found any leads on NVidia or CMake forums.