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

CUDA bug #2144

Open albertoolivan opened 3 years ago

albertoolivan commented 3 years ago

Describe the bug

I start pool command to mining (Windows 10 - Nvidia)

To Reproduce

ethminer -P stratum://xxxxxxx.Worker:@eu1.ethermine.org:4444

 i 23:20:03 <unknown> Epoch : 393 Difficulty : 4.29 Gh
 i 23:20:03 <unknown> Job: 77984b8d... eu1.ethermine.org [172.65.207.106:4444]
 i 23:20:05 <unknown> Job: 3002a76b... eu1.ethermine.org [172.65.207.106:4444]
cu 23:20:05 cuda-0   Generating DAG + Light : 4.13 GB
cu 23:20:05 cuda-0   Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 05:00.0
cu 23:20:05 cuda-0   Mining suspended ...

Expected behavior Proper mining execution

Environment:

ethminer --list-devices

ethminer 0.18.0

Build: windows/release/msvc

No OpenCL platforms found
 Id Pci Id    Type Name                          CUDA SM  CL    Total Memory  Cl Max Alloc  Cl Max W.Grp
--- --------- ---- ----------------------------- ---- --- ----  ------------  ------------  ------------
  0 05:00.0   Gpu  GeForce RTX 3060 Ti           Yes  8.6            8.00 GB        0.00 B        0.00 B
martinbrose commented 3 years ago

Have you checked that you installed the right version of the CUDA Toolkit?

I think you might need this? https://developer.nvidia.com/cuda-10.0-download-archive

zxfrank commented 3 years ago

I face the same issue on ubuntu 20.04 w/ a RTX 3070. Working fine with the same versions and 1080Ti

ethminer 0.18.0
Build: linux/release/gnu

 Id Pci Id    Type Name                          CUDA SM  CL    Total Memory  Cl Max Alloc  Cl Max W.Grp 
--- --------- ---- ----------------------------- ---- --- ----  ------------  ------------  ------------ 
  0 01:00.0   Gpu  GeForce RTX 3070              Yes  8.6 Yes        7.80 GB       1.95 GB     1024.00 B 
zhanko73 commented 3 years ago

There is a 0.19 version. https://github.com/ethereum-mining/ethminer/releases/tag/v0.19.0 I'm not sure what is the difference compared to 0.18.

drr3d commented 3 years ago

Have you checked that you installed the right version of the CUDA Toolkit?

I think you might need this? https://developer.nvidia.com/cuda-10.0-download-archive

hi.. yap i think i agree with this..previously with 3060ti i had exactly the same error..then i uninstall cuda 10, replace it with cuda 11.1,, rebuild...then all works just fine..

albertoolivan commented 3 years ago

I did not install this CUDA drivers, I will check, thanks for the response!

zxfrank commented 3 years ago

The v0.19 is still in alpha, I ended up using https://github.com/no-fee-ethereum-mining/nsfminer which is actively maintained

encoderlee commented 2 years ago

image insert list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_86,code=sm_86") into file libethash-cuda/CMakeLists.txt then rebuild to support RTX30xx gpu