0

The specifications:

Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:    20.04
Codename:   focal

I use a HP gaming pavilion dk0045tx with a Nvidia GTX1050 GPU and 8 GB RAM.

I have been trying to install dlib with gpu support, using

$ git clone https://github.com/davisking/dlib.git
$ cd dlib
$ mkdir build
$ cd build
$ cmake .. -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1
$ cmake --build .
$ cd ..
$ python setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA

as stated in !https://www.pyimagesearch.com/2018/06/18/face-recognition-with-opencv-python-and-deep-learning/


I have already done a successful installation of cmake(it is required) as running cmake --version returns cmake version 3.16.3.


When I run cmake .. -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1, i get this !https://pastebin.com/mghH5ya0 of which the last few lines which seem to be the error are :

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_LIBRARY (ADVANCED)
    linked by target "dlib" in directory /home/zibbyboo/dlib/dlib

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

After searching for the solution online I found this !https://stackoverflow.com/questions/33097558/cmake-cuda-libraries-not-found-when-compiling-opencv in which one of the answers is for linux. :

        For the Linux, I solved by these step:

            (1) Check .so file in the lib folder,such as cuda7-cudnn3/lib64

            (2) Make symlink like sudo ln -s libcublas.so.7.5.18 libcublas.so

             For my case, I put correctly link in CMakeLists.txt and Makefile.config, but 
             there wasn't a .so file.

I did create the symlink with the correct libcublas file for cuda 10, but this did not work.


I cannot understand what this means, I am new to this. Thank you for your time and help.

  • 1
    @K7AAY I've added the required details, Apologies that they were missing in the first place. – zibbyboo May 27 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.