ethereum-mining / ethminer

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

Worker thread exception running on linux RTX 3070 #2229

Open rolandoam opened 3 years ago

rolandoam commented 3 years ago

Describe the bug New install on debian buster (10). GPU RTX 3070, latest cuda drivers (samples work). Whenever ethminer is executed, a worker thread exception is reported and no progress is made.

To Reproduce Steps to reproduce the behavior:

  1. On a linux (x86_64) PC with an RTX 3070
  2. Run ethminer (either start hashing into a pool, or try to benchmark)
  3. See error
$ ./ethminer -U -M 0

ethminer 0.18.0
Build: linux/release/gnu

 i 20:44:39 ethminer Selected pool localhost:0
 i 20:44:39 ethminer Established connection to localhost:0
 i 20:44:39 ethminer Spinning up miners...
cu 20:44:39 cuda-0   Using Pci Id : 01:00.0 GeForce RTX 3070 (Compute 8.6) Memory : 7.79 GB
 i 20:44:39 sim      Epoch : -1 Difficulty : 4.29 Gh
 i 20:44:39 sim      Job: 2695044d… block 0 localhost:0
 X 20:44:39 cuda-0   Exception thrown in Worker thread: GPU error: CUDA error in func set_header at line 165 invalid device symbol
 m 20:44:44 ethminer 0:00 A0 0.00 h - cu0 0.00
^C i 20:44:45 main     Got interrupt ...
 i 20:44:45 main     Simulation results : Max 0.000000 h Mean 0.000000 h
 i 20:44:45 main     Disconnected from localhost:0
 i 20:44:45 main     Shutting down miners...
 i 20:44:45 main     Terminated!
$ ./ethminer --list-devices

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.79 GB       1.95 GB     1024.00 B

Expected behavior No exception and correctly start hashing.

Environment (please complete the following information):

truedat101 commented 3 years ago

I was able to get this working on one of the forks with an RTX3060 https://github.com/TaPO4eg3D/ethminer , using CUDA 11.

See the fork and latest commits there.

imotai8915 commented 3 years ago

@rolandoam Can you provide some stacktraces ?