nicehash / nheqminer

Equihash miner for NiceHash
https://www.nicehash.com
MIT License
768 stars 584 forks source link

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

Open NEWPLAN opened 7 years ago

NEWPLAN commented 7 years ago

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 commented 7 years ago

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

NEWPLAN commented 7 years ago

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 commented 6 years ago

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

pizzaani commented 6 years ago

@NEWPLAN by changing in cuda_djezo.cpp:

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

I could also get an old GT610 working properly.