ceccocats / tkDNN

Deep neural network library and toolkit to do high performace inference on NVIDIA jetson platforms
GNU General Public License v2.0
717 stars 209 forks source link

cmake: CUDA_cublas_device_LIBRARY variable set to NOTFOUND #181

Closed kakareko closed 3 years ago

kakareko commented 3 years ago

Hello

CMake fails with an error message:

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_device_LIBRARY (ADVANCED)

All dependencies seem to be available. Could you please help?

Full CMake output:

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found suitable version "10.2", minimum required is "9.0") 
-- Found CUDNN: /usr/lib/aarch64-linux-gnu/libcudnn.so
-- Found CUDNN include: /usr/include
-- Found NVINFER: /usr/lib/aarch64-linux-gnu/libnvinfer.so
-- Found NVINFER include: /usr/include/aarch64-linux-gnu
-- Found CUDNN: /usr/lib/aarch64-linux-gnu/libcudnn.so  
-- Found OpenCV: /usr (found version "4.1.1") 
install dir:/usr/local
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_device_LIBRARY (ADVANCED)
    linked by target "tkDNN" in directory /home/robot/projects/tkDNN

-- Configuring incomplete, errors occurred!
See also "/home/robot/projects/tkDNN/build/CMakeFiles/CMakeOutput.log".
See also "/home/robot/projects/tkDNN/build/CMakeFiles/CMakeError.log".

CMakeOutput.log CMakeError.log

AlanNewImage commented 3 years ago

upgrade your CMake to 3.15 or late.Try 3.18.1

mive93 commented 3 years ago

Hi @kakareko ,

as correctly said by @AlanNewImage, you should update Cmake. As the README says, the project requires the version to be >= 3.15.

Closing for now, feel free to reopen.