fireice-uk / xmr-stak-nvidia

Monero NVIDIA miner
GNU General Public License v3.0
249 stars 99 forks source link

Cannot compile on CUDA9 + Volta V100 class hardware #165

Open zebrax0r opened 6 years ago

zebrax0r commented 6 years ago

Hi.

I have some nvidia Volta V100's to test out. It seems that the code does not yet understand compute_20 class hardware/V series platforms. See below my compile transcript on CentOS 7.4 + CUDA9.

[root@somehost somewhere]# git clone https://github.com/fireice-uk/xmr-stak-nvidia.git Cloning into 'xmr-stak-nvidia'... remote: Counting objects: 353, done. remote: Total 353 (delta 0), reused 0 (delta 0), pack-reused 353 Receiving objects: 100% (353/353), 342.69 KiB | 0 bytes/s, done. Resolving deltas: 100% (175/175), done. [root@somehost somewhere]# cd xmr-stak-nvidia/ [root@somehost somewhere]# cmake3 . -- The C compiler identification is GNU 5.3.1 -- The CXX compiler identification is GNU 5.3.1 -- Check for working C compiler: /opt/rh/devtoolset-4/root/usr/bin/cc -- Check for working C compiler: /opt/rh/devtoolset-4/root/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: /opt/rh/devtoolset-4/root/usr/bin/c++ -- Check for working CXX compiler: /opt/rh/devtoolset-4/root/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- 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/local/cuda (found suitable version "9.0", minimum required is "7.5") -- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2k") -- Configuring done -- Generating done -- Build files have been written to: /nvme/someperson/xmr-stak-nvidia [root@somehost somewhere]# make install [ 4%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o nvcc fatal : Unsupported gpu architecture 'compute_20' CMake Error at xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o.Release.cmake:207 (message): Error generating /nvme/someperson/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/./xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o

make[2]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o] Error 1 make[1]: [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2 make: *** [all] Error 2

Thanks.

-z

psychocrypt commented 6 years ago

Could you please write me a PM on reddit! my name there is psychocrypt

elisaado commented 6 years ago

Same here:

nvcc fatal   : Unsupported gpu architecture 'compute_20'
CMake Error at xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o.Release.cmake:222 (message):
  Error generating
  /home/eli/tmp/xmr-stak-nvidia/build/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/./xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o

make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:72: CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:104: CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
psychocrypt commented 6 years ago

The current version is not cuda 9 ready. The upcomming release will support cuda 9. Please write me a reddit pm (user: psychocrypt)