Open rickyi89 opened 7 years ago
i get the same problem,pls how to modify ?
pease run 'make VERBOSE=1' and post the output
Here it is
riccardo@ubuntu-server:~/mining/xmr-stak-nvidia$ make VERBOSE=1 /usr/bin/cmake -H/home/riccardo/mining/xmr-stak-nvidia -B/home/riccardo/mining/x mr-stak-nvidia --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/riccardo/mining/xmr-stak-nvidia/CMa keFiles /home/riccardo/mining/xmr-stak-nvidia/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: ingresso nella directory "/home/riccardo/mining/xmr-stak-nvidia" make -f CMakeFiles/xmr-stak-nvidiaCrypto.dir/build.make CMakeFiles/xmr-stak-nvid iaCrypto.dir/depend make[2]: ingresso nella directory "/home/riccardo/mining/xmr-stak-nvidia" cd /home/riccardo/mining/xmr-stak-nvidia && /usr/bin/cmake -E cmake_depends "Uni x Makefiles" /home/riccardo/mining/xmr-stak-nvidia /home/riccardo/mining/xmr-sta k-nvidia /home/riccardo/mining/xmr-stak-nvidia /home/riccardo/mining/xmr-stak-nv idia /home/riccardo/mining/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCrypto.dir/ DependInfo.cmake --color= make[2]: uscita dalla directory "/home/riccardo/mining/xmr-stak-nvidia" make -f CMakeFiles/xmr-stak-nvidiaCrypto.dir/build.make CMakeFiles/xmr-stak-nvid iaCrypto.dir/build make[2]: ingresso nella directory "/home/riccardo/mining/xmr-stak-nvidia" [ 4%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_blake256. c.o /usr/bin/clang -DXMR_STAK_LARGEGRID=ON -I/home/riccardo/mining/xmr-stak-nvidia/ . -O3 -DNDEBUG -std=gnu99 -o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_bl ake256.c.o -c /home/riccardo/mining/xmr-stak-nvidia/crypto/c_blake256.c [ 9%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_groestl.c .o /usr/bin/clang -DXMR_STAK_LARGEGRID=ON -I/home/riccardo/mining/xmr-stak-nvidia/ . -O3 -DNDEBUG -std=gnu99 -o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_gr oestl.c.o -c /home/riccardo/mining/xmr-stak-nvidia/crypto/c_groestl.c [ 14%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_jh.c.o /usr/bin/clang -DXMR_STAK_LARGEGRID=ON -I/home/riccardo/mining/xmr-stak-nvidia/ . -O3 -DNDEBUG -std=gnu99 -o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_jh .c.o -c /home/riccardo/mining/xmr-stak-nvidia/crypto/c_jh.c [ 19%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_keccak.c. o /usr/bin/clang -DXMR_STAK_LARGEGRID=ON -I/home/riccardo/mining/xmr-stak-nvidia/ . -O3 -DNDEBUG -std=gnu99 -o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_ke ccak.c.o -c /home/riccardo/mining/xmr-stak-nvidia/crypto/c_keccak.c [ 23%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_skein.c.o /usr/bin/clang -DXMR_STAK_LARGEGRID=ON -I/home/riccardo/mining/xmr-stak-nvidia/ . -O3 -DNDEBUG -std=gnu99 -o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_sk ein.c.o -c /home/riccardo/mining/xmr-stak-nvidia/crypto/c_skein.c [ 28%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/soft_aes.c.o /usr/bin/clang -DXMR_STAK_LARGEGRID=ON -I/home/riccardo/mining/xmr-stak-nvidia/. -O3 -DNDEBUG -std=gnu99 -o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/soft_aes.c.o -c /home/riccardo/mining/xmr-stak-nvidia/crypto/soft_aes.c [ 33%] Linking C static library libxmr-stak-nvidiaCrypto.a /usr/bin/cmake -P CMakeFiles/xmr-stak-nvidiaCrypto.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/xmr-stak-nvidiaCrypto.dir/link.txt --verbose=1 /usr/bin/ar qc libxmr-stak-nvidiaCrypto.a CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_blake256.c.o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_groestl.c.o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_jh.c.o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_keccak.c.o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_skein.c.o CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/soft_aes.c.o /usr/bin/ranlib libxmr-stak-nvidiaCrypto.a make[2]: uscita dalla directory "/home/riccardo/mining/xmr-stak-nvidia" [ 33%] Built target xmr-stak-nvidiaCrypto make -f CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make CMakeFiles/xmr-stak-nvidiaCuda.dir/depend make[2]: ingresso nella directory "/home/riccardo/mining/xmr-stak-nvidia" cd /home/riccardo/mining/xmr-stak-nvidia && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/riccardo/mining/xmr-stak-nvidia /home/riccardo/mining/xmr-stak-nvidia /home/riccardo/mining/xmr-stak-nvidia /home/riccardo/mining/xmr-stak-nvidia /home/riccardo/mining/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCuda.dir/DependInfo.cmake --color= make[2]: uscita dalla directory "/home/riccardo/mining/xmr-stak-nvidia" make -f CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make CMakeFiles/xmr-stak-nvidiaCuda.dir/build make[2]: ingresso nella directory "/home/riccardo/mining/xmr-stak-nvidia" [ 38%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o /usr/bin/clang++ -DXMR_STAK_LARGEGRID=ON -I/home/riccardo/mining/xmr-stak-nvidia/. -msse2 -maes -O3 -DNDEBUG -O3 -x cuda --cuda-path=/usr -ffp-contract=fast --cuda-gpu-arch=sm_61 -std=c++11 -o CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o -c /home/riccardo/mining/xmr-stak-nvidia/nvcc_code/cuda_core.cu clang: error: cannot find libdevice for sm_61. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:62: set di istruzioni per l'obiettivo "CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o" non riuscito make[2]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o] Errore 1 make[2]: uscita dalla directory "/home/riccardo/mining/xmr-stak-nvidia" CMakeFiles/Makefile2:104: set di istruzioni per l'obiettivo "CMakeFiles/xmr-stak-nvidiaCuda.dir/all" non riuscito make[1]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Errore 2 make[1]: uscita dalla directory "/home/riccardo/mining/xmr-stak-nvidia" Makefile:127: set di istruzioni per l'obiettivo "all" non riuscito make: *** [all] Errore 2
zjhxmjl@ubuntu:~/xmr-stak-nvidia$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2016 NVIDIA Corporation Built on Sun_Sep__4_22:14:01_CDT_2016 Cuda compilation tools, release 8.0, V8.0.44
zjhxmjl@ubuntu:~/xmr-stak-nvidia$ gcc --version gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
zjhxmjl@ubuntu:~/xmr-stak-nvidia$ make VERBOSE=1 /usr/bin/cmake -H/home/zjhxmjl/xmr-stak-nvidia -B/home/zjhxmjl/xmr-stak-nvidia --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/zjhxmjl/xmr-stak-nvidia/CMakeFiles /home/zjhxmjl/xmr-stak-nvidia/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/home/zjhxmjl/xmr-stak-nvidia' make -f CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make CMakeFiles/xmr-stak-nvidiaCuda.dir/depend make[2]: Entering directory '/home/zjhxmjl/xmr-stak-nvidia' cd /home/zjhxmjl/xmr-stak-nvidia && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/zjhxmjl/xmr-stak-nvidia /home/zjhxmjl/xmr-stak-nvidia /home/zjhxmjl/xmr-stak-nvidia /home/zjhxmjl/xmr-stak-nvidia /home/zjhxmjl/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCuda.dir/DependInfo.cmake --color= Dependee "/home/zjhxmjl/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCuda.dir/DependInfo.cmake" is newer than depender "/home/zjhxmjl/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCuda.dir/depend.internal". Dependee "/home/zjhxmjl/xmr-stak-nvidia/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/zjhxmjl/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCuda.dir/depend.internal". Scanning dependencies of target xmr-stak-nvidiaCuda make[2]: Leaving directory '/home/zjhxmjl/xmr-stak-nvidia' make -f CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make CMakeFiles/xmr-stak-nvidiaCuda.dir/build make[2]: Entering directory '/home/zjhxmjl/xmr-stak-nvidia' [ 4%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o /usr/bin/clang++-4.0 -DXMR_STAK_LARGEGRID=ON -I/home/zjhxmjl/xmr-stak-nvidia/. -msse2 -maes -O3 -DNDEBUG -O3 -x cuda --cuda-path=/usr -ffp-contract=fast --cuda-gpu-arch=sm_20 --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 --cuda-gpu-arch=sm_37 --cuda-gpu-arch=sm_50 --cuda-gpu-arch=sm_52 --cuda-gpu-arch=sm_60 --cuda-gpu-arch=sm_61 --cuda-gpu-arch=sm_62 -std=c++11 -o CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o -c /home/zjhxmjl/xmr-stak-nvidia/nvcc_code/cuda_core.cu clang: error: cannot find libdevice for sm_20. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find libdevice for sm_30. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find libdevice for sm_35. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find libdevice for sm_37. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find libdevice for sm_50. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find libdevice for sm_52. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find libdevice for sm_60. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find libdevice for sm_61. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find libdevice for sm_62. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:62: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o' failed make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o] Error 1 make[2]: Leaving directory '/home/zjhxmjl/xmr-stak-nvidia' CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/all' failed make[1]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2 make[1]: Leaving directory '/home/zjhxmjl/xmr-stak-nvidia' Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
Hello. Same here under Debian Ustable and Ubuntu 17.04 $ make [ 33%] Built target xmr-stak-nvidiaCrypto [ 38%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o clang: error: cannot find libdevice for sm_20. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:62: set di istruzioni per l'obiettivo "CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o" non riuscito make[2]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o] Errore 1 CMakeFiles/Makefile2:104: set di istruzioni per l'obiettivo "CMakeFiles/xmr-stak-nvidiaCuda.dir/all" non riuscito make[1]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Errore 2 Makefile:129: set di istruzioni per l'obiettivo "all" non riuscito make: *** [all] Errore 2
Same here on Arch Linux, doesn't compile anymore :(
$ make
...
Scanning dependencies of target xmr-stak-nvidiaCuda
[ 38%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o
clang-5.0: error: cannot find libdevice for sm_20. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang-5.0: error: cannot find libdevice for sm_30. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang-5.0: error: cannot find libdevice for sm_35. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang-5.0: error: cannot find libdevice for sm_37. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang-5.0: error: cannot find libdevice for sm_50. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang-5.0: error: cannot find libdevice for sm_52. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang-5.0: error: cannot find libdevice for sm_60. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang-5.0: error: cannot find libdevice for sm_61. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang-5.0: error: cannot find libdevice for sm_62. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:63: CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
$
I've been having this issue as well! I finally got it to build (somehow) after reading a bunch of other issues.
git clean -fdx
export CXX=/usr/bin/clang++
export CC=/usr/bin/clang
cmake . -DCUDA_ARCH=61
make install
clang-3.8 cuda 9
I kept using -DCUDA-COMPILER=clang
and when I dropped using it, CMake started complaining about me using clang-5 or clang-4 so I dropped back to clang 3.8 like what was suggested in another issue.
Thanks to madelinecameron I was able to compile it using CUDA 9.0 and clan-3.8.
Anyway I had to move to CUDA 8.0 as I've discovered that Debian Unstable is stuck to driver release 375.82 (CUDA 8.0 only). Then I've spent another day trying to fix all the new problems I had with that configuration. Finally I was able to compile xmr-stack-nvidia using CUDA 8.0 (from NVidia, not from repo) and gcc-5.0. For some reason nvidia-cuda-* for debian and ubuntu didn't work anymore.
Got it to work thanks to @madelinecameron suggestion. After that i got the error of undeclared identifier 'float128', solved adding set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTRICT_ANSI__") after project definition to CmakeLists.txt as found pn stackoverflow.
Thanks everyone!
All that I tried doesn't work. From gcc problem to clang problem passing by cuda problem.
At the end, I made as above : cuda9 and clang-3.8
export CC=/usr/bin/clang-3.8 export CXX=/usr/bin/clang++-3.8 cmake . -DCUDA_COMPILER=clang
Scanning dependencies of target xmr-stak-nvidiaCuda [ 4%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o clang: error: Unsupported CUDA gpu architecture: sm_60 clang: error: Unsupported CUDA gpu architecture: sm_61 clang: error: Unsupported CUDA gpu architecture: sm_62 CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:62 : la recette pour la cible « CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o » a échouée make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o] Erreur 1 CMakeFiles/Makefile2:67 : la recette pour la cible « CMakeFiles/xmr-stak-nvidiaCuda.dir/all » a échouée make[1]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Erreur 2 Makefile:127 : la recette pour la cible « all » a échouée make: *** [all] Erreur 2
So, no solution.
Try targeting your cuda architecture directly with the -DCUDA_ARCH flag.
On Nov 7, 2017, at 08:37, cbesot notifications@github.com wrote:
All that I tried doesn't work. From gcc problem to clang problem passing by cuda problem.
At the end, I made as above : cuda9 and clang-3.8 export CC=/usr/bin/clang-3.8 export CXX=/usr/bin/clang++-3.8 cmake . -DCUDA_COMPILER=clang
Scanning dependencies of target xmr-stak-nvidiaCuda [ 4%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o clang: error: Unsupported CUDA gpu architecture: sm_60 clang: error: Unsupported CUDA gpu architecture: sm_61 clang: error: Unsupported CUDA gpu architecture: sm_62 CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:62 : la recette pour la cible « CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o » a échouée make[2]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o] Erreur 1 CMakeFiles/Makefile2:67 : la recette pour la cible « CMakeFiles/xmr-stak-nvidiaCuda.dir/all » a échouée make[1]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Erreur 2 Makefile:127 : la recette pour la cible « all » a échouée make: *** [all] Erreur 2
So, no solution.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Works! Without specifying -DCUDA_COMPILER=clang So:
git clean -fdx
export CC=/usr/bin/clang-3.8
export CXX=/usr/bin/clang++-3.8
cmake . -DCUDA_ARCH 61
thanks to everyone this last bit helped me too to get it compile without any extra downloads on Ubuntu 17.04.
just the last line shoudl be -DCUDA_ARCH=61, so the final thing was:
git clean -fdx
export CC=/usr/bin/clang-3.8
export CXX=/usr/bin/clang++-3.8
cmake . -DCUDA_ARCH=61
Hi everyone,
sorry for bothering you all, but I'm not able to build the code on Ubuntu 17.04.
I'm using CUDA 8.0 and Clang 4.0 on GTX 1050Tis and I issue these commands:
cmake . -DCUDA_COMPILER=clang -DCUDA_ARCH=61
-- 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 (found suitable version "8.0", minimum required is "7.5") -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g") -- Configuring done -- Generating done -- Build files have been written to: /home/riccardo/mining/xmr-stak-nvidia
and then
make install Scanning dependencies of target xmr-stak-nvidiaCrypto [ 4%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_blake256.c.o [ 9%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_groestl.c.o [ 14%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_jh.c.o [ 19%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_keccak.c.o [ 23%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_skein.c.o [ 28%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/soft_aes.c.o [ 33%] Linking C static library libxmr-stak-nvidiaCrypto.a [ 33%] Built target xmr-stak-nvidiaCrypto Scanning dependencies of target xmr-stak-nvidiaCuda [ 38%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o clang: error: cannot find libdevice for sm_61. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes. CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:62: set di istruzioni per l'obiettivo "CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o" non riuscito make[2]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o] Errore 1 CMakeFiles/Makefile2:104: set di istruzioni per l'obiettivo "CMakeFiles/xmr-stak-nvidiaCuda.dir/all" non riuscito make[1]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Errore 2 Makefile:127: set di istruzioni per l'obiettivo "all" non riuscito make: *** [all] Errore 2
I've tried to unistall and reinstall CUDA, but it didn't change a bit.
Thank you in advance!