ethereum-mining / ethminer

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

Upgrade cuda version 11 #2166

Open adamgyongyosi opened 3 years ago

adamgyongyosi commented 3 years ago

can you upgrade the code with cuda 11? or this working cuda 11?

aydwi commented 3 years ago

https://ci.appveyor.com/project/ethereum-mining/ethminer/builds/37485839

Thanks to @hackmod

aydwi commented 3 years ago

You may pick up the binary from the build above. Although, an official release would be helpful.

Abadii commented 3 years ago

+1

I am also waiting for the official release for CUDA 11. It would be great when the dev team would make a new release.

WhymustIhaveaname commented 3 years ago

The cuda10 version of this software can run with cuda11. I myself am running it with cuda11. And, of course, companies as big as Nvidia will make sure their driver is backward compatible.

Abadii commented 3 years ago

The cuda10 version of this software can run with cuda11. I myself am running it with cuda11. And, of course, companies as big as Nvidia will make sure their driver is backward compatible.

What is your environment? I tried it with Windows 10 Pro, but unfortunately it gave CUDA not found errors.

WhymustIhaveaname commented 3 years ago

Linux with cuda11. I think it may be cuda installation problem. "Not found" is different from "wrong version."

Abadii commented 3 years ago

Linux with cuda11. I think it may be cuda installation problem. "Not found" is different from "wrong version."

Sorry, I meant invalid device symbol errors

ethminer 0.18.0
Build: windows/release/msvc

No OpenCL platforms found
 i 14:43:23 main     Configured pool xxxx
 i 14:43:23 <unknown> Selected pool xxxx
 i 14:43:23 <unknown> Stratum mode : Eth-Proxy compatible
 i 14:43:23 <unknown> Established connection to xxxx
 i 14:43:23 <unknown> Spinning up miners...
cu 14:43:23 cuda-0   Using Pci Id : 01:00.0 GeForce RTX 3070 (Compute 8.6) Memory : 8.00 GB
cu 14:43:23 cuda-1   Using Pci Id : 03:00.0 GeForce RTX 3070 (Compute 8.6) Memory : 8.00 GB
cu 14:43:23 cuda-2   Using Pci Id : 06:00.0 GeForce RTX 3070 (Compute 8.6) Memory : 8.00 GB
cu 14:43:23 cuda-3   Using Pci Id : 07:00.0 GeForce RTX 3070 (Compute 8.6) Memory : 8.00 GB
 i 14:43:23 <unknown> Epoch : 396 Difficulty : 8.59 Gh
 i 14:43:23 <unknown> Job: xxxx... xxx
 i 14:43:26 <unknown> Job: xxxx... xxx
cu 14:43:27 cuda-2   Generating DAG + Light : 4.16 GB
cu 14:43:27 cuda-0   Generating DAG + Light : 4.16 GB
cu 14:43:27 cuda-3   Generating DAG + Light : 4.16 GB
cu 14:43:27 cuda-1   Generating DAG + Light : 4.16 GB
cu 14:43:27 cuda-2   Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 06:00.0
cu 14:43:27 cuda-2   Mining suspended ...
cu 14:43:27 cuda-0   Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 01:00.0
cu 14:43:27 cuda-0   Mining suspended ...
cu 14:43:27 cuda-1   Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 03:00.0
cu 14:43:27 cuda-3   Unexpected error CUDA error in func set_constants at line 124 invalid device symbol on CUDA device 07:00.0
cu 14:43:27 cuda-1   Mining suspended ...
cu 14:43:27 cuda-3   Mining suspended ...
 m 14:43:28 <unknown> 0:00 A0 0.00 h - cu0 0.00, cu1 0.00, cu2 0.00, cu3 0.00
 i 14:43:32 main     Got interrupt ...
 i 14:43:32 main     Disconnected from xxxx
 i 14:43:32 main     Shutting down miners...
 i 14:43:32 main     Terminated!
WhymustIhaveaname commented 3 years ago

It seems a common problem for 30xx GPUs. issue 2086 reports the same problem. Unfortunately, I have not got my 30xx GPU. So I hope that issue will help you.

ZhenyiLin commented 3 years ago

Linux has no problem with cuda 11.2

codegastudio commented 3 years ago

On Jetson Xavier NX Work fine with cuda 10 but don't work anymore with cuda 11.2

ethminer 0.19.0-17+commit.ce52c740.dirty
Build: linux/release/gnu

CUDA Error : unknown error
Error: No usable mining devices found

Cuda 11 support NVIDIA Volta architecture which is the one used on Jetson Xavier NX.

Real-ZeminJiang commented 3 years ago

I have already used your patch.

However, the mining speed is super super slow: A1 2.45 Mh - cu0 1.27, cu1 1.18

Any advice for that? Here is my log: https://paste.ubuntu.com/p/Fdb7y62cch

N0rdmann commented 3 years ago

https://ci.appveyor.com/project/ethereum-mining/ethminer/builds/37485839

Thanks to @hackmod

Also BIG thx from my side @hackmod working like a charm with my 3080. Wonder if this was just a "one time help" or CUDA 11 will be added as additional Env on AppVeyor soon?