fireice-uk / xmr-stak-nvidia

Monero NVIDIA miner
GNU General Public License v3.0
248 stars 98 forks source link

Fedora 25 + NVIDIA: CMake Error - Could NOT find CUDA #99

Closed graux closed 7 years ago

graux commented 7 years ago

I am unable to build using Fedora 25, NVIDIA GTX 960, Cuda 8, driver 384.69 I've tried with both GCC 6 and CLANG and no luck:

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
cmake . -DCUDA_COMPILER=clang (or just cmake .)

Output:

-- The C compiler identification is GNU 6.4.1
-- The CXX compiler identification is GNU 6.4.1
-- 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
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (found
  suitable version "8.0", minimum required is "7.5")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindCUDA.cmake:1020 (find_package_handle_standard_args)
  CMakeLists.txt:57 (find_package)

-- Configuring incomplete, errors occurred!
See also "/opt/xmr-stak-nvidia/CMakeFiles/CMakeOutput.log".
gcc --version
gcc (GCC) 6.4.1 20170727 (Red Hat 6.4.1-1)
clang --version
clang version 3.9.1 (tags/RELEASE_391/final)

Cuda compilation tools, release 8.0, V8.0.61

Any suggestions? Thank you!

graux commented 7 years ago

Missing cuda-devel package, sorry!