Skip to content
This repository has been archived by the owner. 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

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

NEWPLAN opened this issue Sep 14, 2017 · 4 comments

Comments

@NEWPLAN
Copy link

@NEWPLAN 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

@calvintam236 calvintam236 commented Sep 16, 2017

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

@NEWPLAN
Copy link
Author

@NEWPLAN 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

@kumarvarun1252 kumarvarun1252 commented Dec 21, 2017

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

@pizzaani
Copy link

@pizzaani pizzaani commented Dec 21, 2017

@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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants