ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.98k stars 2.28k forks source link

CMake Error at ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cmake:207 #1959

Open 007fred50 opened 4 years ago

007fred50 commented 4 years ago

Hello,

i try to compile the source code. from (https://github.com/ethereum-mining/ethminer)

step 1: sudo cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF

-- [cable ] Cable 0.2.14 initialized
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_CXX_COMPILER:

    /home/torstein/gcc54/bin/c++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/cuda/ethminer/build/CMakeFiles/CMakeOutput.log".
See also "/cuda/ethminer/build/CMakeFiles/CMakeError.log".

step 2: but then i follow the guide here (https://www.perfacilis.com/blog/crypto-currency/mining-ethereum-on-ubuntu-with-ethminer.html)

Wed Feb 12 18:33:27 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01    Driver Version: 440.33.01    CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 2080    Off  | 00000000:02:00.0 Off |                  N/A |
| 22%   35C    P0    36W / 215W |      0MiB /  7981MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

i'm stuck at "cmake --build ." i got this error here:

[  0%] Built target ethminer-buildinfo-git
[  3%] Updating ethminer-buildinfo:
       Project Version:  0.19.0-alpha.0-4+commit.de804401 (prerelease)
       System Name:      linux
       System Processor: x86_64
       Compiler ID:      gnu
       Compiler Version: 5.4.0
       Build Type:       release
       Git Info:         0.19.0-alpha.0 4 de80440146bd0daa1a9bdf8d3aa77d720b4f8ca1
       Timestamp:        2020-02-13T15:43:48
Scanning dependencies of target ethminer-buildinfo
[  6%] Building C object CMakeFiles/ethminer-buildinfo.dir/ethminer/buildinfo.c.o
[ 10%] Linking C static library ethminer/libethminer-buildinfo.a
[ 10%] Built target ethminer-buildinfo
Scanning dependencies of target devcore
[ 13%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Log.cpp.o
[ 16%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonData.cpp.o
[ 20%] Building CXX object libdevcore/CMakeFiles/devcore.dir/FixedHash.cpp.o
[ 23%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Worker.cpp.o
[ 26%] Linking CXX static library libdevcore.a
[ 26%] Built target devcore
Scanning dependencies of target hwmon
[ 30%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wraphelper.cpp.o
[ 33%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapnvml.cpp.o
[ 36%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapadl.cpp.o
[ 40%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapamdsysfs.cpp.o
[ 43%] Linking CXX static library libhwmon.a
[ 43%] Built target hwmon
[ 46%] Building NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
nvcc fatal   : Unsupported gpu architecture 'compute_60'
CMake Error at ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cmake:207 (message):
  Error generating
  /cuda/ethminer/build/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o

libethash-cuda/CMakeFiles/ethash-cuda.dir/build.make:63: recipe for target 'libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o' failed
make[2]: *** [libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o] Error 1
CMakeFiles/Makefile2:376: recipe for target 'libethash-cuda/CMakeFiles/ethash-cuda.dir/all' failed
make[1]: *** [libethash-cuda/CMakeFiles/ethash-cuda.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17

Can you help me with that?

AndreaLanfranchi commented 4 years ago

To build for your specific card

sudo cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF -DCOMPUTE=75

then

cmake --build
daviguima commented 3 years ago

Hello there, sorry to bother bust I just had exactly the same issue as @007fred50 just that my GPU is different. So I was wondering, this -DCOMPUTE=75 what is it? I didn't used it because you said it was specific for his card... Thanks in advance @AndreaLanfranchi (-:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.39       Driver Version: 460.39       CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro RTX 3000     Off  | 00000000:01:00.0  On |                  N/A |
| N/A   52C    P5    11W /  N/A |    419MiB /  5934MiB |     35%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1380      G   /usr/lib/xorg/Xorg                 49MiB |
|    0   N/A  N/A      2035      G   /usr/lib/xorg/Xorg                278MiB |
|    0   N/A  N/A      2215      G   /usr/bin/gnome-shell               50MiB |
+-----------------------------------------------------------------------------+
daviguima commented 3 years ago

reading this file do you think I can try -DCOMPUTE=86 ?

daviguima commented 3 years ago

ok, I guess I can't =P nvcc fatal : Unsupported gpu architecture 'compute_86'

patdflynn commented 3 years ago

@daviguima

Same issue, ever find a solution?

mocialov commented 3 years ago

Same problem

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.91.03    Driver Version: 460.91.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GeForce GTX 1080 Ti  Off  | 00000000:01:00.0 Off |                  N/A |
|  0%   30C    P8    11W / 280W |     11MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  Quadro P2000        Off  | 00000000:02:00.0  On |                  N/A |
| 48%   37C    P0    18W /  75W |    357MiB /  5055MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Sun_Jul_28_19:07:16_PDT_2019 Cuda compilation tools, release 10.1, V10.1.243

cmake version 3.21.0

Ubuntu 20.04.2 LTS

007fred50 commented 3 years ago

Hej, maybe you have to downgrade version ??

007fred50 commented 3 years ago

Downgrade Cuba version and Cuda compilation tools