Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY) (found version "8.0") #317

Open
NEWPLAN opened this issue Sep 14, 2017 · 4 comments
Open

Comments

@NEWPLAN
Copy link

NEWPLAN commented Sep 14, 2017

Hello, i want to install this source code, when i using instruction 'cmake ../nheqminer'
got an exception about Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY) (found version "8.0")
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:60 (find_package)

CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version 106501
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:60 (find_package)

-- 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
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- system
-- log_setup
-- log
-- date_time
-- filesystem
-- thread
-- CXXFLAGS: -std=c++11 -m64 -msse2
-- LIBS: /usr/local/lib/libboost_system.a;/usr/local/lib/libboost_log_setup.a;/usr/local/lib/libboost_log.a;/usr/local/lib/libboost_date_time.a;/usr/local/lib/libboost_filesystem.a;/usr/local/lib/libboost_thread.a;/usr/lib/x86_64-linux-gnu/libpthread.a
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY) (found version "8.0")
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindCUDA.cmake:949 (find_package_handle_standard_args)
cuda_djezo/CMakeLists.txt:20 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
i have installed the cuda library.
so, how should i do next?

@calvintam236
Copy link

Try adding -DCUDA_CUDART_LIBRARY=/usr/local/cuda/lib64/libcudart.so when you run cmake command.

@NEWPLAN
Copy link
Author

NEWPLAN commented Sep 18, 2017

well, thanks for your help, i try to use another version compiled already, when i run it with GPU, it tells me that only cuda devices with SM5.0 are supported, i used with tesla K40c, i check it from nvidia, showing the K40c do support SM5.0
did i wrong somewhere?

@kumarvarun1252
Copy link

cmake -DCUDA_CUDART_LIBRARY=/usr/local/cuda/lib64/libcudart.so ../nheqminer
this have solved the issue

@pizzaani
Copy link

@NEWPLAN
by changing in cuda_djezo.cpp:

		//if (major < 5)
		if (major < 2)

I could also get an old GT610 working properly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants